Python Plugin: PWS (Personal Weather Station)

Python and python framework

Moderator: leecollings

mister006
Posts: 2
Joined: Monday 09 December 2019 15:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by mister006 »

@andreo: works perfect now! Thanks!
Jojik1
Posts: 16
Joined: Monday 06 January 2020 23:57
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Jojik1 »

Good day,
I have this station:
https://www.amazon.co.uk/Waldbeck-Profe ... 194&sr=8-3
unfortunately I fail to operate domoticz
ecowitt.net - OK
Wunderground - OK
Customized - NO
log domoticz:
2020-01-07 00:13:39.199 Error: (misti pocasi) 'onMessage' failed 'TypeError':'float() argument must be a string or a number, not 'NoneType''.
2020-01-07 00:13:39.199 Error: (misti pocasi) ----> Line 383 in '/home/pi/domoticz/plugins/Domoticz-PWS-Plugin/plugin.py'
2020-01-07 00:13:39.199 Error: (misti pocasi) ----> Line 189 in '/home/pi/domoticz/plugins/Domoticz-PWS-Plugin/plugin.py'
Image

edit
once again:
this was functional immediately: https://github.com/vaneeten/domoticz-wudirect
but thank you very much for your work.
Xorfor

Re: Python Plugin: PWS (Personal Weather Station)

Post by Xorfor »

@Jojik1
I think it is fixed now in the latest version. Please let me know if this version is working with your PWS.
Jojik1
Posts: 16
Joined: Monday 06 January 2020 23:57
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Jojik1 »

yes it works.)
Magic
Thank you
:D
moi427
Posts: 17
Joined: Tuesday 06 March 2018 11:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by moi427 »

Hi all,

I've a question about installing this nice PWS plugin for my Alecto WS-5500.
This WS itself is now attached to an Rpi2 and I can read it's measurements via the network on a PC via CumulusMX that runs on the Rpi2.
Likewise Domoticz this CumulusMX on the PC is run via 192.168.2.52:8998.
So I already can look at the WS via Cumulus (nice gauges b.t.w.), but definitely would like to add it's values to domoticz that runs on an Rpi3.

Now my problem is how to get the data from the Rpi2 via the PWS plugin into Domoticz?

Domoticz runs on an Rpi3 and the PWS plugin is also installed there and shows the devices: no problem.
Only the part to get the plugin/Domoticz read the values from this Alecto on the Rpi2 is unknown for me, I guess I miss something?
The part about WS View or WS Tool looks like being meant for a mobile device, although I can download the APK file.
But I can't find anything about installing this WS View on an Rpi nor other ways to do this.
B.t.w. I operate the Rpi's always via Putty (console) and WinSCP, so there's no screen or keyboard attached to them.

Hopefully someone can help me out, thanks in advance!!
Nibe F1255-6 PC heatpump, SolarEdge SE7K inverter + 16 x Solarwatt panels (in-roof 275Wp) + 12 x AEG panels 325Wp+ optimizers, EtaSunPro vacuum collector (60 tubes)
Boattailman
Posts: 14
Joined: Thursday 05 March 2020 23:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Boattailman »

WS view or tool must be installed on your phone or ipad/tablet. Just download it via playstore or the app store. Then follow the instructions: https://github.com/Xorfor/Domoticz-PWS- ... /README.md. Just did it myself an hour ago, works perfect.
moi427
Posts: 17
Joined: Tuesday 06 March 2018 11:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by moi427 »

Thx Boattailman. I read the Readme.md of course, but that means there's no possiblility to use this plugin it without a phone or tablet? Or is this only needed to install the link to the router, since I'm not using a phone or tablet.
Nibe F1255-6 PC heatpump, SolarEdge SE7K inverter + 16 x Solarwatt panels (in-roof 275Wp) + 12 x AEG panels 325Wp+ optimizers, EtaSunPro vacuum collector (60 tubes)
Xorfor

Re: Python Plugin: PWS (Personal Weather Station)

Post by Xorfor »

You need this tool only to setup your PWS. By default your PWS is NOT sending data to other sources. If you want to send data from your PWS to Domoticz (or WeatherUnderground, etc) then you have to use WS View. The WS View software is also used for the Easywether firmware updates of your PWS.
Perhaps somebody else with a table or mobile phone can do this for you?
moi427
Posts: 17
Joined: Tuesday 06 March 2018 11:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by moi427 »

Ok, then it must succeed. If not, I'll be back :lol:
Nibe F1255-6 PC heatpump, SolarEdge SE7K inverter + 16 x Solarwatt panels (in-roof 275Wp) + 12 x AEG panels 325Wp+ optimizers, EtaSunPro vacuum collector (60 tubes)
moi427
Posts: 17
Joined: Tuesday 06 March 2018 11:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by moi427 »

Well I'm sorry but I can't get it working :roll:
As told my Wheatherstation Alecto WS-5500 is connected to an Rpi2. But WS-View provides me with no display that's like mine, so I can't follow the instructions about pushing buttons etc. The WiFi icon on the Wheatherstation display works, as it shows on the picture and the wheatherstation itself shows data via the Rpi2 and Cumulus. But I would like to have it in Domoticz too, then everything is there bundled.
A picture of my station is the next, whereas I tried to connect with all 6 possiblities in WS View. I must be stupid, since in the PWS doc it's written as being tested with the same Alecto WS-5500 :(
Attachments
20200406_123242_1600x1200.jpg
20200406_123242_1600x1200.jpg (302.76 KiB) Viewed 2892 times
Nibe F1255-6 PC heatpump, SolarEdge SE7K inverter + 16 x Solarwatt panels (in-roof 275Wp) + 12 x AEG panels 325Wp+ optimizers, EtaSunPro vacuum collector (60 tubes)
mckameel
Posts: 1
Joined: Tuesday 07 April 2020 13:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by mckameel »

Thank you very much! Really nice plug-in and it works great :D . I'm using a RPI with the Ventus w830 which is technically the same as the Garni 940 and the Alecto WS 5500.
mcgiak
Posts: 18
Joined: Sunday 24 December 2017 10:15
Target OS: -
Domoticz version: 2023.2
Location: Veneto, Italy
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by mcgiak »

Xorfor wrote: Sunday 25 August 2019 15:40 I have written a Python plugin, to capture data directly from my weather station. So no need to upload the data first to WeatherUnderground, Ecowitt, WeatherCloud, WOW, etc.
The README describes the use of WS View to connect your weather station to your router and upload data to Domoticz.

https://github.com/Xorfor/Domoticz-PWS-Plugin

In general, if the station is supplied with 'EasyWeather' software, it is likely that the station will work with this Domoticz plugin!

Please tell me your experience, which weather station you are using, which tool (WS Tool, WS View) you used, etc.

Hello
Is it possible to import data from an active station on WeatherCloud? (not my personal)
Xorfor

Re: Python Plugin: PWS (Personal Weather Station)

Post by Xorfor »

mcgiak wrote: Friday 01 May 2020 17:06 Hello
Is it possible to import data from an active station on WeatherCloud? (not my personal)
The only thing I can think of, is to export the WeatherCloud data in CSV, write a script (eg. in Python) to directly insert the data in the Domoticz database. This is tricky!!!
I would not recommend this.
Heelderpeel
Posts: 15
Joined: Sunday 26 April 2015 21:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Nederland
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Heelderpeel »

Today I received my weather station (ventus W830) and installed it immediately. I already had the script ready, installation is super easy.
I am very happy with the script. :D :D :D
I do have 2 questions, I was asked if I wanted to do a firmware update to 1.5 is that wise or not? does anyone have any experience with this? :?
2nd question is can next to domoticz also upload the data to 1 of the weather sites offered?
Xorfor

Re: Python Plugin: PWS (Personal Weather Station)

Post by Xorfor »

You can update the firmware to 1.5. I have tested that version, but not updated that info on Github.
Unfortunately, as far as I know, the EasyWeather software allows you to choose only one Customized destination. But in the other pages you can also choose to send data to ecowitt.net, Wunderground, Weathercloud, etc.
Aroby
Posts: 8
Joined: Wednesday 21 September 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Aroby »

Hi,

Yesterday I read about this very nice plugin and ordered the Garni 2055 Arcus. That arrived today.
Unfortunately it doesn't retrieve any values from the PWS.

Setup:
Domoticz Build 2020.2 Build 12392 on a PI (192.168.1.40)
Domoticz PWS Plugin - installed today
Garni 2055 Arcus

I've connected to WiFi of the Garni 2055 Arcus with my Android and configured to connect to my local WiFi. That workes fine. The PWS gets an IP address within my network. It synchronizes time with internet. Using a port scanner it was able to see the PWS is using port 5000.
The PWS configuration for the remote server is done on the same page (see attachment).
I configured at URL:
URL: http://192.168.1.40
Station ID: a
Station Key: b

Next thing was to install the plugin on the PI. That worked well without any errors.
Restarted Domoticz => Accept new hardware => all the PWS devices appeared. => but all the values are zero.

I tried to configure the remote server (Domoticz) on the PWS in the sections "Wunderground" and URL.
I tried http://192.168.1.40 (and accidentally as seen in the attachment http:\\192.168.1.40)

Within the log I do see a new error:
2020-09-25 13:18:29.937 Error: Error parsing http request.

What can be wrong here?
Attachments
PWS webpage.png
PWS webpage.png (203.84 KiB) Viewed 2620 times
Xorfor

Re: Python Plugin: PWS (Personal Weather Station)

Post by Xorfor »

You are not using the WS View app! Which tool are you using? I got some information from other users who used a Garni tool/app. Please read the README.md. I have no experience with that Garni app, but my understanding is that you have to enter only the ip address from your Domoticz server, so no 'http://'.
Aroby
Posts: 8
Joined: Wednesday 21 September 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Aroby »

Hi Xorfor, I'm using the PWS webpage. WS View doesn't seem to connect to my PWS.
I just tried to enter the IP address of Domoticz without http..

Firmware Garni 2055: 1.07

This is the debug log:

2020-09-26 08:35:32.826 (Arcus) Processing 'onHeartbeatCallback' message
2020-09-26 08:35:32.826 (Arcus) Calling message handler 'onHeartbeat'.
2020-09-26 08:35:32.826 (Arcus) onHeartbeat
2020-09-26 08:35:35.416 (Arcus) Pushing 'onStopCallback' on to queue
2020-09-26 08:35:35.420 (Arcus) Processing 'onStopCallback' message
2020-09-26 08:35:35.421 (Arcus) Message handler 'onStop' not callable, ignored.
2020-09-26 08:35:35.839 (Arcus) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-09-26 08:35:35.840 (Arcus) onStart
2020-09-26 08:35:35.840 (Arcus) Pushing 'ProtocolDirective' on to queue
2020-09-26 08:35:35.840 (Arcus) Pushing 'ListenDirective' on to queue
2020-09-26 08:35:35.840 (Arcus) Listening to port: 5000
2020-09-26 08:35:35.840 (Arcus) Processing 'ProtocolDirective' message
2020-09-26 08:35:35.840 (Arcus) Protocol set to: 'HTTP'.
2020-09-26 08:35:35.840 (Arcus) Processing 'ListenDirective' message
2020-09-26 08:35:35.840 (Arcus) Transport set to: 'TCP/IP', :5000.
2020-09-26 08:35:35.840 (Arcus) Listen directive received, action initiated successfully.
2020-09-26 08:35:35.415 Status: (Arcus) Stop directive received.
2020-09-26 08:35:35.415 Status: (Arcus) Exiting work loop.
2020-09-26 08:35:35.616 Status: (Arcus) Stopping threads.
2020-09-26 08:35:35.616 Status: (Arcus) Stopped.
2020-09-26 08:35:35.616 Status: (Arcus) Started.
2020-09-26 08:35:35.825 Status: (Arcus) Entering work loop.
2020-09-26 08:35:35.826 Status: (Arcus) Initialized version 1.0.9, author 'Xorfor'
2020-09-26 08:35:45.873 (Arcus) Pushing 'onHeartbeatCallback' on to queue
2020-09-26 08:35:45.875 (Arcus) Processing 'onHeartbeatCallback' message
2020-09-26 08:35:45.875 (Arcus) Calling message handler 'onHeartbeat'.
2020-09-26 08:35:45.875 (Arcus) onHeartbeat

Still no values.
Aroby
Posts: 8
Joined: Wednesday 21 September 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PWS (Personal Weather Station)

Post by Aroby »

I read the issue with user TheNetopyr. https://github.com/Xorfor/Domoticz-PWS-Plugin/issues/7
He writes about that "Garni 2055 does not allow to adjust the port to send the data, but by some iptables effort I redirected it internally".
Not quite sure how he did this.
I noticed via my NG firewall that the data from the PWS is indeed send to Domoticz port 80. But that port is in use by PI/Domoticz.

2020-09-26 10:38:30.995 (Arcus) onConnect Server=:80 -1-bind: Address already in use
2020-09-26 10:38:30.995 (Arcus) Name: 'Server', Transport: 'TCP/IP', Protocol: 'HTTP', Address: '', Port: '80', Baud: -1, Bytes: 0, Connected: False, Last Seen: 1970-01-01 01:00:00, Parent: 'None'

Not sure how to proceed.
Xorfor

Re: Python Plugin: PWS (Personal Weather Station)

Post by Xorfor »

Can you take a look at https://github.com/Xorfor/Domoticz-PWS-Plugin/issues/8.

User TheNetopyr fixed this issue for Garni with: iptables -t nat -A PREROUTING -s [IP of PWS] -p tcp --dport 80 -j DNAT --to-destination [IP of Domoticz]:5000

I only work with WS View/Easyweather, so hopefully this helps.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest