Author Topic: FOSHKplugin - brief introduction  (Read 39191 times)

0 Members and 1 Guest are viewing this topic.

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
FOSHKplugin - brief introduction
« on: June 03, 2020, 04:05:28 AM »
Even if the core task of the program is actually the conversion of incoming data from a weather station in WU or Ecowitt format to UDP, it does offer a few functions that go beyond this.
Maybe this program is useful for someone.

Do you want to integrate your weather station data in your smarthome system? FOSHKplugin knows many ways to do so!
If you've always been annoyed to only have ONE custom server - this could be the solution!
If you really need a shorter sending interval than 16 seconds - that is possible!
Would you like to change the sending interval to WU or just send a subset of data to an online provider? No problem.
Have you always wanted to contribute your PM2.5 data to global sensor network luftdaten.info / sensors.community? Built-in!
Want to use a WH31 instead of a WH32 outside while still sending outdoor temperature & humidity to any service? OK!
Do you still want to use WSWin for your analyzes? The CSV function makes it possible!
Searching for a possibility to feed Weather34 with Ecowitt data? Should work!
Would you like to upload your weather station data to your own server in order to process and present it yourself there? No problem!
Want to keep sending the lightning data to external services/programs on a GW1000 even when the device is restarted? FOSHKplugin replaces this data with the last valid values!
If you need your weather data as MQTT topics - FOSHKplugin will make this happen!
Is there a need to visualize or compare data from different sources together? Possible with the support of InfluxDB and Grafana!

With FOSHKplugin I feed several services with just one GW1000:

GW1000 -- custom server --> FOSHKplugin --> Loxone home automations system (UDP)
                                                                --> weewx (Ecowitt)
                                                                --> local PWSDashboard (Ecowitt)
                                                                --> remote PWSDashboard (Ecowitt)
                                                                --> PWT Personal Weather Tablet Android-app (Ecowitt) for 3 devices
                                                                --> Awekas (WU)
                                                                --> Awekas (API)
                                                                --> Weather Underground (WU)
                                                                --> Windy (WU)
                                                                --> PWSweather (WU)
                                                                --> WOW (WU)
                                                                --> Luftdaten.info
                                                                --> CSV (for further local analysis or import to WSWin via X-CSV)
                                                                --> Weathercloud
                                                                --> Meteotemplate (via API)
                                                                --> Ambient Weather (API)
                                                                --> wetter.com (API)
                                                                --> weather365.net (API)
                                                                --> wettersektor.de (API)
                                                                --> several other targets via clientraw.txt and realtime.txt like WND or wetternetzwerk.pro
                                                                --> direct import into WSWin Weatherstation Operation- and Data Acquisition Software
                                                                --> feeding any MQTT broker
                                                                --> feeding InfluxDB to visualize data with e.g. Grafana
                                                                --> feeding WeatherWizz in Ecowitt format
                                                                --> feeding APRS/CWOP (from v0.09)
More are possible ...

Check the generic-version at https://foshkplugin.phantasoft.de/generic/ or if interested in LoxBerry-version at https://foshkplugin.phantasoft.de/

FOSHKplugin works with several weather stations from Fine Offset - not only the GW1000 or GW1100. Every station which is able to send its data via custom server function is supported (HP2551C, HP3500/3501, WH2650, WH2910, Ambient Weather WS 2000/5000, ...).
The program is not intended to serve as comprehensive weather observation or analysis software.
It's more about creating interfaces and keeping the data local.

Regards, Oliver

Offline GHammer

  • Senior Contributor
  • ****
  • Posts: 210
    • Woodmar Weather
Re: FOSHKplugin - brief introduction
« Reply #1 on: June 03, 2020, 11:47:17 AM »
I have downloaded this and find an issue.
I have a GW1000 and two Ecowitt HP2551.
When I run the recipe found here (https://www.loxwiki.eu/display/LOXBERRY/FOSHKplugin+-+generic+version) I get the IP of the 2 consoles and never the GW1000.

./foshkplugin.py -getwsip
gary@tester:~/Downloads$ ./foshkplugin.py -getwsip
10.10.100.121
gary@tester:~/Downloads$ ./foshkplugin.py -getwsport
45000
gary@tester:~/Downloads$ ./foshkplugin.py -getwsip
10.10.100.122
gary@tester:~/Downloads$ ./foshkplugin.py -getwsport
45000
gary@tester:~/Downloads$ ./foshkplugin.py -getwsip
10.10.100.121
gary@tester:~/Downloads$ ./foshkplugin.py -getwsip
10.10.100.121
gary@tester:~/Downloads$ ./foshkplugin.py -getwsip
10.10.100.122
Wireless Vantage Pro2 Plus with 24hr FARS, WLL

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #2 on: June 03, 2020, 11:56:09 AM »
Hi!

Because I only own one device I was never able to check this with more than one device.
Sorry!
If you know the IP address of the device you want to change just use this IP in the last step.

Regards, Oliver

Offline GHammer

  • Senior Contributor
  • ****
  • Posts: 210
    • Woodmar Weather
Re: FOSHKplugin - brief introduction
« Reply #3 on: June 03, 2020, 12:02:19 PM »
That's what I had hoped.
Thanks.
Wireless Vantage Pro2 Plus with 24hr FARS, WLL

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #4 on: June 10, 2020, 06:48:00 AM »
redistribute the Ecowitt stream of a GW1000 to several weewx

The GW1000 knows exactly ONE destination for a custom server upload. But if you want to feed several instances of weewx with the data from the GW1000, this also requires several GW1000.
Or you can simply use FOSHKplugin with just one GW1000 and let FOSHKplugin redistribute the incoming stream as you like!

FOSHKplugin knows 10 forwarding destinations - called Forwards.
A Forward-block must be created in the config file for each forward, in which the target, type and other conditions can be configured:

[Forward-n]
FWD_URL =                 # URL of destination
FWD_INTERVAL =        # interval in seconds in which lines will be forwarded
FWD_IGNORE = ""       # comma-separated list of fields to not forward
FWD_TYPE = ""            # WU/UDP/LD/RAW/EW/RAWEW/RAWUDP - WU: WU-format; UDP: UDP-String will be forwarded (default); LD: PM2.5 luftdaten.info; EW: Ecowitt; RAWEW: Ecowitt untouched; RAW: as input; RAWUDP: RAW via UDP
FWD_SID = ""             # SensorID for luftdaten.info

For the forwarding of the original Ecowitt stream, only the destination (FWD_URL) and the type (FWD_TYPE) have to be defined. The other parameters are optional.

If you want to operate 3 weewx instances with a GW1000, you have to enter the IP address of the FOSHKplugin host under Server IP / Hostname and the port number configured there (LBH_PORT) under Port via the WS View app.
/data/report/ should be configured as Path.



On FOSHKplugin-side you have to create 3 blocks that refer to the respective weewx instances:

[Forward-1]
FWD_URL = http://weewx-host1:weewx-port1           # URL of destination
FWD_TYPE = RAWEW                                               # RAWEW: Ecowitt untouched

[Forward-2]
FWD_URL = http://weewx-host1:weewx-port2           # URL of destination
FWD_TYPE = RAWEW                                               # RAWEW: Ecowitt untouched

[Forward-3]
FWD_URL = http://weewx-host1:weewx-port3           # URL of destination
FWD_TYPE = RAWEW                                               # RAWEW: Ecowitt untouched

Don't forget to restart the systemd service after making changes to the config file: service foshkplugin restart.
As a result, when an Ecowitt string is received by the GW1000, it is forwarded in parallel and unprocessed to these defined forwards.

other recipes you may find here:
https://www.loxwiki.eu/pages/viewpage.action?pageId=72122803#FOSHKplugingenericversion-Recipes

Regards, Oliver

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #5 on: June 19, 2020, 08:01:20 AM »
Oliver,

Will this work on a Ecowitt HP2550 clone which is sending Ecowitt data to my Weewx set up on a RPi?

I'm trying to install your FOSHKplugin - generic version on the same RPi as which Weewx is running.

I'm presently receiving data from the weather station (ip: 192.168.1.35) to my Weewx set up (ip: 192.168.1.151 on port 8085) and using the information to feed PWS on the net and locally to PWS_Dashboard - also set up on the Weewx Rpi which is working fine.

I would like to also send RAWEW data to 192.168.1.31 (Android Tablet to feed Da9L's program  :grin:), but all my attempts have failed - some of my error messages below!  :-(

Jun 19 11:59:40 weewx foshkplugin[16998]: <OK> FOSHKplugin v0.05 started
Jun 19 11:59:40 weewx foshkplugin[16998]: <ERROR> can not open http-socket 127.0.1.1:80
Jun 19 11:59:40 weewx foshkplugin[16998]: <OK> report watchdog activated, will warn if weather station did not report within 3 send-intervals
Jun 19 11:59:40 weewx foshkplugin[16998]: <OK> storm warning activated, will warn if air pressure rises/drops more than 1.75 hPa/hour with expiry time of 60 minutes
Jun 19 11:59:40 weewx foshkplugin[16998]: <OK> FOSHKplugin v0.05 stopped

Jun 19 12:03:20 weewx foshkplugin[17085]: <ERROR> can not open http-socket 192.168.1.151:80
Jun 19 12:03:20 weewx foshkplugin[17085]: <OK> report watchdog activated, will warn if weather station did not report within 3 send-intervals
Jun 19 12:03:20 weewx foshkplugin[17085]: <OK> storm warning activated, will warn if air pressure rises/drops more than 1.75 hPa/hour with expiry time of 60 minutes
Jun 19 12:03:20 weewx foshkplugin[17085]: <OK> FOSHKplugin v0.05 stopped

Jun 19 12:05:21 weewx foshkplugin[17142]: <OK> FOSHKplugin v0.05 started
Jun 19 12:05:21 weewx foshkplugin[17142]: <OK> local http-socket 192.168.1.151:8080 bound
Jun 19 12:05:21 weewx foshkplugin[17142]: <OK> report watchdog activated, will warn if weather station did not report within 3 send-intervals
Jun 19 12:05:21 weewx foshkplugin[17142]: <OK> storm warning activated, will warn if air pressure rises/drops more than 1.75 hPa/hour with expiry time of 60 minutes
Jun 19 12:05:21 weewx foshkplugin[17142]: <ERROR> sendUDP to : im except!
Jun 19 12:05:21 weewx foshkplugin[17142]: <OK> local UDP-socket 192.168.1.151:8085 bound
Jun 19 12:05:21 weewx foshkplugin[17142]: <OK> remote UDP: :

Any suggestions much appreciated.

Regards,

Andy

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #6 on: June 19, 2020, 09:14:33 AM »
Hi Andy,

Quote
Will this work on a Ecowitt HP2550 clone which is sending Ecowitt data to my Weewx set up on a RPi?
Yes.
FOSHKplugin will work with every device sending WU or Ecowitt.
The automatic detection and remote configuration of the weather station may not work (in your case, it should). But the configuration in the config file is done with a few entries.

Quote
all my attempts have failed - some of my error messages below!
You are using version v0.05. You should definitely use the current Beta v0.06, because only there is the possibility of extended forwards like RAWEW:
https://foshkplugin.phantasoft.de/files/generic-FOSHKplugin-0.0.6Beta.zip

The configuration for the forwards should then look like this in your case:
Code: [Select]
# forward to weewx
[Forward-1]
FWD_TYPE = RAWEW
FWD_URL = http://192.168.1.151:8085/

# forward to PWT
[Forward-2]
FWD_TYPE = RAWEW
FWD_URL = http://192.168.1.31:8572/data/report/

Regards, Oliver

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #7 on: June 19, 2020, 10:38:44 AM »
Hi Oliver,

Many thanks for the quick response and the pointer to update to the latest beta version which I did.

After installing 0.0.6 Beta and following your config for weewx & PWT I am very happy to say that all is running fine and all programs are updating  [tup]

VMT for your assistance.

Regards,

Andy

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #8 on: June 19, 2020, 11:02:57 AM »
You are welcome!

Of course, you can also operate several tablets with PWT in parallel with this solution (if you define a separate forward for each tablet).
Or (additionally) run any other software that Ecowitt expects. Maybe you still need a separate weewx instance for testing?
;-)

Regards, Oliver

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #9 on: June 20, 2020, 07:16:13 AM »
Hi Oliver,

Quick question, How do you stop the logging with FOSHKplugin?

I've tried 'logging.getLogger foshkplugin', 'generic-FOSHKplugin-install.sh -logging' etc etc to no avail  :-(

Your assistance much appreciated  [tup]

regards,

Andy

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #10 on: June 20, 2020, 07:44:15 AM »
Hi Andy,

simply comment out the three logging lines (sndfile, rawfile, logfile) in the config file.
Just write a # as first character in the line:

Code: [Select]
[Logging]
#sndfile = filename
#rawfile = filename
#logfile = filename

Regards, Oliver

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #11 on: June 20, 2020, 08:19:25 AM »
Hi Andy,

simply comment out the three logging lines (sndfile, rawfile, logfile) in the config file.
Just write a # as first character in the line:

Code: [Select]
[Logging]
#sndfile = filename
#rawfile = filename
#logfile = filename

Regards, Oliver

Cheers Oliver, much appreciated  :grin:

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #12 on: June 20, 2020, 08:29:15 AM »
Hi Oliver,

Just tried the above '#' infront on the log files, and now getting a load of errors  :-(

Jun 20 13:22:03 weewx foshkplugin[28075]: Exception in thread Thread-5:
Jun 20 13:22:03 weewx foshkplugin[28075]: Traceback (most recent call last):
Jun 20 13:22:03 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Jun 20 13:22:03 weewx foshkplugin[28075]:     self.run()
Jun 20 13:22:03 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 865, in run
Jun 20 13:22:03 weewx foshkplugin[28075]:     self._target(*self._args, **self._kwargs)
Jun 20 13:22:03 weewx foshkplugin[28075]:   File "/opt/FOSHKplugin/foshkplugin.py", line 774, in forwardStringToEW
Jun 20 13:22:03 weewx foshkplugin[28075]:     sndlogger.info(okstr + "FWD: " + url + " post: " + outstr + " : " + ret)
Jun 20 13:22:03 weewx foshkplugin[28075]: NameError: name 'sndlogger' is not defined
Jun 20 13:22:36 weewx foshkplugin[28075]: Exception in thread Thread-7:
Jun 20 13:22:36 weewx foshkplugin[28075]: Traceback (most recent call last):
Jun 20 13:22:36 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Jun 20 13:22:36 weewx foshkplugin[28075]:     self.run()
Jun 20 13:22:36 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 865, in run
Jun 20 13:22:36 weewx foshkplugin[28075]:     self._target(*self._args, **self._kwargs)
Jun 20 13:22:36 weewx foshkplugin[28075]:   File "/opt/FOSHKplugin/foshkplugin.py", line 774, in forwardStringToEW
Jun 20 13:22:36 weewx foshkplugin[28075]:     sndlogger.info(okstr + "FWD: " + url + " post: " + outstr + " : " + ret)
Jun 20 13:22:36 weewx foshkplugin[28075]: NameError: name 'sndlogger' is not defined
Jun 20 13:22:36 weewx foshkplugin[28075]: Exception in thread Thread-8:
Jun 20 13:22:36 weewx foshkplugin[28075]: Traceback (most recent call last):
Jun 20 13:22:36 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Jun 20 13:22:36 weewx foshkplugin[28075]:     self.run()
Jun 20 13:22:36 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 865, in run
Jun 20 13:22:36 weewx foshkplugin[28075]:     self._target(*self._args, **self._kwargs)
Jun 20 13:22:36 weewx foshkplugin[28075]:   File "/opt/FOSHKplugin/foshkplugin.py", line 774, in forwardStringToEW
Jun 20 13:22:36 weewx foshkplugin[28075]:     sndlogger.info(okstr + "FWD: " + url + " post: " + outstr + " : " + ret)
Jun 20 13:22:36 weewx foshkplugin[28075]: NameError: name 'sndlogger' is not defined
Jun 20 13:23:19 weewx foshkplugin[28075]: Exception in thread Thread-11:
Jun 20 13:23:19 weewx foshkplugin[28075]: Traceback (most recent call last):
Jun 20 13:23:19 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Jun 20 13:23:19 weewx foshkplugin[28075]:     self.run()
Jun 20 13:23:19 weewx foshkplugin[28075]:   File "/usr/lib/python3.7/threading.py", line 865, in run
Jun 20 13:23:19 weewx foshkplugin[28075]:     self._target(*self._args, **self._kwargs)
Jun 20 13:23:19 weewx foshkplugin[28075]:   File "/opt/FOSHKplugin/foshkplugin.py", line 774, in forwardStringToEW
Jun 20 13:23:19 weewx foshkplugin[28075]:     sndlogger.info(okstr + "FWD: " + url + " post: " + outstr + " : " + ret)
Jun 20 13:23:19 weewx foshkplugin[28075]: NameError: name 'sndlogger' is not defined

They just keep repeating - any ideas?

Regards,

Andy

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #13 on: June 20, 2020, 08:34:52 AM »
Oops!
Sorry, this seems to be a bug in the Beta. I have to investigate ...
Till solution you could try to set all these logfiles to /dev/null:

Code: [Select]
[Logging]
sndfile = /dev/null
rawfile = /dev/null
logfile = /dev/null

Regards, Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #14 on: June 20, 2020, 08:53:02 AM »
Hi Andy,

the problem was found and fixed (hopefully).
Please download the current Beta with fixed logging: https://foshkplugin.phantasoft.de/files/generic-FOSHKplugin-0.0.6Beta.zip

Depending on which beta you're on, you should get a
Code: [Select]
./generic-FOSHKplugin-install.sh -update generic-FOSHKplugin-0.0.6Beta.zipsufficient for an update installation while keeping the current configuration.

Thank you for finding&reporting!
:-)

Regards, Oliver

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #15 on: June 20, 2020, 10:11:55 AM »
Hi Oliver,

All updated and seems to be running fine  [tup]

Had to do it the long way as when I tried using sudo ./generic-FOSHKplugin-install.sh -upgrade 'filename_info_etc' it came up with a 'permission error' on a file or more?? - grey cells getting old, so sorry, cant remember which one/ones!!   :-(

Regards, Andy

Offline dmtalon

  • Member
  • *
  • Posts: 23
Re: FOSHKplugin - brief introduction
« Reply #16 on: July 27, 2020, 11:54:19 AM »
Checking out this very interesting software. I've downloaded the generic version and installed it/setup on a Raspberry Pi so that it can try to feed data into "Personal Weather Tablet" android app, and weewx (and possibly WU) using my Ecowitt WH31 as a WH32.  Since there's apparently no more WH32's available on the planet.

I had weewx setup using the new API for the GW1000, so I reconfigured it back to the interceptor.  I ran through the configuration of FOSHKplugin and pointed the UDP to my tablet IP/PORT shown on the app.  I also setup a forwarder to the same Raspberry py URL port 8000. 

I am using the WH31 on channel 1 and setup the configuration as such:

[Export]
EVAL_VALUES = True
ADD_ITEMS =
OUT_TEMP = temp1f
OUT_HUM = humidity1

For weewx I have the following

[Forward-1]
FWD_URL = http://192.168.0.182:8000/
FWD_TYPE = RAWEW


But I have a question. I do not have Nginx/Apache running a web server on my Pi, so will this still work as expected since it should still hit port 8000 where weewx is listening with the interceptor?   It seems to be streaming data to weewx, but the outside temperature is still blank, and the extra "Temperature1" is still populated with my WH31 data. (parentheses added for this post only, not in the config file)


[Config]
LOX_IP = 192.168.0.177 (android tablet)
LOX_PORT = 8572 (android tablet)
LB_IP = 192.168.0.182 (Raspberry Pi)
LBU_PORT = 12340
LBH_PORT = 8080
LOX_TIME = False
USE_METRIC = False
IGNORE_EMPTY = True
UDP_ENABLE = True
UDP_IGNORE =
LANGUAGE = EN
AUTH_PWD =


For weewx Interceptor the following config:

[Interceptor]
    # This section is for the network traffic interceptor driver.

    # The driver to use:
    driver = user.interceptor

    # Specify the hardware device to capture.  Options include:
    #   acurite-bridge - acurite internet bridge, smarthub, or access
    #   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
    #   lw30x - oregon scientific LW301/LW302
    #   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
    #   ecowitt-client - any hardware that uses the ecowitt protocol
    #   wu-client - any hardware that uses the weather underground protocol
    device_type = ecowitt-client
    port = 8000


This is all pretty new to me, so hopefully I am not too confused :)  Any help would be appreciated.


P.S.  snd log data.

27.07.2020 11:50:43.341 UDP: SID=FOSHKweather PASSKEY=<removed> stationtype=GW1000B_V1.6.1 dateutc=2020-07-27+15:50:42 tempinf=72.9 humidityin=47 baromrelin=30.008 baromabsin=30.008 winddir=8 windspeedmph=2.46 windgustmph=5.82 maxdailygust=11.41 solarradiation=177.35 uv=1 rainratein=0.000 eventrainin=0.000 hourlyrainin=0.000 dailyrainin=0.000 weeklyrainin=0.000 monthlyrainin=0.020 yearlyrainin=0.020 totalrainin=0.020 tempf=87.26 humidity=70 lightning_time= lightning_num=0 lightning= wh68batt=1.80 wh40batt=1.6 batt1=0 wh57batt=5 freq=915M model=GW1000_Pro dewptf=76.3 windchillf=87.3 feelslikef=98.2 heatindexf=98.2
27.07.2020 11:50:43.371 FWD: http://192.168.0.182:8000/ post: PASSKEY=<removed>&stationtype=GW1000B_V1.6.1&dateutc=2020-07-27+15:50:42&tempinf=72.9&humidityin=47&baromrelin=30.008&baromabsin=30.008&winddir=8&windspeedmph=2.46&windgustmph=5.82&maxdailygust=11.41&solarradiation=177.35&uv=1&rainratein=0.000&eventrainin=0.000&hourlyrainin=0.000&dailyrainin=0.000&weeklyrainin=0.000&monthlyrainin=0.020&yearlyrainin=0.020&totalrainin=0.020&temp1f=87.26&humidity1=70&lightning_time=&lightning_num=0&lightning=&wh68batt=1.80&wh40batt=1.6&batt1=0&wh57batt=5&freq=915M&model=GW1000_Pro : 200


From weewx in debug=1  I am assuming that this data is coming from FOSHKplugin because the install modified my GW1000 setting to send to it vs. weewx.

Jul 27 11:51:45 raspberrypi weewx[13185] DEBUG user.interceptor: raw packet: {'dateTime': 1595865104, 'usUnits': 1, 'temperature_in': 72.9, 'humidity_in': 47.0, 'pressure': 30.011, 'wind_dir': 315.0, 'wind_speed': 3.8, 'wind_gust': 8.05, 'solar_radiation': 168.82, 'uv': 1.0, 'rain_rate': 0.0, 'rain_total': 0.02, 'temperature_1': 87.08, 'humidity_1': 70.0, 'wh40_battery': 1.6, 'battery_1': 0.0, 'rain': 0.0}
Jul 27 11:51:45 raspberrypi weewx[13185] DEBUG user.interceptor: mapped packet: {'dateTime': 1595865104, 'usUnits': 1, 'pressure': 30.011, 'inHumidity': 47.0, 'inTemp': 72.9, 'windSpeed': 3.8, 'windGust': 8.05, 'windDir': 315.0, 'radiation': 168.82, 'rain': 0.0, 'rainRate': 0.0, 'UV': 1.0, 'extraTemp1': 87.08, 'extraHumid1': 70.0}



« Last Edit: July 27, 2020, 11:58:40 AM by dmtalon »
Ecowitt GW1000: WH32|WS68|WH40|WH57|WH31x2

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #17 on: July 27, 2020, 12:21:10 PM »
Hi!

Quote
I do not have Nginx/Apache running a web server on my Pi, so will this still work as expected since it should still hit port 8000 where weewx is listening with the interceptor?
Yes.
You don't need any other software to do this. FOSHKplugin acts as a webserver for this specific task.

You should make sure to use v0.06Beta first. The older v0.05 does not have these nice features like fake-mode or EW-forward.
The fakeMode-feature is only possible as FWD_TYPE EW - RAWEW will really forward the incoming RAW-string. So just change the FDW_TYPE in all your forwards from RAWEW to EW. (Sorry, I should note this in documentation too.)

Regards, Oliver

Offline dmtalon

  • Member
  • *
  • Posts: 23
Re: FOSHKplugin - brief introduction
« Reply #18 on: July 27, 2020, 12:36:32 PM »
Hi!

Quote
I do not have Nginx/Apache running a web server on my Pi, so will this still work as expected since it should still hit port 8000 where weewx is listening with the interceptor?
Yes.
You don't need any other software to do this. FOSHKplugin acts as a webserver for this specific task.

You should make sure to use v0.06Beta first. The older v0.05 does not have these nice features like fake-mode or EW-forward.
The fakeMode-feature is only possible as FWD_TYPE EW - RAWEW will really forward the incoming RAW-string. So just change the FDW_TYPE in all your forwards from RAWEW to EW. (Sorry, I should note this in documentation too.)

Regards, Oliver

Thanks for the quick reply,

I just installed this and did select the Beta.  I also decided to try turning off WU in my GW1000 and enable it in FOSHKplugin and it is working showing my WH31 as my outdoor data.  So I believe FOSHKplugin is at least working as intended.

My tablet (and tried my phone) are not picking up data for the Personal Weather Tablet.  I tried adding the IP as a forwarder too w/o luck.
weewx is still receiving the WH31 as indoor.  I wonder if there's a setting I need to make, or possibly changed when initially installing the interceptor or gw1000 API that is causing this problem.

https://www.wunderground.com/dashboard/pws/KINWESTH8

Ecowitt GW1000: WH32|WS68|WH40|WH57|WH31x2

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #19 on: July 27, 2020, 01:50:37 PM »
Hi!

Quote
weewx is still receiving the WH31 as indoor.
Did you change the forward-type for this forward also to FWD_TYPE = EW?
Did you restart both FOSHKplugin and weewx?

Regards, Oliver

Offline dmtalon

  • Member
  • *
  • Posts: 23
Re: FOSHKplugin - brief introduction
« Reply #20 on: July 27, 2020, 02:42:12 PM »
Hi!

Quote
weewx is still receiving the WH31 as indoor.
Did you change the forward-type for this forward also to FWD_TYPE = EW?
Did you restart both FOSHKplugin and weewx?

Regards, Oliver

I don't know what I did, I must have removed that section from config, but I added it back using EW and it is now working as expected.  Thanks again for sticking with me through this :)  Fantastic bit of software.

Ecowitt GW1000: WH32|WS68|WH40|WH57|WH31x2

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #21 on: August 02, 2020, 04:24:32 AM »
Hi!

After a few months of developing & testing I have finally released the v0.06 of FOSHKplugin.
This version corresponds to the latest version of the beta version from July 26th. - nevertheless I recommend installing this update:

Code: [Select]
open ssh-connection/console
cd /opt/FOSHKplugin # change into the FOSHKplugin-directory
sudo ./generic-FOSHKplugin-install.sh --upgrade

The existing configuration should be retained.

Attention!
One data point was changed during the beta phase! tstormwarning to report a thunderstorm has now become tswarning for easier parsing.

You may download the new version of FOSHKplugin as a generic version here.

The complete changelog and all available documentation can be found on the FOSHKplugin wiki page.

Regards, Oliver

Offline lemuba

  • Member
  • *
  • Posts: 48
    • Fitzbek-Wetter.de
Re: FOSHKplugin - brief introduction
« Reply #22 on: September 15, 2020, 12:58:00 PM »
Hi Oli, I just moved with the Foshkplugin to my new Esprimo Nuc now and it runs great in a small size Proxmox Container, consuming in total 50MB RAM and almost 0% Processor...

Br,

Matthias

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #23 on: September 15, 2020, 06:13:22 PM »
Hi!

Quote
it runs great in a small size Proxmox Container
Nice to hear and congrats on the new hardware!

BTW:
Next version of FOSHKplugin will also support forwarding to Meteotemplate (via API) and Weathercloud ...

Oliver

Offline WA4OPQ

  • Forecaster
  • *****
  • Posts: 320
  • 4 stations: 2902 array, GW1000, 3 on Meteobridge
Re: FOSHKplugin - brief introduction
« Reply #24 on: September 16, 2020, 01:00:52 PM »
Hello Oliver,

I am building a solar powered remote weather station using the GW1000 and a Pi Zero W with a hotspot. I am experiencing the GW100 reconnecting to the WiFi every 10 minutes, apparently it is looking for a HTTP 200 OK from ecowitt.net
 
FOSHKplugin states no internet is required. Have you solved this issue?

Thanks!
Bill
« Last Edit: September 16, 2020, 02:19:42 PM by galfert »

 

anything