Get weather data from LAN based ObserverIP PWS  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Doudy »

Hello,

With scriptVersion = '0.201911091100' no more errors

;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

:D
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
domopat24
Posts: 3
Joined: Tuesday 17 December 2019 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by domopat24 »

Hello

first thank you for this dzvents, I am a beginner domoticz and I installed the last version.
I have a little difference for the wind.
The speed are not the same in the different widgets compared to the livedata.htm page ????

Wind Speed & Gust.png
Wind Speed & Gust.png (148.38 KiB) Viewed 1344 times
scriptVersion = '0.201911091100'
Domoticz Version: 4.10717
Last edited by domopat24 on Tuesday 17 December 2019 17:01, edited 5 times in total.
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

Wind is changing rapidly, it depends on the exact moment of measurment if livedata and the probe match ...
It almost matches here, the speed and direction changed in livedata while taking snapshots.
Screenshot 2019-12-17 at 11.05.11.png
Screenshot 2019-12-17 at 11.05.11.png (23.26 KiB) Viewed 1355 times
Screenshot 2019-12-17 at 11.05.29.png
Screenshot 2019-12-17 at 11.05.29.png (56.78 KiB) Viewed 1355 times
livedata changes almost every second while the dzevent probe runs every 5 min ...
running domoticz 4.11570 here
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
domopat24
Posts: 3
Joined: Tuesday 17 December 2019 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by domopat24 »

I have changed the link of my screenshots
In the dzvent script the update is every 5 minutes.
I have take the screenshots under 5 minutes and in 2 widgets custom sensor the data are good.
The all widgets has the same time.
A new sreenshot with widgets and devices, all data are good except Speed and Gust in Wind widget

Device & Widgets.png
Device & Widgets.png (121.79 KiB) Viewed 1344 times
Last edited by domopat24 on Tuesday 17 December 2019 16:59, edited 1 time in total.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by waaren »

domopat24 wrote: Tuesday 17 December 2019 15:39 A new sreenshot with widgets and devices, all data are good except Speed and Gust in Wind widget
Can you please try and change the x-as of the windspeed and gust devices to m/sec as descibed in the comments of the script ?
And please post images as attached ones and not as links. The images in these links will be gone at a certain time in future and then your postings will no longer make sense.
Thx
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
domopat24
Posts: 3
Joined: Tuesday 17 December 2019 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by domopat24 »

OK for the link
change the x-as of the windspeed and gust devices to m/sec
but the wind data in the weh page livedata.htm of my weatherstation are in Km/h, it is necessary to put m/s in weatherstation?

Units Measure.png
Units Measure.png (5.23 KiB) Viewed 1344 times
Toulon7559
Posts: 849
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Toulon7559 »

Perhaps the idea behind this 'sniffer-function' is another solution for this type of case:
https://github.com/matthewwall/weewx-interceptor
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Lebo2d9 »

Hi Warren,

I used the interceptWH2600 code of allan-gam but the latest,time I had a lot of problems with it. I found this tread and i have implemented it.
For now it is working without any problems

Thanks for this solution.

Koen Deschepper
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

Hi Koen

nice to hear it works for you to.
Please tell us your exact hardware and current firmware ?
I am running a conrad WH2600 running ambientweather 4.5.7 ;-)

Eddie
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Lebo2d9 »

Hi Eddie,

I have also the Conrad WH2600, I did a firmware to the latest abientweather (don't remember the version), but that one wasn't working.
The reciever was always loosing the connection with the outdoorstation.

Now i'm running ambient weather observerIP 1.0 version 1.0.9

For the moment I'me trying to get the battery status also

Koen
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

Hi Koen,
I am not familiar with that 1.0.9 version.
I am running Ambientweather 4.5.7 on the observerip for about a year now and it is working fine
The battery status is in de live.htm page and should be easy to get, but in what domoticz sensor are you going to set it ?

Eddie
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Quark0ne
Posts: 1
Joined: Monday 01 June 2020 7:55
Target OS: Windows
Domoticz version: 3.0.8
Location: Jersey
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Quark0ne »

Good Morning,

I'm getting the following code issue. Could I have some help?

lua: ambiantweather.lua:256: ambiguous syntax (function call x new statement) near '('
>Exit code: 1

if wind ~= nil then wind.updateWind
Line 256 -> (
fields.windDirection,
windDirectionName(fields.windDirection),
fields.windSpeed,
fields.windGust,
fields.outdoorTemperature,
windChill(fields.windSpeed, fields.outdoorTemperature)
) end


Picture Link to my /livedata.htm
https://ibb.co/MP08RQj

or you can get to the live date from here: http://q0ne.dyndns.org/livedata.htm

The Weather staion is an Aercus Weather Sleuth : Wh2600, but now with AmbientWeather 4.6.1 firmware as its stable, version 2.2 on Aercus was dropping out all the time.


Thank you
Paul
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

Hi, I guess @waaren should be able to help here ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by waaren »

eddieb wrote: Wednesday 03 June 2020 22:39 Hi, I guess @waaren should be able to help here ...
Maybe but there is no real log, no version information and the error code is not a dzVents one. So not much to work on.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Lebo2d9 »

Hi, for the moment my weatherstation is no longer responding to the http requests. But is is still sending its data to wunderground. As i'm not at home i can't reboot my weatherstation. So I'm now reading again the values via the wunderground api...
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

Sometimes I have the problem that the ObserverIP station becomes unresponsive.
To prevent that I have a timed switch between te power supply and power cycle the ObserverIP every 24h ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Doudy »

eddieb wrote: Monday 13 July 2020 12:30 Sometimes I have the problem that the ObserverIP station becomes unresponsive.
To prevent that I have a timed switch between te power supply and power cycle the ObserverIP every 24h ...

This interests me greatly because I have the same concerns.
Could you tell me what you did :?:
Thank you
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by eddieb »

Doudy wrote: Saturday 17 October 2020 16:38 This interests me greatly because I have the same concerns.
Could you tell me what you did :?:
Thank you
;)
I used a sonoff switch in the powerline of the ObserverIP and switch that off for 3 minutes at 04:00 every day ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Get weather data from LAN based ObserverIP PWS

Post by Doudy »

Thanks
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest