...
Expand | ||
---|---|---|
| ||
Version 0.07 - coming soon - public beta-version v0.07: https://foshkplugin.phantasoft.de/files/generic-FOSHKplugin-0.0.7Beta.zip 19.02.2021
Version 0.06 - 02.08.2020
Version 0.05 - 26.04.2020
Version 0.04 - 20.02.2020
Version 0.03 - 18.01.2020
Version 0.02 - 28.12.2019
Version 0.01 - 15.12.2019
|
...
- accepts http messages from a weather station (DP1500, GW1000, HP1000SE, Sainlogic 7 in 1, ELV WS980WiFi, Eurochron EFWS 2900, ???) locally in WU or Ecowitt protocol via network
- does not require cloud services or internet connection
- sends the converted metric or imperial values via UDP to any host or via broadcast in the network
- saves the converted or imperial data sorted and / or extracted as CSV
- enables forwarding to up to 20 servers that are not supported by the weather station itself (e.g. Awekas, PWSWeather, Windy or Luftdaten.info, but you could also use WU in a different interval)
- can feed Meteotemplate and Weathercloud (from v0.07)
- can serve as an Ecowitt relay (forward in Ecowitt protocol) for Personal Weather Tablet, weewx, PWS Dashboard and any other program expecting Ecowitt-data
- can forward incoming WU and Ecowitt messages via UDP - also as a broadcast - as they come in
- is able to convert between WU and Ecowitt (within limits)
- can answer queries in WU protocol
- Integrated web server provides the last data record in http, UDP, CSV, RAW and JSON format as well as a simple website
- various watchdogs and warnings can be configured (battery, connection weather station and sensors, storm, thunderstorm, ...)
- calculates some extra data (dew point, AQI, ...)
- provides the Weather4Loxone plugin with the measured values from local weather station
- No additional software is required (WS View only for teaching new sensors or for configuring the standard forwarding services)
- also works without Loxone / LoxBerry as a systemd service on Linux-systems (a Raspi should be powerful enough) for connecting other systems ( generic-FOSHKplugin.zip )
- is free of charge
...
URLpath | description |
---|---|
/CSVHDR | the field names (the header) of the last data record are output as CSV semicolon separated. If units=e is also specified, the fields for the imperial values are output. |
/CSV | all reported metric values of the last data record are output as CSV semicolon separated (units=e supplies the imperial values) |
/SSVHDR | the field names (the header) configured in CSV\CSV_FIELDS are output as CSV semicolon separated. |
/SSV | all reported metric values of the last data record are output as CSV semicolon separated with fixed asignment based on CSV\CSV_FIELDS (units=e supplies the imperial values) |
/UDP | the last UDP string is output via http; with additional ?status in URL the output will also include all status. |
/RAW | the data set supplied by the weather station is output unchanged via http; separator can be changed with separator=Z, where Z is a single character |
/STRING | output the converted data record and the current status separated with ";" via http; by adding units=e in the URL will output with the imp. values; separator can be changed with separator=Z, where Z is a single character. With additional ?status in URL the output will also include all status. example: http://ipadresse:port/STRING?units=e?separator=, will output imp. values with comma as separator |
/JSON | output via http as JSON (metric by default; by adding units=e in the URL, the output is made with the imp. values). With additional ?status in URL the output will also include all status (wswarning, sensorwarning, stormwarning, ...). |
/getvalue?key=[keyname] | output the value only for given keyname; any keyname is allowed (RAW, converted); if keyname not found "" wil be output - usefull for processing values via curl or wget |
/ | simple website with the current metric data in tabular form - status includes all status-messages; additional units=e shows all values in imperial |
/FOSHKplugin/state | status of the service; if active: "running" |
/FOSHKplugin/status | status of the service, watchdog, missing sensor, battery, for storm, thunderstorm, ... as a simple webpage |
/FOSHKplugin/debug=enable | enable debug mode for extended messages in the log file |
/FOSHKplugin/debug=disable | disable debug mode for extended messages in the log file |
/FOSHKplugin/pushover=enable | temporarily enable push notification via Pushover (configuration must exist!) - from v0.07 |
/FOSHKplugin/pushover=disable | temporarily disable push notification via Pushover - from v0.07 |
/FOSHKplugin/patchW4L | "Patch" a Weather4Loxone installation (copy local grabber scripts and activate local retrieval by W4L) |
/FOSHKplugin/recoverW4L | Restore the original Weather4Loxone configuration before "patching" |
/observations/current/json/units=m | Feedback of a WU-compatible data record with metric values (°C, kmh, mm, hPa) |
/observations/current/json/units=e | Feedback of the WU-compatible data record with imperial values (°F, mph, in, inHg) |
/w4l/current.dat | Feedback of a W4L-compatible current.dat: 1575925088 | Mon, Dec 09, 2019 21:58:08 +0100 | CET | Europe / Berlin | +0100 | Hohen Neuendorf || DE |||| 6.0 | 6.0 | 92 | Südsüdost | 154 | 2.88 | 5.41 | 6.0 | 1000.2 | 5.1 || 0.00 | 5.1 | 0 | 1.8 | 0.51 |||||||||||||||| |
...
Download: Anchor Download Download
generic-FOSHKplugin.zip (current stable version v0.06)https://foshkplugin.phantasoft.de/files/generic-FOSHKplugin-0.0.7Beta.zip (public beta- version v0.07)
Installation:
# create a local directory
# sudo mkdir /opt/FOSHKplugin
#
# change into the created directory
# cd /opt/FOSHKplugin
#
# get the current version of the plugin via wget
# wget -N http://foshkplugin.phantasoft.de/files/generic-FOSHKplugin.zip
# or use a local zip-file
#
# unpack ZIP-File
# unzip generic-FOSHKplugin.zip
#
# Allow execute right for generic-FOSHKplugin-install.sh (this script)
# chmod u+x generic-FOSHKplugin-install.sh
#
# Run generic-FOSHKplugin-install.sh (this script)
# sudo ./generic-FOSHKplugin-install.sh --install
...
FWD_TYPE | input-Format | out-Transport | out-Format |
---|---|---|---|
WU | WU, EW | GET | Weather Underground (WU-->WU or EW-->WU) |
RAW | WU, EW | GET | like input (WU-->WU or EW-->EW) |
UDPGET | WU, EW | GET | like output to Loxone with header and possibly conversion, however, URL-compatible with "&" instead of spaces |
WC | WU, EW | GET | Weathercloud (from v0.07) |
MT | WU, EW | GET | Meteotemplate (API) - from v0.07 |
AMB | WU, EW | GET | Ambient Weather - from v0.07 |
AWEKAS | WU, EW | GET | Awekas (API) - from v0.07 |
EW | WU, EW | POST | enhanced Ecowitt (WU-->EW or EW-->EW) |
RAWEW | WU, EW | POST | untouched Ecowitt (EW-->EW or WU-->EW) |
LD | WU, EW | POST | Luftdaten.info-Format (only PM2.5, PM10, Temp, Humidity, rel. Pressure, abs. Presssure) |
CSV | WU, EW | POST | like output to Loxone with possibly conversion, with semicolon as separator instead of spaces but without header |
RAWCSV | WU, EW | POST | like input (WU-->WU or EW-->EW), with semicolon as separator instead of spaces but without header |
UDP | WU, EW | UDP | like output to Loxone with header and possibly conversion via UDP (FWD_URL = destination:port) |
RAWUDP | WU, EW | UDP | like input-Format but transmission via UDP (EW→EW via UDP or WU→WU via UDP) |
...
and - if recognized as a Ambient Weather station (from v0.07):
isAmbientWeather and (batt in key or batleak in key) and value = 0
...
#WU: [Forward-11] FWD_INTERVAL = 300 FWD_URL = https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php?ID=[WU-ID]&PASSWORD=[WU-Password]&action=updateraw& FWD_TYPE = WU |
#EW: [Forward-12] FWD_INTERVAL = 300 FWD_URL = http://cdnrtpdate.ecowitt.net/data/report/ FWD_TYPE = EW |
#WOW: [Forward-13] FWD_INTERVAL = 300 FWD_URL = http://wow.metoffice.gov.uk/automaticreading?siteid=[siteid]&siteAuthenticationKey=[siteAuthenticationKey]& FWD_TYPE = WU |
#Weathercloud (from v0.07): [Forward-14] FWD_INTERVAL = 300 FWD_URL = http://api.weathercloud.net/v01/set?wid=[weathercloudid]&key=[key]& FWD_TYPE = WC |
#Meteotemplate (from v0.07): [Forward-15] FWD_INTERVAL = 60 # should be shorter than 5 minutes FWD_URL = http://192.168.15.100/template/api.php?PASS=[meteotemplatepwd]& FWD_TYPE = MT |
#Awekas (from v0.07)-API: [Forward-16] FWD_CMT = forward im Awekas-API-Format FWD_TYPE = AWEKAS FWD_URL = http://data.awekas.at/eingabe_pruefung.php? FWD_SID = Awekas-ID FWD_PWD = Awekas-password FWD_INTERVAL = 60 FWD_ENABLE = True |
...
for Gateway DP1500/GW1000:
| for water sensor WH55:
|
---|
...
Expand | ||
---|---|---|
| ||
get push notifications for critical status changes on the smartphone/tablet (from v0.07) In addition to notification via UDP, availability as status via http and logging in the log file, important status changes (e.g. firmware update, sensor, watchdog, battery, storm and thunderstorm warnings) can also be sent to any mobile device (iOS , Android) as push notification, FOSHKplugin uses the API of Pushover. Manual:
From now on there should be a push notification for all important status changes. You'll get Pushover-notifications (if configured) in case of: BATTERY_WARNING = True and the battery level of all known sensors is below a defined threshold: STORM_WARNING = True and air pressure is risen/dropped more than value given in STORM_WARNDIFF within one hour or more than value given in STORM_WARNDIFF3H within three hours: TSTORM_WARNING = True and WH57 present and at leas TSTORM_WARNCOUNT lighnings within TSTORM_WARNDIST km were detected: WSDOG_WARNING = True and there were WSDOG_INTERVAL intervals no data received from weatherstation: WSDOG_RESTART > WSDOG_INTERVAL and there's still no data from weatherstation: after a start of FOSHKplugin and afterwards every UPD_INTERVAL seconds if there's a newer firmware available for your weatherstation: |
...
Expand | ||
---|---|---|
| ||
Operation of multiple FOSHKplugin instances on one host (from v0.07) In some constellations it can make sense to operate several instances of FOSHKplugin in parallel - for example, to process data from several GW1000/DP1500/HP2551C. Installation: By default, a service with the name foshkplugin is created, which can be started and stopped and which starts again automatically in the event of an unscheduled termination. Adjustments: This adjustment is not required for pure forward operation without UDP transmission. |
...
Expand | ||
---|---|---|
| ||
Upload to Ambient Weather (from v0.07) Ambient Weather has a very modern web interface, a nice app, a connection to IFTTT, Amazon Alexa and Google Assistant and can be queried via API interface. To connect a GW1000 from Ecowitt (or Froggit DP1500) to Ambient Weather, the following steps are necessary:
From now on, FOSHKplugin also sends the incoming data from the GW1000/DP1500 to Ambient Weather. |
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Saving lightning values for the GW1000/DP1500 (WH2650/WH2600Pro) With every restart and apparently after a certain time, the GW1000/DP1500 (probably also the WH2650/WH2600Pro) loses the values for the time of the last lightning (lightning_time) and its distance (lightning).
PWS Dashboard or Personal Weather Tablet (PWT) can no longer display lightning data because they do not buffer these values. With the option Export\FIX_LIGHTNING (enabled by default) FOSHKplugin from v0.07 writes these values with every change that does not contain "" as a value into the config-file as:
and uses these saved values when empty values are received from the weather station for all forwards and export to UDP/CSV/... When the device is started up for the first time, these values are of course not known to FOSHKplugin. Therefore these values can be entered manually in the config file. |
...