interceptWH2600 - WH2600 Weather Station Interceptor

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

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

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

Upgrade :
Fisrt command :

Code: Select all

root@RASPBERRYPI-182:/home/pi/interceptWH2600# git fetch --all
Result :

Code: Select all

fatal: Not a git repository (or any of the parent directories): .git
I do this :

Code: Select all

root@RASPBERRYPI-182:/home/pi/interceptWH2600# git init
Dépôt Git vide initialisé dans /home/pi/interceptWH2600/.git/
Second command :

Code: Select all

root@RASPBERRYPI-182:/home/pi/interceptWH2600# git fetch --all

Code: Select all

Nothing Display
Third command:

Code: Select all

root@RASPBERRYPI-182:/home/pi/interceptWH2600# git reset --hard origin/master
Result :

Code: Select all

fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
I do this :
??? Nothing ???
:?: :?: :?:
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

BakSeeDaa wrote: Tuesday 21 November 2017 12:33 Might it be so that you have altered the python script file using a MSDOS/Windows editor? That will destroy the script file.
I use Notepad++ for modifications
Conding UFT-8 (sans BOM)
Languafe : Python

;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

I have completely reinstalled interceptWH2600 and the .sh is working now.

Code: Select all

sudo apt-get update&&sudo apt-get install git

cd /home/pi && git clone git://github.com/allan-gam/interceptWH2600.git

sudo chmod 755 /home/pi/interceptWH2600/interceptWH2600.py

cd /home/pi/interceptWH2600

etc....
Why ?
How?


;) :) :D
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
BakSeeDaa
Posts: 485
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by BakSeeDaa »

OK.

We will try to find out what's going on on your system.

Your file /home/pi/interceptWH2600/interceptWH2600.py has the size of 21073 bytes.

I just made a new installation following the installation instruction to 100% and my file /home/pi/interceptWH2600/interceptWH2600.py has the size of 20386 bytes.

That's weird. Either something went wrong when you downloaded it with the git clone or you've altered it. I don't know but I suspect that you have altered it by editing it and saving it with MS/DOS line endings (CR+LF). Maybe you'd like to check your Notepad++ editor settings if you primary work with files on Linux systems.

Anyway, the file /home/pi/interceptWH2600/interceptWH2600.py should not be edited at all if you follow the wiki.

Then, for some strange reason, when you follow the upgrade instruction and run command git fetch --all, you get a fatal error message that reads "Not a git repository". That's so very strange. Have you manually been deleting files (e.g. the .git file) in the /home/pi/interceptWH2600 directory?

What is the output if you run command:

Code: Select all

ls -la /home/pi/interceptWH2600/
At Monday 30 October 2017 16:11 you made a post showing that everything seemed to be up and running.

Then at Tuesday 31 October 2017 11:36 you made a new post post that really confirms you've made changes to the python source file. Already there, I can't help you any longer. You have obviously customized the source which is perfectly fine but then I can't use many hours of my free time to find out what goes wrong.

When you installed, did you really follow the installation instructions? Did you encounter any errors while doing that? Have you done anything else after that?

Then later, at Saturday 11 November 2017 11:57 there is a new post and now the script doesn't start any longer.
Doudy wrote: Saturday 11 November 2017 11:57 ...I followed the wiki procedure...
Further on I write in a post that I assume that you have followed the installation instruction carefully .
BakSeeDaa wrote: Sunday 12 November 2017 10:12 I assume that you have followed the installation instruction carefully and while doing that didn't receive any error messages
I was just about to recommend you to reinstall everything and this time following the installation instruction and after that doing nothing additional. While writing this you posted a new message that says that everything is working after reinstalling.
Doudy wrote: Tuesday 21 November 2017 16:33 I have completely reinstalled interceptWH2600 and the .sh is working now.

Code: Select all

sudo apt-get update&&sudo apt-get install git

cd /home/pi && git clone git://github.com/BakSeeDaa/interceptWH2600.git

sudo chmod 755 /home/pi/interceptWH2600/interceptWH2600.py

cd /home/pi/interceptWH2600

etc....
Why ?
How?


;) :) :D
I can't say why but we know that it was working initially, then you customized the source file and it stopped working. At some point the git files disappeared.

Nevertheless please feel free to customize the script and make any changes that you wish but after doing that, I can't help you. Let's hope it stays stable for now.

Cheers! ;)
Last edited by BakSeeDaa on Friday 23 February 2018 9:07, edited 1 time in total.
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

BakSeeDaa wrote: Tuesday 21 November 2017 16:49 What is the output if you run command:

Code: Select all

ls -la /home/pi/interceptWH2600/

Code: Select all

pi@RASPBERRYPI-182:~ $ ls -la /home/pi/interceptWH2600/
total 96
drwxr-xr-x  3 pi pi  4096 nov 21 16:16 .
drwxr-xr-x 33 pi pi  4096 nov 21 16:15 ..
-rw-r--r--  1 pi pi  1608 nov 21 16:19 config.json
-rw-r--r--  1 pi pi  1668 nov 21 16:15 copie_example_config.json
drwxr-xr-x  8 pi pi  4096 nov 21 16:15 .git
-rw-r--r--  1 pi pi    97 nov 21 16:15 .gitignore
-rwxr-xr-x  1 pi pi 20386 nov 21 16:15 interceptWH2600.py
-rwxr-xr-x  1 pi pi  1667 nov 21 16:15 interceptWH2600.sh
-rw-r--r--  1 pi pi 35141 nov 21 16:15 LICENSE
-rw-r--r--  1 pi pi   771 nov 21 16:15 README.md
-rw-r--r--  1 pi pi   451 nov 21 16:15 sample_data.txt
-rwxr-xr-x  1 pi pi   203 nov 21 16:15 watchWH2600.sh
That is OK 20386 bytes.
BakSeeDaa wrote: Tuesday 21 November 2017 16:49 I can't say why but we know that it was working initially, then you customized the source file and it stopped working. At some point the git files disappeared.
I certainly deleted this file by mistake
:oops:
BakSeeDaa wrote: Tuesday 21 November 2017 16:49 Nevertheless please feel free to customize the script and make any changes that you wish but after doing that, I can't help you. Let's hope it stays stable for now.
OK

For information - after reboot Pi :

Code: Select all

pi@RASPBERRYPI-182:~ $ sudo /home/pi/interceptWH2600/watchWH2600.sh
Running
Thanks for your help.
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
BakSeeDaa
Posts: 485
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by BakSeeDaa »

Version 1.1.0 released.

See Wiki for upgrade instructions.
README.md wrote:
  • Corrected a debug print message. (Latest wind direction reading)
  • Added a parameter in configuration file, system->enabled. If set to false program will exit.
  • Added a parameter in configuration file, updateWU. Updates to Weather Underground will be performed conditionally depending on this boolean.
NOTE! After (or before if you prefer) upgrading to version 1.1.0 you need to add the new 2 parameters (enabled and updateWu) manually into your configuration file. Look at the new example_config.json what it should look like.
Happy weather interception!
Xssen
Posts: 1
Joined: Sunday 15 July 2018 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Xssen »

Hi,
I'm looking for a weather station. I would like it to work with domoticz on Rasberry Pi 3. It would close window blinds automatically dependig on weather conditions. So there are my questions:
1. Why your GitHub and Wiki pages are not working?
2. Are you satisfied with your WH2600? How often rechargable batteries need to be changed? And how is it signalized? Ambient Weather published a new version which is WS-1401 https://www.ambientweather.com/amws1400ip.html that use normal batteries.
3. Is it possible to make such program as yours but working with another station which is using wi-fi to comunicate with weatherunderground (for example Eurochron EFWS 2900 - https://www.conrad.pl/p/stacja-pogodowa ... -m-1508025)? I would not like to use weatherunderground domoticz plug-in.
I would be very grateful for your answer.
Thank you in advance, best reagards.
Jakub
upwindanderl
Posts: 8
Joined: Wednesday 03 October 2018 21:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by upwindanderl »

I'm going to be crazy.... all github links seems to be broken or down
have you stopped your project @BakSeeDaa ?? :O
misko903
Posts: 51
Joined: Thursday 27 September 2018 22:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Trencin, Slovakia
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by misko903 »

I am also looking for the code. Just bought eurochron ws2900, which is the same product as all the above.

Where is it disappeared? Is it possible to publish it again?
Ignacio
Posts: 4
Joined: Sunday 12 February 2017 18:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Ignacio »

There is still some life.
Digging in previous post I found the following procedure, although I still not succeeded pending on finding my PWS port number
----
sudo apt-get update&&sudo apt-get install git

cd /home/pi && git clone git://github.com/Doudy/interceptWH2600.git

sudo chmod 755 /home/pi/interceptWH2600/interceptWH2600.py

cd /home/pi/interceptWH2600



Now edit example_config.json and rename to config.json

sudo cp /home/pi/interceptWH2600/interceptWH2600.sh /etc/init.d
sudo chmod 0755 /etc/init.d/interceptWH2600.sh
sudo systemctl daemon-reload

sudo update-rc.d interceptWH2600.sh defaults

sudo /etc/init.d/interceptWH2600.sh start


And check with:

/usr/bin/python /home/pi/interceptWH2600/interceptWH2600.py -v -d
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

Since the changes in Wunderground : New Api Keys

I have the following error message in Domoticz:
2019-02-28 16: 13: 30.535 Error: WUnderground: Error: this key does not exist

When I test the link WU_UPDATE_URL I have the message:
Bad request

Code: Select all

WU_UPDATE_URL = 'https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php'
What would be the new functional link?

;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

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

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by eddieb »

In this thread there are links to the non-existant original wiki.
I assume that page contained the instructions on HOW to set up things ...
Anyone still have these ?
I am running a PWS with my WH2600 upgraded until ambient-4.4.4 works fine with uploading to Weather Underground
Got my new API key, but Domoticz is not capable of using that now.
I was looking into this interceptWH2600 thing but the instructions are missing.

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
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

eddieb wrote: Tuesday 19 March 2019 22:35 In this thread there are links to the non-existant original wiki.
I assume that page contained the instructions on HOW to set up things ...
Anyone still have these ?
Eddie
idem for me
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

Hello,
How to view the details of the "interceptWH2600 json"?
Style :

Code: Select all

http://192.168.1.185:8080/json.htm?type=devices&rid=??
Is it possible to intercept the state of the battery?
And receive a message in case of limit value!
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

Hello

The following URL give : "bad request"

Code: Select all

WU_UPDATE_URL = 'https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php'
line 38 from interceptWH2600.sh

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

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by eddieb »

@Doudy we are currently working on a dz script to pull al data from wh2600 and other PWS that run ObserverIP.
Look at https://www.domoticz.com/forum/viewtopi ... 59&t=29187 ...
The beta code is running fine here, Waaren will publish it soon ;-)
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
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy »

;)
great
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Quax1507
Posts: 101
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Quax1507 »

I am trying to get interceptWH2600 running with my WS2900 (which has no direct IP interface)

When running the script in debug mode, I get the following error:

Code: Select all

ID=ID&PASSWORD=KEY&indoortempf=75.7&tempf=62.2&dewptf=48.2&windchillf=62.2&indoorhumidity=39&humidity=60&windspeedmph=3.1&windgustmph=4.5&winddir=260&absbaromin=29.475&baromin=29.941&rainin=0.000&dailyrainin=0.012&weeklyrainin=0.012&monthlyrainin=0.012&solarradiation=346.95&UV=3&dateutc=2020-06-07%2010:30:07&softwaretype=EasyWeatherV1.5.0&action=updateraw&realtime=1&rtfreq=5
Received data for station ID :  ----------------------------------------
Exception happened during processing of request from ('192.168.33.111', 20901)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 293, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "./interceptWH2600.py", line 72, in do_GET
    if isDebug: print 'Received data for station ID : ', jsonQs['ID']
KeyError: 'ID'
Wrong python version?
Any idea?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest