pimatic / rfcontroljs

nodejs modul with protocol support for different 433mhz switches and weather stations for the RFControl Arduino library.
GNU General Public License v3.0
49 stars 54 forks source link

Request: Alecto WS-4500 Weather Station #13

Closed Fritz4all closed 9 years ago

Fritz4all commented 10 years ago

I have the Alecto WS-4500 Weather Station and would like to add it to my Pimatic configuration :

ws-4500

The set consists of :


Teperature sensor, Humidity sensor, Wind speed sensor, Wind direction sensor :

winddirection

Received :

19:30:36.315 [pimatic-homeduino] debug: data: "RF receive 508 1977 3957 8925 0 0 0 0 01020201010201010101010102010102010102020101010101010201020202010202020103"
19:30:36.363 [pimatic-homeduino] debug: received: [ 508, 1977, 3957, 8925 ] 01020201010201010101010102010102010102020101010101010201020202010202020103
19:30:36.414 [pimatic-homeduino] debug: weather1:  { temperature: 77, humidity: 238 }

19:30:36.695 [pimatic-homeduino] debug: data: "RF receive 476 2006 3990 8976 0 0 0 0 01020201010201010101010102010102010102020101010101010201020202010202020103"
19:30:36.743 [pimatic-homeduino] debug: received: [ 476, 2006, 3990, 8976 ] 01020201010201010101010102010102010102020101010101010201020202010202020103
19:30:36.794 [pimatic-homeduino] debug: weather1:  { temperature: 77, humidity: 238 }

Rain fall meter :

rain

20:48:25.017 [pimatic-homeduino] debug: data: "RF receive 502 4020 1991 9044 0 0 0 0 01010101020202010201010201010202010101010101020202020202020202020102020103"
20:48:25.054 [pimatic-homeduino] debug: received: [ 502, 1991, 4020, 9044 ] 02020202010101020102020102020101020202020202010101010101010101010201010203
20:48:25.088 [pimatic-homeduino] debug: weather1:  { temperature: 96, humidity: 9 }

20:49:01.614 [pimatic-homeduino] debug: data: "RF receive 532 3985 1966 9005 0 0 0 0 01010101020202010201010201010202010101010101020202020202020202020102020103"
20:49:01.650 [pimatic-homeduino] debug: received: [ 532, 1966, 3985, 9005 ] 02020202010101020102020102020101020202020202010101010101010101010201010203
20:49:01.688 [pimatic-homeduino] debug: weather1:  { temperature: 96, humidity: 9 }

Network Forecast Unit :

netwerk-unit

21:53:42.683 [pimatic-homeduino] debug: data: "RF receive 481 1013 2003 5957 0 0 0 0 0101010201010201010101010101010201010101010101010101010101010201010101010101020102020201020202010202010201010101010102010202010203"
21:53:42.754 [pimatic-homeduino] debug: received: [ 481, 1013, 2003, 5957 ] 0101010201010201010101010101010201010101010101010101010101010201010101010101020102020201020202010202010201010101010102010202010203

21:54:21.406 [pimatic-homeduino] debug: data: "RF receive 490 1003 1996 5949 0 0 0 0 0101010201010201010101010101010201010101010101010101010101010201010101010101020102020201020202010202010201010101010102010202010203"
21:54:21.446 [pimatic-homeduino] debug: received: [ 490, 1003, 1996, 5949 ] 0101010201010201010101010101010201010101010101010101010101010201010101010101020102020201020202010202010201010101010102010202010203

21:55:00.405 [pimatic-homeduino] debug: data: "RF receive 474 1018 2012 5994 0 0 0 0 0101010201010201010101010101010201010101010101010101010101010201010101010101020102020201020202010202010201010101010102010202010203"
21:55:00.446 [pimatic-homeduino] debug: received: [ 474, 1018, 2012, 5994 ] 0101010201010201010101010101010201010101010101010101010101010201010101010101020102020201020202010202010201010101010102010202010203

For a Complete Capture see Pastebin :

http://pastebin.com/YxgZQm7Q

Icesory commented 10 years ago

It is possible to get the exact decode values from the Transmissions? Than it is easier to reconstruct the protocol

incmve commented 10 years ago

Do you mean the values from this?

sudo pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino
RF receive 0

When I'm home I will pull some data, got the same device.

Fritz4all commented 10 years ago

I have 2 RPi's both of them with RF receiver no filter no arduino.

Ran the following on both Pi's simultaneously :

sudo pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino
RF receive 0

This is the output :

Temperature sensor, Humidity sensor, Wind speed sensor, Wind direction sensor :


Raspberry pi 1 : 

RF receive 452 4010 2034 8975 0 0 0 0 01010102020102010202020202010102020201010202020201020102020101020102020203
RF receive 528 3929 1960 8903 0 0 0 0 01010102020102010202020202010102020201010202020201020102020101020102020203
RF receive 457 4011 2026 8970 0 0 0 0 01010102020102010202020202020201020201010202020201020102020101020101010103
RF receive 534 3940 1942 8885 0 0 0 0 01010102020102010202020202020201020201010202020201020102020101020101010103
RF receive 549 3922 1932 8905 0 0 0 0 01010102020102010202020202010101020201010202020201020102020101020102020103
RF receive 546 1936 3923 8877 0 0 0 0 01020201010202010101010101020101010202020101010102010102020202010202010103
RF receive 475 2000 4000 8958 0 0 0 0 01020201010202010101010102010102020102020101010102020201020202010202020203
RF receive 545 1931 3924 8879 0 0 0 0 01020201010202010101010102010102020102020101010102020201020202010202020203
RF receive 474 2012 3991 8955 0 0 0 0 01020201010202010102010102010101020102020101010101020101020202010102010203
RF receive 544 1929 3934 8945 0 0 0 0 01020201010202010102010102010101020102020101010101020101020202010102010203

Raspberry pi 2 : 

RF receive 532 3930 1955 8891 0 0 0 0 01010102020102010202020202020201020201010202020201020102020101020101010103
RF receive 458 2027 4008 8969 0 0 0 0 01020201010202010101010101020101010202020101010102010102020202010202010103
RF receive 521 1969 3933 8998 0 0 0 0 01020201010202010101010101020101010202020101010102010102020202010202010103
RF receive 465 2010 4006 8942 0 0 0 0 01020201010202010101010102010102020102020101010102020201020202010202020203
RF receive 514 1963 3957 8887 0 0 0 0 01020201010202010101010102010102020102020101010102020201020202010202020203
RF receive 451 2027 4022 8977 0 0 0 0 01020201010202010102010102010101020102020101010101020101020202010102010203

Rain fall meter :

Raspberry pi 1 : 

RF receive 565 3945 1935 8979 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 469 2024 4052 9104 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 460 4061 2022 735 9068 0 0 0 01010101023202010201010201010202020202020202020202020202020202020101010204
RF receive 568 3943 1931 8966 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 471 2021 4046 9175 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 457 4072 2034 9153 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 456 4068 2038 9068 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 536 3981 1958 9047 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 551 3963 1947 8988 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 469 4041 2032 9130 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 550 3974 1942 8982 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 489 2007 4029 9061 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 471 4050 2023 9083 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 479 4038 2019 9057 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 540 3984 1951 8978 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 566 3958 1928 8964 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 548 3981 1941 9021 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 435 2059 4078 9173 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 550 3972 1943 9024 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 427 2061 4096 9124 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 480 2014 4038 9045 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 473 4051 2021 9068 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 547 3984 1940 8987 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203

Raspberry pi 2 : 

RF receive 553 3966 1942 8984 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 427 2058 4103 9193 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 452 4061 2045 9128 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 525 4004 1966 9026 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 453 2043 4066 9083 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 530 3983 1961 638 9037 0 0 0 01010101020202010231010201010202020202020202020202020202020202020101010204
RF receive 542 3982 1952 8962 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 473 2019 4053 9050 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 461 4053 2036 9088 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 474 2020 4048 9079 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 531 3993 1961 9028 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 450 2055 4052 9048 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 455 4070 2038 9075 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 478 2016 4050 9078 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 464 4056 2030 9109 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 526 4006 1964 8981 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 451 2046 4065 9081 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 482 2011 4046 9053 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202
RF receive 458 4069 2033 9085 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 469 4047 2028 9075 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203
RF receive 539 3975 1960 8995 0 0 0 0 01010101020202010201010201010202020202020202020202020202020202020101010203

Network Forecast Unit :

Raspberry pi 1 : 

RF receive 539 954 1947 5909 0 0 0 0 0101010101020202020101010101010202010101020101020201010101010201010101020202010101010201020102010202020202010201010201010101010203
RF receive 542 952 1942 5913 0 0 0 0 0101010101020202010201010101010202020202020101020201020201010101020201010201010101010101010201020101010101010101020201010101020103
RF receive 540 952 1948 6007 0 0 0 0 0101010101020202020201010101010201010101010101010101010202020101020102010101010102020201010201010201020102010101010102020102020103
RF receive 540 952 1946 5912 0 0 0 0 0101010101020202020101010101010202010101010101010201010101010201020101020202010102010202010102010201020102020101010101010102020103
RF receive 537 952 1936 5915 0 0 0 0 0101010101020202011201010101010102020101010101010202020201010101010201010201010101010101020101020101010101010101010102020102020103
RF receive 444 1047 2044 5998 0 0 0 0 0101010101020202020101010101010202010102020101010201020202020101010101020202010102020102010102010101020101020101010201010201010103
RF receive 537 956 1949 5913 0 0 0 0 0101010101020202020101010101010102010101010201010202020202020101020102020102010102020202010102010102020101010101020201020201010203
RF receive 542 956 1953 5907 0 0 0 0 0001010101020202010201010101010101020101010201010102020201010101020101020101010101010101010101010101010101010101020202010101020203
RF receive 540 953 1950 5852 0 0 0 0 0101010101020202010201010101010102020101020201010102020101010101010202010101010101010101010101010101010101010101020101010201020203
RF receive 455 1036 2036 6010 0 0 0 0 0101010101020202020101010101010102010101020102010101010102010201010201010101020102020201010102010201020101010101010101010102020203
RF receive 539 956 1941 5914 0 0 0 0 0101010101020202010201010101010202020202020102010201020101010101020102020101010101010101020201010101010101010101020102010101010103
RF receive 539 954 1946 5907 0 0 0 0 0101010101020202010201010101010202020202010101020202010201010101010102010101010101010101010101020202010101010101020101010102020103
RF receive 545 953 1929 5911 0 0 0 0 0101010101020202010201010101010202020202020101020201020201010101020201010201010101010101010201020101010101010101020201010101020103
RF receive 539 954 1945 5915 0 0 0 0 0101010101020202010201010101010101020101020101010202020201010101020101010201010101010101010102010101010101010101010202020102010203
RF receive 539 953 1947 5909 0 0 0 0 0101010101020202020101010101010102010101010201010202020202020101020102020102010102020202010102010102020101010101020201020201010203

Raspberry pi 2 : 

RF receive 534 959 1951 5942 0 0 0 0 0101010101020202020101010101010202010102020101010201020202020101010101020202010102020102010102010101020101020101010201010201010103
RF receive 529 962 1958 5911 0 0 0 0 0101010101020202010201010101010101020101020101010202020201010101020101010201010101010101010102010101010101010101010202020102010203
RF receive 534 958 1951 5914 0 0 0 0 0101010101020202020101010101010102010101010201010202020202020101020102020102010102020202010102010102020101010101020201020201010203
RF receive 530 963 1954 5913 0 0 0 0 0101010101020202010201010101010101020101010201010102020201010101020101020101010101010101010101010101010101010101020202010101020203
RF receive 531 962 1957 5915 0 0 0 0 0101010101020202010201010101010202020101010102010102020101010101020101020101010101010101010101010101010101010101010202020102010103
RF receive 532 959 1957 5921 0 0 0 0 0101010101020202020101010101010102010101020102010101010102010201010201010101020102020201010102010201020101010101010101010102020203
RF receive 534 956 1955 5912 0 0 0 0 0101010101020202020101010101010201010201010202010201020201010201020102020202010101020201020102010202020202010201010102020202020103
RF receive 535 958 1951 5887 0 0 0 0 0101010101020202010201010101010202020202010202010202010201010101020102020101010101010101020202010101020101010101020202020202020103
RF receive 533 960 1952 5908 0 0 0 0 0101010101020202010201010101010202020202020202010202010201010101010102020101010101010101020101020201010101010101020201020101010203
RF receive 532 959 1956 5917 0 0 0 0 0101010101020202020101010101010102020102010101020101020101010201010202010202010101020201020102010201010202010201020202010201010103
RF receive 534 957 1954 5914 0 0 0 0 0101010101020202020101010101010202010101020101020201010101010201010101020202010101010201020102010202020202010201010201010101010203
RF receive 534 957 1955 5913 0 0 0 0 0101010101020202010201010101010202020202020101020201020201010101020201010201010101010101010201020101010101010101020201010101020103
RF receive 528 962 1966 5879 0 0 0 0 0101010101020202010201010101010102020101010101010202020201010101010201010201010101010101020101020101010101010101010102020102020103
RF receive 535 957 1951 5939 0 0 0 0 0101010101020202020101010101010202010102020101010201020202020101010101020202010102020102010102010101020101020101010201010201010103
RF receive 450 1043 2035 6000 0 0 0 0 0101010101020202010201010101010101020101020101010202020201010101020101010201010101010101010102010101010101010101010202020102010203

Hope this helps ;-)

sweetpi commented 10 years ago

The recordings are useful, but it would be better to have the corresponding values (temperature, humidity, ...) too.

Fritz4all commented 10 years ago

Temperature sensor, Humidity sensor, Wind speed sensor, Wind direction sensor :

Wind direction sensor : South Wind Speed Average : 0.7 Km/h Wind Chill : 12 Celsius Temperature sensor : 12,9 Celsius Humidity sensor : 65% Heat Index : LL,L C%

Raspberry pi 1 :

RF receive 548 1931 3923 8880 0 0 0 0 01020101010201020102010101020202020202010101010102020201010202010202020203

Raspberry pi 2 :

RF receive 543 1940 3924 8880 0 0 0 0 01020101010201020102010101020202020202010101010102020201010202010202020203
Icesory commented 10 years ago

Ok your multisensor for wind, temp usw transmitted the data in min two different telegrams. It used two different id's Footer-Id 1-----------Data------------------------------------------------------------------------------------Header -01-010102020102-0102020202020101010202010102020202010201020201010201020201-03 Footer-Id 2-----------Data------------------------------------------------------------------------------------Header -01-020201010202-0101010101010201010102020201010101020101020202020102020101-03 (Footer is possible but it can bee part of the id too) I think the sensor sends in one telegram humidity and temperature and in the other telegram the windspeed and direction. The Heat Index and wind chill is calculated by the station. But i am not sure.

What makes the Network Forecast Unit? Collectdata from the inet and send it to the station?

Fritz4all commented 10 years ago

Ok your multisensor for wind, temp usw transmitted the data in min two different telegrams. It used two different id's Footer Id 1: Data: Header -01-010102020102-0102020202020101010202010102020202010201020201010201020201-03 Footer Id 2: Data: Header -01-020201010202-0101010101010201010102020201010101020101020202020102020101-03 (Footer is possible but it can bee part of the id too) I think the sensor sends in one telegram humidity and temperature and in the other telegram the windspeed and direction. The Heat Index and wind chill is calculated by the station. But i am not sure

I will re-capture the the data this weekend or at the workplace tomorrow

What makes the Network Forecast Unit? Collectdata from the inet and send it to the station?

To set it up i need to connect it to my router and configure it with an application you need to install, BUT the application can't find the unit because it always has a MAC address : 00000000000000 most routers can't handle only zero MAC addresses. Tested it @ the workplace with a MS DHCP server then it works, receives an ip, and after setting up the location collects data from inet and sends it over 433 to the base station (monitor)

incmve commented 10 years ago

Here you go :) Rainmeter data with display: http://pastebin.com/FUFCpSRn

Windmeter data with display: http://pastebin.com/47uEZPV5

the windmeter seemd to send data every 3 minutes and the rainmeter every 2 minutes

hope thats enough info

Icesory commented 10 years ago

This looks good. I would start decode this later

Icesory commented 10 years ago

I have now spend some time on the protocol but at the moment I don't figure out how it is encoded. On @incmve data it's looks like only one Id for the airspeed multi sensor.

incmve commented 10 years ago

Is this helpfull? http://www.tfd.hu/tfdhu/files/wsprotocol/auriol_protocol_v20.pdf

For what I can find it only uses one ID per unit, but the ID changes when you replace the batteries. Here is a protocol from someone else: http://www.nodo-domotica.nl/Download/Stable/Plugins/Plugin_008.c and the description of their plugin: http://www.nodo-domotica.nl/index.php/Plugin_008

and a topic on pilight http://forum.pilight.org/Thread-Alecto-WS4500-WS3500

hope this helps?

Icesory commented 10 years ago

@incmve the PDF was perfect. Now it is easy. I would be ready through the weekend. But for the wind stuff we need a new device.

incmve commented 10 years ago

Cool thanks for your work! :+1:

Icesory commented 10 years ago

Hey ho. I found some time today an i had make a initial release of the weather5 protocol. https://github.com/Icesory/rfcontroljs/commit/dfdaaf8b5feb70befbbaf42e2c1906a3fec8a585 Temperatur and Humidity should working with a normal Temperatur Device But it is in development and need some tests more. Your collected data are most temp/hum data. I found no wind data. Can someone install the files from my rep and look at the debug data from pimatic? These files are needed to update. /lib/helper.js /lib/controller.js /lib/protocols/weather5.js

They must stored in this path /home/username/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/rfcontroljs/lib/

incmve commented 10 years ago

Thanks @Icesory I will test it tonight.

incmve commented 10 years ago

Just updated my pi at home, receiving weather1

13:49:23.592 [pimatic] info: listening for https-request on port 443...
13:49:23.630 [pimatic] info: listening for http-request on port 80...
13:49:24.306 [pimatic-homeduino] debug: data: "RF receive 523 1997 4012 482 9048 0 0 0 01020202010101020102020102020101320202020131013201013131313131313231020234"
13:49:24.349 [pimatic-homeduino] debug: received: [ 482, 523, 1997, 4012, 9048 ] 12131313121212131213131213131212031313131202120312120202020202020302131304
13:49:24.391 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:49:24.699 [pimatic-homeduino] debug: data: "RF receive 500 1995 4022 9040 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:49:24.737 [pimatic-homeduino] debug: received: [ 500, 1995, 4022, 9040 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:49:24.777 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:49:42.277 [pimatic-homeduino] debug: data: "PING"
13:50:01.435 [pimatic-homeduino] debug: data: "RF receive 498 1999 4024 9040 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:50:01.475 [pimatic-homeduino] debug: received: [ 498, 1999, 4024, 9040 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:50:01.514 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:50:01.829 [pimatic-homeduino] debug: data: "RF receive 500 1996 4022 9044 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:50:01.868 [pimatic-homeduino] debug: received: [ 500, 1996, 4022, 9044 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:50:01.910 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:50:06.382 [pimatic] info: rule venting: set $cvblock to 1
13:50:12.284 [pimatic-homeduino] debug: data: "PING"
13:50:32.290 [pimatic-homeduino] debug: data: "PING"
13:50:38.301 [pimatic-homeduino] debug: data: "RF receive 502 1997 4016 9048 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:50:38.343 [pimatic-homeduino] debug: received: [ 502, 1997, 4016, 9048 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:50:38.384 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:50:38.697 [pimatic-homeduino] debug: data: "RF receive 499 1998 4022 9028 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:50:38.738 [pimatic-homeduino] debug: received: [ 499, 1998, 4022, 9028 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:50:38.777 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:50:52.293 [pimatic-homeduino] debug: data: "PING"
13:51:12.300 [pimatic-homeduino] debug: data: "PING"
13:51:15.431 [pimatic-homeduino] debug: data: "RF receive 498 2001 4020 9048 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:51:15.473 [pimatic-homeduino] debug: received: [ 498, 2001, 4020, 9048 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:51:15.513 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
13:51:15.830 [pimatic-homeduino] debug: data: "RF receive 501 1996 4019 9036 0 0 0 0 01020202010101020102020102020101020202020101010201010101010101010201020203"
13:51:15.870 [pimatic-homeduino] debug: received: [ 501, 1996, 4019, 9036 ] 01020202010101020102020102020101020202020101010201010101010101010201020203
13:51:15.911 [pimatic-homeduino] debug: weather1:  { temperature: 78.4, humidity: 11 }
Icesory commented 10 years ago

The pulselengths don't match. You can change them by your self https://github.com/Icesory/rfcontroljs/commit/dfdaaf8b5feb70befbbaf42e2c1906a3fec8a585#diff-ed8e94717957b630981d5cfa369ff0e9R38 The 5xxx should be 9000

incmve commented 10 years ago

Cool first data is a fact.

Windmeter: Temp and humidity match inside unit

21:12:20.960 [pimatic-homeduino] debug: data: "RF receive 478 2013 3995 8956 0 0 0 0 01020202010202020101010102010201010101020101010102010102020101020101020103"
21:12:21.033 [pimatic-homeduino] debug: received: [ 478, 2013, 3995, 8956 ] 01020202010202020101010102010201010101020101010102010102020101020101020103
21:12:21.097 [pimatic-homeduino] debug: weather1:  { temperature: 26.5, humidity: 146 }
21:12:21.134 [pimatic-homeduino] debug: weather5:  { id: 238, battery: 1, temperature: 13.3, humidity: 99 }

rainmeter: Does not match, display shows 5.7

21:35:32.381 [pimatic-homeduino] debug: data: "RF receive 524 1975 4009 9036 0 0 0 0 01010101010101010102020102020101020202010201010101010101010101010101010203"
21:35:32.425 [pimatic-homeduino] debug: received: [ 524, 1975, 4009, 9036 ] 01010101010101010102020102020101020202010201010101010101010101010101010203
21:35:32.472 [pimatic-homeduino] debug: weather1:  { temperature: 64, humidity: 1 }
21:35:32.509 [pimatic-homeduino] debug: weather5:  { id: 0, battery: 1, rain: 2.3 }
21:35:32.738 [pimatic-homeduino] debug: data: "RF receive 503 1997 4025 9060 0 0 0 0 01010101010101010102020102020101020202010201010101010101010101010101010203"
21:35:32.821 [pimatic-homeduino] debug: received: [ 503, 1997, 4025, 9060 ] 01010101010101010102020102020101020202010201010101010101010101010101010203
21:35:32.868 [pimatic-homeduino] debug: weather1:  { temperature: 64, humidity: 1 }
21:35:32.907 [pimatic-homeduino] debug: weather5:  { id: 0, battery: 1, rain: 2.3 }
21:35:33.095 [pimatic-homeduino] debug: data: "RF receive 498 2002 4031 9052 0 0 0 0 01010101010101010102020102020101020202010201010101010101010101010101010203"
21:35:33.184 [pimatic-homeduino] debug: received: [ 498, 2002, 4031, 9052 ] 01010101010101010102020102020101020202010201010101010101010101010101010203
21:35:33.240 [pimatic-homeduino] debug: weather1:  { temperature: 64, humidity: 1 }
21:35:33.281 [pimatic-homeduino] debug: weather5:  { id: 0, battery: 1, rain: 2.3 }
Icesory commented 10 years ago

Thanks for testing. Can you posting more telegrams? It is possible that the Station used some interpolation methods. So watch the values over a timespan

Icesory commented 10 years ago

Oh no i failed a multiplikation. https://github.com/Icesory/rfcontroljs/commit/dfdaaf8b5feb70befbbaf42e2c1906a3fec8a585#diff-ed8e94717957b630981d5cfa369ff0e9R76 this are divide by 10.0 should be 4.0

incmve commented 10 years ago
22:31:03.012 [pimatic-homeduino] debug: received: [ 497, 2003, 4032, 9056 ] 01010101010101010102020102020101020201020201010101010101010101010101020203
22:31:03.052 [pimatic-homeduino] debug: weather1:  { temperature: 38.4, humidity: 3 }
22:31:03.087 [pimatic-homeduino] debug: weather5:  { id: 0, battery: 1, rain: 6.75 }

Works!! display shows the same rain value

Icesory commented 10 years ago

Nice. Last to test is the winddirection, avgAirspeed and windGuest And pls test with negativ temperatures. i think it should show negativ temp as value over 204°C

incmve commented 10 years ago

Just tested negative temperatures. display -1.6

13:19:32.115 [pimatic-homeduino] debug: data: "RF receive 500 1992 3973 8952 0 0 0 0 01020202010202020101020101020101020202020202020202010102010202010101010103"
13:19:32.201 [pimatic-homeduino] debug: received: [ 500, 1992, 3973, 8952 ] 01020202010202020101020101020101020202020202020202010102010202010101010103
13:19:32.269 [pimatic-homeduino] debug: weather1:  { temperature: 101.7, humidity: 96 }
13:19:32.314 [pimatic-homeduino] debug: weather5:  { id: 238, battery: 1, temperature: 408.2, humidity: 69 }

Is it possible that the arduino/pimatic isn't picking up the signal of the windmeter? I tested it in pilight without arduino and I did saw something. Also on the display unit the wind direction and speed gets updated but the debug shows no data just ping.

{
        "code": {
                "winddir": 135,
                "windgust": 0,
                "battery": 1
        },
        "origin": "receiver",
        "protocol": "alecto_wx500",
        "uuid": "0000-00-00-12-2855fc",
        "repeats": 2
}
{
        "code": {
                "windavg": 0,
                "battery": 1
        },
        "origin": "receiver",
        "protocol": "alecto_wx500",
        "uuid": "0000-00-00-12-2855fc",
        "repeats": 1
}
Icesory commented 10 years ago

The temperature I will fix today. But for the wind data we need help from the master sweetpi. It is really strange that the arduino don't receive the wind telegrams.

Icesory commented 10 years ago

I have update the helper.js and the weather5.js so it should decode negative temperatures correct.

sweetpi commented 10 years ago

The temperature I will fix today. But for the wind data we need help from the master sweetpi. It is really strange that the arduino don't receive the wind telegrams.

The problem could be that the wind data is only repeated 3 times (if I read the pdf correctly) and so maybe rfcontrol fails here. I would need a raw timing sequence of the burst (for example captured with pilight-debug).

Icesory commented 10 years ago

it sends the two wind data packets alternately. "These two packets are sent in pairs repeated three times within a transmission burst" http://www.tfd.hu/tfdhu/files/wsprotocol/auriol_protocol_v20.pdf [site 7]

It sends 1 of 6 packets this temp-temp-temp-temp-temp-temp And all the other 5 packets are wind1-wind2-wind1-wind2-wind1-wind2 is this the reason why RFControl dont accept the data?

sweetpi commented 10 years ago

And it only captures the first of the pair or no at all?

Icesory commented 10 years ago

I have searched all postet timigs and there are no wind informations. Its all temp

sweetpi commented 10 years ago

That's bad. I think I know what happens then. It records the first package of the pair and tries to verify it with the second. This of-cause fails because the second package of the pair is different...

Icesory commented 10 years ago

Yes i just have seen it in https://github.com/pimatic/RFControl/blob/master/RFControl.cpp state Verify

incmve commented 10 years ago

Can I change the verify to test it?

Icesory commented 10 years ago

i am working on it.

incmve commented 10 years ago

Let me know if I can do something, got a test pi with arduino ready. I'm no programmer so be gentle :p

Icesory commented 10 years ago

I working on a new verification function on the arduino. But @sweetpi is a genius and it is hard to understand the code complete. I have grabt some raw data from the pilight thread and put it into a C# programm. So i can debug all values, states and so on. But the problem is we have on the Atmega328 only 2kByte of Ram. And the Datastorrage at the moment used about 512Byte. In the worst case we must move the verification from the arduino to the pi. But this should be not the solution.

leader21 commented 10 years ago

searching for some special christmas present (for me of course ;). always wanted to have a multi purpose weather station. so my question, is this protocol only for the WS4500 or could there maybe other alecto WS and clones of these stations be received with? maybe the Alecto WS-5000 or WH3080, WH4050, WH1080 and much other versions where the outdoor hardware all looks similar. has anyone already tested or has a clue on this?

Fritz4all commented 10 years ago

The Alecto WS-5000 doesn't send on 433 Mhrz but 868 Mhrz so this won't work for now, but it all depends on the raw codes the device sends and the great work people like sweetpi and Icesory do with the raw codes.

leader21 commented 10 years ago

sure, i appreciate all the good work done here on this great project! sorry, haven't seen that the ws5000 has 868 mhz. but wh3080 has 433 mhz for example. well, guess i'll have to get the ws4500 then to be sure that it's working with pimatic :)

incmve commented 10 years ago

imo the network "sensor" and display are useless and the price of separate units is half of the whole package.

http://www.weerstationexpert.nl/ventus-w132-anemometer or http://www.weerstationexpert.nl/ventus-w174-regenmeter

depends on what you want.

incmve commented 10 years ago

I am receiving strange values from the windsensor temperature: -57.6 looks like something else is screwing with my data.

11:39:11.574 [pimatic-homeduino] debug: data: "RF receive 496 2004 4019 9040 0 0 0 0 01010101010101010101010101010101010102020201030202020201010102010202010202"
11:39:11.616 [pimatic-homeduino] debug: received: [ 496, 2004, 4019, 9040 ] 01010101010101010101010101010101010102020201030202020201010102010202010202
11:39:11.655 [pimatic-homeduino] debug: weather1:  { temperature: 95.6, humidity: 91 }
11:39:11.692 [pimatic-homeduino] debug: weather5:  { id: 0, battery: 1, temperature: -57.6, humidity: 103 }

11:37:01.208 [pimatic-homeduino] debug: data: "RF receive 493 1994 3974 8924 0 0 0 0 01020102010201020102010102020202010102020101010101020101020202010201020103"
11:37:01.249 [pimatic-homeduino] debug: received: [ 493, 1994, 3974, 8924 ] 01020102010201020102010102020202010102020101010101020101020202010201020103
11:37:01.293 [pimatic-homeduino] debug: weather1:  { temperature: 77.2, humidity: 234 }
11:37:01.336 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 1, temperature: 20.7, humidity: 72 }
incmve commented 10 years ago

Seems to be the rain unit that is messing it up, when I turn it of I get normal temperatures and humidity.

13:02:40.201 [pimatic-homeduino] debug: data: "RF receive 498 2000 4019 9044 0 0 0 0 01020202010101020102020102020101010101010101010101010101010101010102020103"
13:02:40.239 [pimatic-homeduino] debug: received: [ 498, 2000, 4019, 9044 ] 01020202010101020102020102020101010101010101010101010101010101010102020103
13:02:40.281 [pimatic-homeduino] debug: weather1:  { temperature: 0, humidity: 6 }
13:02:40.317 [pimatic-homeduino] debug: weather5:  { id: 142, battery: 1, rain: 0 }
13:02:40.491 [pimatic-homeduino] debug: data: "RF receive 500 1998 4018 9040 0 0 0 0 01010101010101010101010101010101010101020201030102020201010102010202010202"
13:02:40.532 [pimatic-homeduino] debug: received: [ 500, 1998, 4018, 9040 ] 01010101010101010101010101010101010101020201030102020201010102010202010202
13:02:40.573 [pimatic-homeduino] debug: weather1:  { temperature: 41.2, humidity: 91 }
13:02:40.610 [pimatic-homeduino] debug: weather5:  { id: 0, battery: 1, temperature: -166.4, humidity: 103 }

After turning of the rain unit

13:13:06.999 [pimatic-homeduino] debug: data: "RF receive 469 2013 4004 8936 0 0 0 0 01020102010201020102010101010102020202010101010102010201010101020201020203"
13:13:07.041 [pimatic-homeduino] debug: received: [ 469, 2013, 4004, 8936 ] 01020102010201020102010101010102020202010101010102010201010101020201020203
13:13:07.082 [pimatic-homeduino] debug: weather1:  { temperature: 52.2, humidity: 27 }
13:13:07.120 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 1, temperature: 12, humidity: 85 }

is it possible to set the unit id in the config of HomeduinoRFWeatherStation so it doesn't mix things?

Icesory commented 10 years ago

the weather5 protocol should seperate the data. If it received rain data it should not emit temperature data. can you pls poste some debug datan from the rain sensor. So i can try to fix it.

incmve commented 10 years ago

I restarted everything and it seems to be working agan only rain info isn't updated in the GUI.

14:08:50.977 [pimatic-homeduino] debug: data: "RF receive 498 4020 2002 9040 0 0 0 0 01010102020202020201010201010202020101020202020202020202020202020102010103"
14:08:51.029 [pimatic-homeduino] debug: received: [ 498, 2002, 4020, 9040 ] 02020201010101010102020102020101010202010101010101010101010101010201020203
14:08:51.093 [pimatic-homeduino] debug: weather1:  { temperature: 51.2, humidity: 11 }
14:08:51.146 [pimatic-homeduino] debug: weather5:  { id: 7, battery: 1, rain: 1.5 }
14:08:51.348 [pimatic-homeduino] debug: data: "RF receive 498 4023 1998 9036 0 0 0 0 01010102020202020201010201010202020101020202020202020202020202020102010103"
14:08:51.402 [pimatic-homeduino] debug: received: [ 498, 1998, 4023, 9036 ] 02020201010101010102020102020101010202010101010101010101010101010201020203
14:08:51.455 [pimatic-homeduino] debug: weather1:  { temperature: 51.2, humidity: 11 }
14:08:51.502 [pimatic-homeduino] debug: weather5:  { id: 7, battery: 1, rain: 1.5 }
14:08:51.719 [pimatic-homeduino] debug: data: "RF receive 497 4021 2001 9036 0 0 0 0 01010102020202020201010201010202020101020202020202020202020202020102010103"
14:08:51.773 [pimatic-homeduino] debug: received: [ 497, 2001, 4021, 9036 ] 02020201010101010102020102020101010202010101010101010101010101010201020203
14:08:51.826 [pimatic-homeduino] debug: weather1:  { temperature: 51.2, humidity: 11 }
14:08:51.868 [pimatic-homeduino] debug: weather5:  { id: 7, battery: 1, rain: 1.5 }
14:08:54.979 [pimatic-homeduino] debug: data: "RF receive 470 2014 4000 8956 0 0 0 0 01020102010201020102010102020202010202010101010102010201020101020102020103"
14:08:55.028 [pimatic-homeduino] debug: received: [ 470, 2014, 4000, 8956 ] 01020102010201020102010102020202010202010101010102010201020101020102020103
14:08:55.092 [pimatic-homeduino] debug: weather1:  { temperature: 52.2, humidity: 150 }
14:08:55.146 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 1, temperature: 11.1, humidity: 95 }
14:08:55.377 [pimatic-homeduino] debug: data: "RF receive 480 2004 3990 8928 0 0 0 0 01020102010201020102010102020202010202010101010102010201020101020102020103"
14:08:55.432 [pimatic-homeduino] debug: received: [ 480, 2004, 3990, 8928 ] 01020102010201020102010102020202010202010101010102010201020101020102020103
14:08:55.492 [pimatic-homeduino] debug: weather1:  { temperature: 52.2, humidity: 150 }
14:08:55.540 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 1, temperature: 11.1, humidity: 95 }

capture

Icesory commented 10 years ago

You are right. Dam copy and paste coding. https://github.com/pimatic/pimatic-homeduino/blob/development/homeduino.coffee#L633 is wrong. @_rain = event.values.rain

incmve commented 10 years ago

lol no problem

Icesory commented 10 years ago

I have developed a new verification algorithm for the Homeduino.
I don't have the alecto weather station so it can't test it. Would some one test it? You must only replace the RFControl lib an re-upload the Homeduino to the arduino. https://github.com/Icesory/RFControl/tree/development

incmve commented 10 years ago

I think you on to something here :)

22:52:49.625 [pimatic-homeduino] debug: data: "RF receive 494 1991 3970 8928 0 0 0 0 01020102010201020102020102010101010101010101010102010101010101010202010103"
22:52:49.701 [pimatic-homeduino] debug: received: [ 494, 1991, 3970, 8928 ] 01020102010201020102020102010101010101010101010102010101010101010202010103
22:52:49.787 [pimatic-homeduino] debug: weather1:  { temperature: 0.8, humidity: 12 }
22:52:49.864 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 'Good', avgAirspeed: 0.2 }
22:52:49.934 [pimatic-homeduino] debug: data: "RF receive 493 1992 3973 8932 0 0 0 0 01020102010201020102020102020202020102020201010201010201010101010101020203"
22:52:50.037 [pimatic-homeduino] debug: received: [ 493, 1992, 3973, 8932 ] 01020102010201020102020102020202020102020201010201010201010101010101020203
22:52:50.091 [pimatic-homeduino] debug: weather1:  { temperature: 91.4, humidity: 3 }
22:52:50.124 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 'Good', windDirection: 315, windGust: 63 }
22:52:53.949 [pimatic-homeduino] debug: data: "RF receive 516 4002 1981 9024 0 0 0 0 01010102020202020201010201010202020202020102020202020202020202020202020103"
22:52:53.993 [pimatic-homeduino] debug: received: [ 516, 1981, 4002, 9024 ] 02020201010101010102020102020101010101010201010101010101010101010101010203
22:52:54.043 [pimatic-homeduino] debug: weather1:  { temperature: 12.8, humidity: 1 }
22:52:54.091 [pimatic-homeduino] debug: weather5:  { id: 7, battery: 'Good', rain: 4 }
22:52:54.152 [pimatic-homeduino] debug: data: "RF receive 503 4015 1994 9032 0 0 0 0 01010102020202020201010201010202020202020102020202020202020202020202020103"
22:52:54.188 [pimatic-homeduino] debug: received: [ 503, 1994, 4015, 9032 ] 02020201010101010102020102020101010101010201010101010101010101010101010203
22:52:54.237 [pimatic-homeduino] debug: weather1:  { temperature: 12.8, humidity: 1 }
22:52:54.274 [pimatic-homeduino] debug: weather5:  { id: 7, battery: 'Good', rain: 4 }
incmve commented 10 years ago

Look good so far nice work @Icesory :+1: Only winddirection is displayed in degrees is that easy to fix to actual direction?

0 (N), 45 (NE), 90 (E), 135 (SE), 180 (S), 225 (SW), 270 (W), 315 (NW) capture displaying temp, humidity, direction, gust, avg

Icesory commented 10 years ago

Nice to see that it works. With the displayed direction i/w need help from @sweetpi

Icesory commented 10 years ago

@incmve with or without the degree "°" Symbol? multidevice01