LoxBerry-Plugin: FOSHKplugin - Wettergateway Froggit DP1500 / Ecowitt GW1000 anbinden

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • TomekWaw
    LoxBus Spammer
    • 25.07.2019
    • 439

    #511
    And by the way, I have v0.0.9 that's why conversion doesn't work in my setup (I've read that it will be fixed in v0.0.10).
    But piezo data is enough for me as I currently don't plan to use other rain sensor
    Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

    Kommentar

    • olicat
      MS Profi
      • 25.08.2015
      • 558

      #512
      Hi!

      Thanks for the info. You have found the error!
      It was not noticed until now because very few users of a WS90 use its rain values (they are too bad).
      I have fixed the error here for v0.10.
      Thank you!

      Oliver

      Kommentar

      • TomekWaw
        LoxBus Spammer
        • 25.07.2019
        • 439

        #513
        Thanks! Are those names going to be with mm suffix or without in the future?
        What values should I use?
        I see drain_piezomm=4.09 and FOSHK-drain_piezo [4,09] in the UDP monitor (and all data in pairs for that) and I'm a bit confused


        Btw, strangely I'm unable to remap those values to translated names as you suggested on wxforum (but with translated names with mm not in[ch])

        I've added

        Code:
        FWD_REMAP = rainratemm=@rrain_piezomm,eventrainmm=@erain_piezomm,hourlyrainmm=@hrain_piezomm,dailyrainmm=@drain_piezomm,weeklyrainmm=@wrain_piezomm,monthlyrainmm=@mrain_piezomm,yearlyrainmm=@yrain_piezomm
        In sections [Forward] and [Forward-1] and restarted plugin to reread conf file. But still translated data don't show in the UDP monitor nor in the Config

        Click image for larger version  Name:	rainfall4.png Views:	0 Size:	24.3 KB ID:	395105
        Zuletzt geändert von TomekWaw; 23.06.2023, 14:00.
        Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

        Kommentar


        • olicat
          olicat kommentierte
          Kommentar bearbeiten
          These names going to be with mm suffix.
          I guess you see them twice because the Loxone-UDP monitor shows them (also) as the Loxone-variables - the names of the virttual inputs.
          Regarding the remap function have a look to the help pages - the input names may be different - so just use in instead of mm.

          Oliver
      • Gerrit
        MS Profi
        • 26.08.2015
        • 940

        #514
        ich hatte erst spät festgestellt, dass das FOSHK Plugin nach dem Loxberry Update von 2.2.2.2 auf 3.0.0.6 nicht mehr funktioniert hatte. Ein Restart des Plugins (Über WebFE) hatte nicht geholfen. Die Links zu den 3 Logfiles konnten alle nicht aufgelöst werden = keine Logfiles vorhanden.
        Ich hab dann das Plugin neu bzw. drüber installiert (gleiche 0.0.9), danach funktionierte das Plugin wieder normal. Da es auch mit anderen Paketen beim Loxberry-Update auf v3 ein Problem gab (Ursache war root-folder hatte falsche Rechte - loxberry User statt root), gab es eventuell auch bei dem Update der FOSHK Pakete beim Loxberry v3 Update ein Problem. Durch die nochmalige Installation wurde es dann repariert.
        Zuletzt geändert von Gerrit; 23.06.2023, 15:45.

        Kommentar

        • olicat
          MS Profi
          • 25.08.2015
          • 558

          #515
          Gerrit, danke fuer die Info.
          Ich hoere zum ersten Mal von diesem Problem. Wenn aber auch andere Plugins betroffen waren, liegt ein uebergeordnetes Problem nahe.
          Als Rat an die Nutzer kann man dann wohl beim Upgrade des LoxBerry von v2 auf v3 die moeglichst zeitnahe Pruefung, ob alle Plugins funktionieren, zusammenfassen.

          Vielleicht sollte ich kuerzere Release-Zyklen einfuehren, damit haeufiger ein Update gemacht werden kann ...
          ;-)

          Oliver

          Kommentar


          • Gerrit
            Gerrit kommentierte
            Kommentar bearbeiten
            potentiell gabs auch weniger Fälle, weil es auch einige gab, die dann lieber gleich komplett neuinstalliert haben, statt auf langwierige Fehlersuche zu gehen (denke der Fehler wird durch eine ältere Zwischenversion o.ä. schon länger bei mir drin gewesen sein https://www.loxforum.com/forum/proje...323#post391323)
        • TomekWaw
          LoxBus Spammer
          • 25.07.2019
          • 439

          #516
          olicat my mistake, coping to clipboard the raw in UPD monitor was also coping Hex data and Objects column. So they are actually not doubled (see full UDP monitor text data below).

          But I still have a problem with remaping. I've corrected it based on documentation to this (added missing @ before names:

          Code:
          root@loxberry:/opt/loxberry# cat config/plugins/foshkplugin/foshkplugin.conf|grep REMAP
          FWD_REMAP=@rainratemm=@rrain_piezomm,@eventrainmm=@erain_piezomm,@hourlyrainmm=@hrain_piezomm,@dailyrainmm=@drain_piezomm,@weeklyrainmm=@wrain_piezomm,@monthlyrainmm=@mrain_piezomm,@yearlyrainmm=@yrain_piezomm
          FWD_REMAP=@rainratemm=@rrain_piezomm,@eventrainmm=@erain_piezomm,@hourlyrainmm=@hrain_piezomm,@dailyrainmm=@drain_piezomm,@weeklyrainmm=@wrain_piezomm,@monthlyrainmm=@mrain_piezomm,@yearlyrainmm=@yrain_piezomm


          Then I've restarted plugin and still get only this:

          Code:
          SID=FOSHKweather PASSKEY=533791E575xxxxxxxxxxxxxxxxxxx stationtype=GW2000A_V2.2.4 runtime=122006 dateutc=2023-06-23+19:21:52 loxtime=456787312 tempinc=24.0 humidityin=71 baromrelhpa=1022.59 baromabshpa=1005.59 tempc=21.8 humidity=63 winddir=242 windspeedkmh=0.0 windgustkmh=6.12 maxdailygust=10.44 solarradiation=0.24 uv=0 rrain_piezomm=0.0 erain_piezomm=4.09 hrain_piezomm=0.0 drain_piezomm=4.09 wrain_piezomm=4.09 mrain_piezomm=4.09 yrain_piezomm=4.09 ws90cap_volt=5.1 ws90_ver=133 wh90batt=3.28 freq=868M model=GW2000A interval=60 isintvl=61 isintvl10=61 dewptc=14.4 windchillc=21.8 feelslikec=21.8 heatindexc=21.7 windspdkmh_avg10m=2.9 winddir_avg10m=236 windgustkmh_max10m=6.12 brightness=30.4 sunhours=6.75 ptrend1=2 pchange1=1.6 wnowlvl=3 wnowtxt=sunny ptrend3=-1 pchange3=1.1 wproglvl=5 wprogtxt="nice for a long time"
          so no data for values such as rainratemm, etc. What am I missing here?
          Zuletzt geändert von TomekWaw; 23.06.2023, 21:42.
          Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

          Kommentar

          • TomekWaw
            LoxBus Spammer
            • 25.07.2019
            • 439

            #517
            I've tried again with common names without @ (as they do not exist yet):

            Code:
            FWD_REMAP=rainratemm=@rrain_piezomm,eventrainmm=@erain_piezomm,hourlyrainmm=@hrain_piezomm,dailyrainmm=@drain_piezomm,weeklyrainmm=@wrain_piezomm,monthlyrainmm=@mrain_piezomm,yearlyrainmm=@yrain_piezomm
            FWD_REMAP=rainratemm=@rrain_piezomm,eventrainmm=@erain_piezomm,hourlyrainmm=@hrain_piezomm,dailyrainmm=@drain_piezomm,weeklyrainmm=@wrain_piezomm,monthlyrainmm=@mrain_piezomm,yearlyrainmm=@yrain_piezomm


            and still no success
            Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

            Kommentar


            • olicat
              olicat kommentierte
              Kommentar bearbeiten
              Hi!

              You have to use this remap scheme:
              Code:
              rainratein=@rrain_piezo,eventrainin=@erain_piezo,hourlyrainin=@hrain_piezo,dailyrainin=@drain_piezo,weeklyrainin=@wrain_piezo,monthlyrainin=@mrain_piezo,yearlyrainin=@yrain_piezo
              Within FOSHKplugin, first the remapping and then the conversion into the metric system (with it own variable names) takes place.
              Only afterwards the output takes place via UDP (with metric variable names).

              Oliver
              Zuletzt geändert von olicat; 24.06.2023, 15:57. Grund: in hourlyrainin war ein "g" zu viel - fixed
          • TomekWaw
            LoxBus Spammer
            • 25.07.2019
            • 439

            #518
            olicat Thanks, I've tried this

            Code:
            root@loxberry:/opt/loxberry# cat config/plugins/foshkplugin/foshkplugin.conf|grep REMAP
            FWD_REMAP=rainratein=@rrain_piezo,eventrainin=@erain_piezo,hourlyrainin=@hrain_piezo,dailyrainin=@drain_piezo,weeklyrainin=@wrain_piezo,monthlyrainin=@mrain_piezo,yearlyrainin=@yrain_piezo
            FWD_REMAP=rainratein=@rrain_piezo,eventrainin=@erain_piezo,hourlyrainin=@hrain_piezo,dailyrainin=@drain_piezo,weeklyrainin=@wrain_piezo,monthlyrranin=@mrain_piezo,yearlyrainin=@yrain_piezo
            and this (my templates expects names with mm so I've tried to change in to mm)

            Code:
            root@loxberry:/opt/loxberry# cat config/plugins/foshkplugin/foshkplugin.conf|grep REMAP
            FWD_REMAP=rainratemm=@rrain_piezo,eventrainmm=@erain_piezo,hourlyrainmm=@hrain_piezo,dailyrainmm=@drain_piezo,weeklyrainmm=@wrain_piezo,monthlyrainmm=@mrain_piezo,yearlyrainmm=@yrain_piezo
            FWD_REMAP=rainratemm=@rrain_piezo,eventrainmm=@erain_piezo,hourlyrainmm=@hrain_piezo,dailyrainmm=@drain_piezo,weeklyrainmm=@wrain_piezo,monthlyrainmm=@mrain_piezo,yearlyrainmm=@yrain_piezo


            But nothing works. Im running out of ideas
            Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

            Kommentar

            • olicat
              MS Profi
              • 25.08.2015
              • 558

              #519
              Hi!

              Your FWD_REMAP line is correct (I also corrected mine above).

              Have you set up a special forward to send the data to Loxone via UDP?
              Or do you use the automatic function of sending to Loxone - without a special forward?
              The FWD_REMAP only works with forward destinations. When sending to Loxone, I saw no need for remapping, as you can determine yourself at the destination which data you process and how.
              Therefore, I do not understand why you want to remap the fields at all.

              But:
              If you change UDP_ENABLE in the config file to False and create a separate forward like this:
              Code:
              [Forward-1]
              FWD_ENABLE = True # to deactivate this forward temporarily just set to False instead of deleting the URL (default: True)
              FWD_CMT = this forward sends the converted data via UDP to the destination:port
              FWD_URL = 192.168.15.255:12355 # URL of destination - broadcast datagrams on port 12355
              FWD_TYPE = UDP # WU/UDP/LD/RAW/EW/RAWEW/RAWUDP/AMB/RAWAMB/WC/MT/AWEKAS/WETTERCOM/WEATHER365/REALTIMETXT/CLIENTRAWTXT/CSVFILE/TXTFILE/WETTERSEKTOR/MQTTMET/MQTTIMP
              FWD_SID = FOSHKweather # username for forward if necessary (SensorID for luftdaten.info)
              FWD_STATUS = False # FWD_TYPE=UDP only: if set to True attach current status on each outgoing datagram (default: False)
              FWD_WARNINT = 10 # threshold of unsuccessful forward attempts before warning
              FWD_REMAP = rainratein=@rrain_piezo,eventrainin=@erain_piezo,h ourlyrainin=@hrain_piezo,dailyrainin=@drain_piezo, weeklyrainin=@wrain_piezo,monthlyrainin=@mrain_pie zo,yearlyrainin=@yrain_piezo
              the remap function should work.
              But it is not really necessary to set up a special UDP forward and I see no reason why you should change any field names for Loxone.
              Can you explain what you expect from this?

              Regards, Oliver

              Kommentar

              • TomekWaw
                LoxBus Spammer
                • 25.07.2019
                • 439

                #520
                I'm not really sure what kind of forward I am using. I have my gateway configured with this:

                Click image for larger version  Name:	Untitled-15.png Views:	0 Size:	77.7 KB ID:	395231

                and the plugin with this:

                Click image for larger version  Name:	Untitled-14.png Views:	0 Size:	125.1 KB ID:	395232

                .3 is Miniserver, .5 is Loxberry, .35 is GW2000

                is this a special forward or automatic configuration?

                So anyway, I wanted to have that data also under generic names in case I would add WH40 to my system in the future. But I might misunderstood their purpose.
                Shell I just use the input in the left column on previous screenshot and forget about the inputs in the right column?
                Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

                Kommentar

                • Lightpicture
                  Lebende Foren Legende
                  • 16.11.2015
                  • 3644

                  #521
                  Hello TomekWaw

                  That's the forward to the FOSHK Plugin.
                  FG
                  Lightpicture

                  Nur ein Netzwerkkabel ist richtiges WLAN

                  Kommentar

                  • olicat
                    MS Profi
                    • 25.08.2015
                    • 558

                    #522
                    Hi!

                    You just use the standard and obviously no forward. You may click to the Optional settings - there you could configure a dedicated forward.
                    Or. - as I usually do - use vi and configure in the config file directly.

                    Anyway, I understand your approach and think of adding this feature in the future.

                    If you add a WH40 to your setup all the rain values of the WH40 are coming in with the old names and additionally also the values from the WS90 as something_piezo.
                    ​​​​​​So you can compare and make use of the much more faster rain detection of the WS90.

                    Oliver

                    Kommentar

                    • TomekWaw
                      LoxBus Spammer
                      • 25.07.2019
                      • 439

                      #523
                      Zitat von olicat
                      You may click to the Optional settings - there you could configure a dedicated forward.
                      O my god I totally missed all those options I thought "Optional settings" is a header for last three input fields
                      I think I understand it all now.
                      I will keep using the data inputs I have and upgrade the plugin to future versions when you release them.

                      Thank you Oliver very much, you're very patient to my questions and helpful with your answers.
                      And [in general] thank you very much for this plugin, I believe I going to be a long time user.
                      Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

                      Kommentar

                      • Lightpicture
                        Lebende Foren Legende
                        • 16.11.2015
                        • 3644

                        #524
                        Hallo olicat

                        Recht herzlichen Dank für deine unzähligen Stunden die du in das Plugin investiert hast.
                        Es ist nur großartig.

                        Zweites FOSHK Plugin am loxberry installiert.
                        Heute die von dir gesendete Version entpackt.
                        Änderungen in der config Datei durchgeführt wie im Wiki beschrieben.
                        Gepackt.
                        Installiert, Werte angepasst und alles funktioniert zu 100%
                        Wie das Wetter derzeit, EIN TRAUM.

                        DANKE!

                        FG
                        Lightpicture

                        Nur ein Netzwerkkabel ist richtiges WLAN

                        Kommentar

                        • olicat
                          MS Profi
                          • 25.08.2015
                          • 558

                          #525
                          Hi!

                          Von FOSHKplugin gibt es eine (neue) public Beta der v0.10.
                          Wer mag oder eine der unzaehligen neuen Funktionen nutzen moechte, kann diese Version ueber die LoxBerry-Plugin-Verwaltung installieren.
                          Dazu bitte diesen Download-Link nutzen:
                          Code:
                          https://foshkplugin.phantasoft.de/files/loxberry-FOSHKplugin-0.0.10Beta.zip
                          Zu den Highlights dieser Version gehoeren die Unterstuetzung von InfluxDB2, die Moeglichkeit, verschiedene Forwards im Fehlerfall oder bei Unerreichbarkeit des Ziels, zwischenzuspeichern und nach Wiedererreichbarkeit nachzusenden.
                          Weiterhin gibt es benutzerdefinierte Push-Benachrichtigungen (etwa wenn ein Wert ein definiertes Limit uebersteigt), die automatische Erstellung von Bannern und Stickern (Demo) sowie die Ausgabe von benutzerdefinierten Outputs (etwa html-Seiten - Beispiel1 und Beispiel2).
                          Auf der Seite zur generic version gibt es auch zu diesen neuen Funktionen Erklaerungen und "Rezepte" mit Beispielen (auf Englisch).

                          Das komplette Changelog findet sich unter Version History (ebenfalls auf Englisch).

                          Der Grossteil der Dokumentation ist diesmal aus Zeitgruenden auf Englisch.
                          Bitte gebt Bescheid, wenn das fuer Euch nicht akzeptabel ist.

                          Gruss, Oliver
                          Zuletzt geändert von olicat; 05.07.2023, 06:34.

                          Kommentar

                          Lädt...