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

incmve commented 9 years ago

Wow I would say with the degree symbol otherwise its just a number. Nice work dude.

incmve commented 9 years ago

I am running the test RFcontrol for a while now but it doesn't seem to be accurate or missing broadcast. My display is is showing other values then my pimatic, the last update in pimatic was 4 hours ago.

Icesory commented 9 years ago

This things are possible: the Signal quality is to bad or the receiver is not good or the RFControll has a bug. Can you move the sensor near to the receiver?

incmve commented 9 years ago

Sure, I'm going to move it tomorrow closer to my pi and set up a second pi to compare results.

incmve commented 9 years ago

ok I got 2 Pi's set up, the test pi is only 5 meters away and my other is 10 meters with obstacles. They both receive temperature and humidity frequently but not always at the same time. sometimes my test pi receives and sometimes my production pi receives wind, also times they both receive wind data or nothing.

Pi 1 furthest away
15:48:28.709 [pimatic-homeduino] debug: data: "PING"
15:48:40.131 [pimatic-homeduino] debug: data: "RF receive 461 2026 4000 8956 0 0 0 0 01020102010201020102020102010101010101010101010101020101010101010102010103"
15:48:40.172 [pimatic-homeduino] debug: received: [ 461, 2026, 4000, 8956 ] 01020102010201020102020102010101010101010101010101020101010101010102010103
15:48:40.219 [pimatic-homeduino] debug: weather1:  { id: 86,
15:48:40.219 [pimatic-homeduino] debug:>  channel: 1,
15:48:40.219 [pimatic-homeduino] debug:>  temperature: 0.4,
15:48:40.219 [pimatic-homeduino] debug:>  humidity: 4,
15:48:40.219 [pimatic-homeduino] debug:>  battery: 'Good' }
15:48:40.257 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 'Good', avgAirspeed: 0.4 }
15:48:40.304 [pimatic-homeduino] debug: data: "RF receive 483 2002 3988 8952 0 0 0 0 01020102010201020102020102020201010201020201020101010101010101010202020203"
15:48:40.344 [pimatic-homeduino] debug: received: [ 483, 2002, 3988, 8952 ] 01020102010201020102020102020201010201020201020101010101010101010202020203
15:48:40.394 [pimatic-homeduino] debug: weather1:  { id: 86,
15:48:40.394 [pimatic-homeduino] debug:>  channel: 3,
15:48:40.394 [pimatic-homeduino] debug:>  temperature: 144,
15:48:40.394 [pimatic-homeduino] debug:>  humidity: 15,
15:48:40.394 [pimatic-homeduino] debug:>  battery: 'Good' }
15:48:40.435 [pimatic-homeduino] debug: weather5:  { id: 170, battery: 'Good', windDirection: 180, windGust: 0 }

pi 2 closest to windmeter
15:48:10.697 [pimatic-homeduino] debug: data: "PING"
15:48:30.702 [pimatic-homeduino] debug: data: "PING"
15:48:50.705 [pimatic-homeduino] debug: data: "PING"

So it's not distance, I also switched the receivers. The temperature and humidity are updated the most, the wind sometimes but mostly not.

Icesory commented 9 years ago

Ok. i take a look on the RFControl. But i have realy less time at the moment.

incmve commented 9 years ago

Don't worry dude whenever you got time, no hurry.

I dunno what has happened but it seems to run more smooth atm, I am getting more frequent data. Only thing not keeping up is the GUI.

incmve commented 9 years ago

Just to let you know, I put your rfcontrol on my production Pi and it's not receiving everything. It only receives my contactsensor when it's openen, the closed burst isn't received. Generic protocol is received ok.

Icesory commented 9 years ago

I have made a little fix in the RFControl library. So the low pass filter should be right now. Can you test it?

incmve commented 9 years ago

Thanks @Icesory going to test it.

incmve commented 9 years ago

Running it for a few days now but it doesn't seem to be any different, one pi with original RFcontrol show data but the pi with your develop version only shows Ping, might be the antenna going to change that now.

Icesory commented 9 years ago

Which Arduino do you use?

incmve commented 9 years ago

I am using Nano's

Icesory commented 9 years ago

I use the code on an Nano and a Micro and both run it very well. They are receive all transmissions. You can test it. Flash the compress script from the RFControl library and open an Serial Terminal. (Dont forgot to configure the receiver pin) Now you musst see all receiving data. Is this working something other is wrong.

Which receiver do you use?

incmve commented 9 years ago

Going to replace the receiver tonight. Using superheterodyne send and receivers.

incmve commented 9 years ago

Replaced the receiver that wasn't the problen. it might be a power issue, going to change some thing around.

Icesory commented 9 years ago

Do you use my latest development version?

Icesory commented 9 years ago

Some news here?

leader21 commented 9 years ago

i received the rainsensor and the anemometer last week. the rainsensor seems to work but i'm having trouble to setup the anemometer. seems that pimatic doesn't recognize it at all.

incmve commented 9 years ago

Everything seems to be working for me, the signal is really weak so I put another Pi in between to relay the data to my main Pi.

leader21 commented 9 years ago

mine is approx 1 meter away from the pi (at the moment for checking it out). so i guess any data must be received or the anemometer is broken.

leader21 commented 9 years ago

took the time to figure out the debug messages frm the homeduino plugin. (having 6 weather station devices in my rooms here, so there's a lot of debug output from homeduino, since the sensors create much rf traffic). i guess this here must be the anemometer since i checked out and compared all other weather sensor id's. could that be ?

anemometer1

i will take the device to the outside to see if the temp and hum. is changing. then this will be the confirmation.

incmve commented 9 years ago

Are you using the RFcontrol from @Icesory in your arduino? https://github.com/Icesory/RFControl/tree/development

without that I only got temp and humidity, with the RFcontrol from Ronny I also get the wind.

leader21 commented 9 years ago

aaah! ok, guess that's the point! will try it out later!

leader21 commented 9 years ago

need some help to update the arduino. i replaced the RFControl directory at the homeduino/libraries from ronny's development branch and did a "make upload". pimatic is still only displaying temp and hum from the anemometer. is there another thing alse that i need to consider? maybe to replace weather5.js with another version?

incmve commented 9 years ago

remove the build-nano directory and upload again.

leader21 commented 9 years ago

sorry!! my bad! should have taken the development branch and cloned the master branch instead facepalm now i get the correct debug output. thanks a lot for your quick help :) i'll check the range of the device now

incmve commented 9 years ago

lol been there XD

leader21 commented 9 years ago

:+1: :) could you tell me if the the rain sensor is working properly? this little plastic thing doesn't look very trusty to me. and how did you set up the database storage? guess 1d should do, since an aggregation of the values for a longer time doesn't make any sense. actually i played a little with it and generated 5.75 mm rain. but tomorrow these 5.75mm will still be there and won't be of any useful information if not deleted somehow.
at the other hand if there's no longer database saving, there's no more documentation of the rainfall for longer periods of time. well, that's actually beyond me :/

and another thing - does "windgust" work?

incmve commented 9 years ago

Rain is only reset when you take out the battery, so you could make a variable at 00:00 hours.

IF it's  00:00 hours
THEN $rainyesterday = $weather-station.rain

The next day would be a rule

IF $weather-station.rain >= $rainyesterday 
THEN $raintoday = $weather-station.rain -  $rainyesterday 

I don't use the rain unit.

Windgust and windavg is constantly updated, I made a variable and a rule.

IF $weather-station.windGust > $windgust 
THEN $windgust = $weather-station.windGust

And a button device to reset the $windgust variable

Icesory commented 9 years ago

Now are all parts of this are implemented in pimatic.

homone73 commented 9 years ago

hello there. I'm new and I need help. I buy Alecto ws-4500, but I have a big problem I can not connect to my router. netgear DGN2200v3, I followed everything that I was told from assistance, but nothing, can not give an IP address to the network adapter. flashes 2 times for 5 seconds then it means that it is connected to the router but the router does not give him an IP address. Have any of you had a similar experience? could you help me? Thanks in advance

incmve commented 9 years ago

Yes it's because the network module has a MAC address of all zero's (00:00:00:00:00:00) your router (most router) can't handle that because it isn't valid.

The only thing you can do is run a software DHCP server on your computer. It's just bad from Alecto to use that MAC.