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

0 Members and 1 Guest are viewing this topic.

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #50 on: December 11, 2020, 03:50:01 PM »
Thanks!
May I ask how you feed Hubitat with the data? Over UDP?

If you are interested in the current beta version v0.07, please let me know.

Oliver

Offline wardie

  • Senior Contributor
  • ****
  • Posts: 212
Re: FOSHKplugin - brief introduction
« Reply #51 on: December 11, 2020, 05:58:12 PM »
Sure. Dead easy with this community driver. Very well written, it dynamically creates child devices for all your sensors. You just feed it a raw ecowitt stream. I could do it direct from the GW1000 but I also want the data to go to PWS so it does put Pi4 in the dependency chain but so be it.

https://community.hubitat.com/t/release-ecowitt-gw1000-wi-fi-gateway/38983

Context: I’m busy converting my SmartThings home automation over to a Hubitat Elevation C-7 and the latter is way better for enthusiasts.

And yes Oliver I’d defo be up for trying the beta, thanks.

Example no-code easy dashboards I just started to play with. Controllable too. Local execution.
 [ You are not allowed to view attachments ]
« Last Edit: December 11, 2020, 06:16:00 PM by wardie »
Froggit HP1000SE Pro-C console (HP2551-C)
Froggit HP1000SE Pro ultrasonic multi sensor with Ecowitt EC0002 heater (WS80)
Ecowitt Anemometer 5-in-1 array (WS68)
Froggit DP80 rain gauge (WH40) with spikes
Froggit indoor temp/humidity/pressure (WH32B)
Froggit DP50 Internal temp/humidity x2 (WH31)
Ecowitt Outdoor temp/humidity & RS-00001 shield (WH32)
Froggit DP200 PM2.5 outdoor (WH41)
Ecowitt indoor CO2 PM2.5 PM10 (WH45)
Froggit DP100 soil moisture (WH51)
Froggit DP60 Lightning detector (WH57)
Froggit DP1500 server dongle (GW1000A) x2
Raspberry Pi 4 / WeeWx-GW1000 API interface
WU: IKNEBW2

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #52 on: December 19, 2020, 03:23:50 AM »
Hi!

FOSHKplugin public beta testing for v0.07 has started.
There are several bug fixes and tons of new features in this version.
If interested:
https://foshkplugin.phantasoft.de/generic/

Regards, Oliver

Offline KC5JIM

  • Senior Contributor
  • ****
  • Posts: 231
    • KC5JIM Weather
Re: FOSHKplugin - brief introduction
« Reply #53 on: December 19, 2020, 01:51:21 PM »
I've been running the v0.07 beta on a Pi 4 4Gb for around a month now and it's been working great.

I'm feeding two instances of Personal Weather Tablet, uploading to PWSWeather, uploading to WeatherCloud, feeding the Ecowitt Meteotemplate Plugin to power my Meteotemplate site, uploading to Windy.

I'm using the watchdog with Pushover to monitor that data is being received from the GW1000, getting sensor warnings if any data is missed, monitor sensor battery life, get storm and thunderstorm warnings.

I have not had any issues so far that were not caused by my failure to RTFM.
Ecowitt Wittboy| FOSHKplugin on Pi 4


Offline wardie

  • Senior Contributor
  • ****
  • Posts: 212
Re: FOSHKplugin - brief introduction
« Reply #54 on: December 20, 2020, 03:36:17 AM »
I've been running the v0.07 beta on a Pi 4 4Gb for around a month now and it's been working great.

I'm feeding two instances of Personal Weather Tablet, uploading to PWSWeather, uploading to WeatherCloud, feeding the Ecowitt Meteotemplate Plugin to power my Meteotemplate site, uploading to Windy.

I'm using the watchdog with Pushover to monitor that data is being received from the GW1000, getting sensor warnings if any data is missed, monitor sensor battery life, get storm and thunderstorm warnings.

I have not had any issues so far that were not caused by my failure to RTFM.
Likewise I’ve been running the beta fr couple of weeks and it’s rock solid thanks Oliver @olicat
I’ve been using Monit to watchdog my processes, and after reading this just went to check it to find Monit is not running. Oh, the irony.
Froggit HP1000SE Pro-C console (HP2551-C)
Froggit HP1000SE Pro ultrasonic multi sensor with Ecowitt EC0002 heater (WS80)
Ecowitt Anemometer 5-in-1 array (WS68)
Froggit DP80 rain gauge (WH40) with spikes
Froggit indoor temp/humidity/pressure (WH32B)
Froggit DP50 Internal temp/humidity x2 (WH31)
Ecowitt Outdoor temp/humidity & RS-00001 shield (WH32)
Froggit DP200 PM2.5 outdoor (WH41)
Ecowitt indoor CO2 PM2.5 PM10 (WH45)
Froggit DP100 soil moisture (WH51)
Froggit DP60 Lightning detector (WH57)
Froggit DP1500 server dongle (GW1000A) x2
Raspberry Pi 4 / WeeWx-GW1000 API interface
WU: IKNEBW2

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #55 on: January 22, 2021, 07:23:41 AM »
Hi!

A new Beta-version v0.07Beta of FOSHKplugin is out now.
You may install this version over your current installation.

New in this Beta:
  • Forward input data in Awekas format via GET as type AWEKAS possible
  • with Logging\IGNORE_LOG you can exclude lines from the logging in the standard log (comma-separated list of search words) - for example crondaemon
  • With FWD_EXEC, a script can be specified for each forward that starts with the output string as a parameter and the last output line is used as the new output string for sending
  • Value request: an http request http://ipaddress:portnumber/getvalue?key=[key] outputs the value for the key [key], whereby the key may be the RAW key as well as the converted key name
      Example: curl http://192.168.15.236:8080/getvalue?key=windspeedmph outputs the value "1.34" of the wind speed mph key
      in connection with FWD_EXEC, data from other instances can be queried and integrated
  • In addition to the http-GET query /CSV and /CSVHDR with dynamic fields, /SSV and /SSVHDR with static fields are now also supported, based on the field description in CSV\CSV_FIELDS
      thus the order of the fields is fixed; empty fields (with no content e.g. in the event of a sensor failure) are not skipped but are output as ""
Complete changelog as usual here.

Unfortunately, I let myself be carried away by adding a few little things (see above).
So much for feature-freeze ...
;-)
But I think these new features could be helpful to some.
So please test this (again).

Regards, Oliver

Offline navzptc

  • Member
  • *
  • Posts: 37
    • Lavant Down
Re: FOSHKplugin - brief introduction
« Reply #56 on: January 22, 2021, 09:39:49 AM »
Hi Oliver,

Thanks for the information on the update to v0.07 beta.

Ran the update, and as always working like a champ [tup]

Thank you for your hard work on this very useful program.

Andy

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 853
Re: FOSHKplugin - brief introduction
« Reply #57 on: January 24, 2021, 06:13:07 AM »
I have just ordered a GW1003 setup and want to use it with Weather Display, but I'd also like to use it with Personal Weather Tablet so have found this plugin. So my question is can this be done with the plugin and has anyone got Weather Display running with the plugin and if so what settings need to be used n WD?

Stuart
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #58 on: January 24, 2021, 06:25:41 AM »
Hi!

If Weather Display supports the API of the GW1000 there's no need for FOSHKplugin at all. Just use the custom server to feed PWT and let use the API through WD.
But if WD also needs feeded via custom server (or in general you need more than one target for custom server) FOSHKplugin is able to feed as much custom servers you need.
It is just another forward in EW- or RAWEW-format.

Oliver

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 853
Re: FOSHKplugin - brief introduction
« Reply #59 on: January 24, 2021, 06:39:44 AM »
Not sure yet how WD accesses the GW1000, it looks like it just needs an IP address. Can't test anything yet as my WD is currently running my old station and I don't yet have my GW1000.

Stuart
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: FOSHKplugin - brief introduction
« Reply #60 on: January 24, 2021, 08:47:23 AM »
Yes WD supports the GW1000 API. No need for "Customized" server upload.
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3298
Re: FOSHKplugin - brief introduction
« Reply #61 on: January 24, 2021, 02:01:59 PM »
Not sure yet how WD accesses the GW1000, it looks like it just needs an IP address. Can't test anything yet as my WD is currently running my old station and I don't yet have my GW1000.

Stuart
In the WD control panel you choose the respective station type and enter the IP address of your GW1000.
That's it. Very simple.
 [ You are not allowed to view attachments ]
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #62 on: February 05, 2021, 04:35:05 AM »
Hi!

A new Beta-version v0.07Beta of FOSHKplugin is out now.
You may install this version over your current installation.

New in this Beta:
  • Leakage warning via UDP/http/pushover if WH55/DP70 is present and Warning\LEAKAGE_WARNING = True
  • Export\FIX_LIGHTNING = True (default): use the last known values for lightning and lightning_time if GW1000 or HP2551C sends empty values
  • Overview page http://ipaddress:portnumber/ shows in addition with "?units=e" all values in US metric system (inch, mph); can be combined with "/status"
  • create a backup of foshkplugin.conf (foshkplugin.conf.foshkbackup) at every successful start
Complete changelog as usual here.

Have a nice weekend!

Regards, Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #63 on: February 09, 2021, 07:52:12 AM »
Hi!

Something you could play with ...

modify outgoing data line (from v0.07)

Combined with the getvalue function, two (or more) different weather stations could be aggregated. Or integrate the values of your own sensors into the Ecowitt ecosystem.
Can you think of any interesting application scenarios?
I think that opens up new worlds ...

Oliver

Offline wardie

  • Senior Contributor
  • ****
  • Posts: 212
Re: FOSHKplugin - brief introduction
« Reply #64 on: February 09, 2021, 05:15:27 PM »
Hi!

Something you could play with ...

modify outgoing data line (from v0.07)

Combined with the getvalue function, two (or more) different weather stations could be aggregated. Or integrate the values of your own sensors into the Ecowitt ecosystem.
Can you think of any interesting application scenarios?
I think that opens up new worlds ...

Oliver
Great idea! Could be used to implement logic and mappings (e.g. replace outdoor temp/humid with another sensor), or use backup sensors if one is failing to report / bad data quality errors etc.

One further idea - don’t know if this is possible but an idea I had was for the plugin to provide an option to get data from the GW1000 via API rather than waiting for the custom server push? That way you could use it to speed up reading data to the fastest sensor speeds for example, and still send it out via your various methods. I appreciate that’s a change to the event architecture but could be interesting.
Froggit HP1000SE Pro-C console (HP2551-C)
Froggit HP1000SE Pro ultrasonic multi sensor with Ecowitt EC0002 heater (WS80)
Ecowitt Anemometer 5-in-1 array (WS68)
Froggit DP80 rain gauge (WH40) with spikes
Froggit indoor temp/humidity/pressure (WH32B)
Froggit DP50 Internal temp/humidity x2 (WH31)
Ecowitt Outdoor temp/humidity & RS-00001 shield (WH32)
Froggit DP200 PM2.5 outdoor (WH41)
Ecowitt indoor CO2 PM2.5 PM10 (WH45)
Froggit DP100 soil moisture (WH51)
Froggit DP60 Lightning detector (WH57)
Froggit DP1500 server dongle (GW1000A) x2
Raspberry Pi 4 / WeeWx-GW1000 API interface
WU: IKNEBW2

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #65 on: February 19, 2021, 07:16:16 AM »
Hi!

A new stable version v0.07 of FOSHKplugin is out now.

This version largely (but not completely) corresponds to the last public beta, so I recommend doing the update anyway in order to be really up to date.
As usual, the changelog can be found on this page.
I hope you enjoy the new possibilities.

Regards, Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #66 on: February 28, 2021, 05:41:04 AM »
Hi!

Is anyone interested in (and has a use case for) exporting the current weather data to realtime.txt (Cumulus) or clientraw.txt (WD) through FOSHKplugin?
With each incoming data record (Ecowitt, Ambient, WU) a corresponding file is generated and sent via ftp(s)/http(s) or stored in the filesystem.
The next version should get this functionality and I'm still looking for test options ...

Export of a Cumulus export file realtime.txt or clientraw.txt (Weather Display) - from v0.08

Regards, Oliver

Offline KC5JIM

  • Senior Contributor
  • ****
  • Posts: 231
    • KC5JIM Weather
Re: FOSHKplugin - brief introduction
« Reply #67 on: February 28, 2021, 05:52:09 AM »
There is a Wordpress plugin (https://weather.station.software/) for displaying personal weather station information that uses the realtime.txt or clientraw.txt file as it's input - this would open that up as an option for users of FOSHKplugin.
Ecowitt Wittboy| FOSHKplugin on Pi 4


Offline gszlag

  • Forecaster
  • *****
  • Posts: 431
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: FOSHKplugin - brief introduction
« Reply #68 on: February 28, 2021, 09:05:07 AM »
Hi!

Is anyone interested in (and has a use case for) exporting the current weather data to realtime.txt (Cumulus) or clientraw.txt (WD) through FOSHKplugin?
With each incoming data record (Ecowitt, Ambient, WU) a corresponding file is generated and sent via ftp(s)/http(s) or stored in the filesystem.
The next version should get this functionality and I'm still looking for test options ...

Export of a Cumulus export file realtime.txt or clientraw.txt (Weather Display) - from v0.08

Regards, Oliver

Most weather34 type templates can utilize those txt formats and if you can ftp directlly in real time up to a web host, then you would have a live data weather website. That would be great!
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline lemuba

  • Member
  • *
  • Posts: 48
    • Fitzbek-Wetter.de
Re: FOSHKplugin - brief introduction
« Reply #69 on: March 18, 2021, 02:54:14 PM »
@olicat

Hi Oliver, I´m still on 0.06...
What is the best way to update to the newest version?

By the way, I´m wondering why the FOSHKplugin thread is not sticky on top...
It´s a great addition, for many purposes like a swiss army knife!

Best regards, Matthias

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #70 on: March 18, 2021, 07:04:56 PM »
Hi Matthias,

Quote
What is the best way to update to the newest version?
please have a look to the recipes section under Updating a current FOSHKplugin generic installation.

Quote
It´s a great addition, for many purposes like a swiss army knife!
Thanks. If you work with the custom server function, it can be quite helpful.
But not everyone needs it. However, there are many users who use software with API support for the GW1000 and therefore have no use for the custom server or FOSHKplugin at all.

Quote
I´m wondering why the FOSHKplugin thread is not sticky on top...
So far I haven't seen any need for it. As I said, I think it's niche software for special use cases and not necessarily of general interest.
But for me it can be sticky.

BTW:
I'm already working on the next version, which will bring some (hopefully) useful enhancements with it. Take a look at the Changelog.

Regards, Oliver

Offline lemuba

  • Member
  • *
  • Posts: 48
    • Fitzbek-Wetter.de
Re: FOSHKplugin - brief introduction
« Reply #71 on: March 19, 2021, 02:38:37 AM »
Hi Oliver,

many thanks - I will look into it over the weekend.

Got now the first two DP30 Multi-Channel Temp cable sensors delivered.
I use your plugin to feed the DP1500 data into my NodeRed/Iobroker Home Automation.
Everything works flawlessly!
Now in April I get a 28KWp PV installed.
One DP30 sensor I will use then as Pool Thermometer.
Iobroker then to run the 200W Pool filter pump just during surplus energy generation over the day, not buying energy from the general provider.
The 2nd DP30 sensor could be used in case I also buy a solar pool heater to measure/compare the temperatures.

Br,

Matthias

Nice to see that your thread is sticked on top now!


Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #72 on: March 20, 2021, 03:06:13 AM »
Hi!

Quote
One DP30 sensor I will use then as Pool Thermometer.
[...]
The 2nd DP30 sensor could be used in case I also buy a solar pool heater to measure/compare the temperatures.
That will probably not affect you in this application scenario. Note, however, that the DP30 does not display or output temperatures above 60 ° C. There is a manufacturer cutoff.

Regards, Oliver

Offline lemuba

  • Member
  • *
  • Posts: 48
    • Fitzbek-Wetter.de
Re: FOSHKplugin - brief introduction
« Reply #73 on: March 20, 2021, 01:00:01 PM »
I´m now at 0.7...easy [tup]
sudo ./generic-FOSHKplugin-install.sh --update

Hope that the next lightning event will be stored/buffered by the plugin...

Offline olicat

  • Forecaster
  • *****
  • Posts: 1515
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #74 on: March 20, 2021, 01:11:14 PM »
Hi!

Quote
Hope that the next lightning event will be stored/buffered by the plugin...
It will.

Of course you could fill in the last lightning if known to you.
Just insert the last distance and time in the config file under [Status]
Code: [Select]
[Status]
last_lightning = 20
last_lightning_time = 1615479869
last_lightning is the distance in km and last_lightning_time is the corresponding time stamp as unixdate.
You could have a look into your logfiles of last occurance and use these values.
All services supplied by FOSHKplugin then receive this lightning data.
Until the next lightning - that one (and all following) will be saved there automatically through FOSHKplugin.

Regards, Oliver