• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Supported] Alecto WS4500 / WS3500 | Ventus W177
FYI: I applied the following quick and dirty fix:
Code:
if (temperature > 204.7) { temperature = 204.8 - temperature; }
Now it's working, but hopefully there is a more elegant solution.
 
Reply
(02-12-2016, 10:34 AM)Eekhoorn Wrote: FYI: I applied the following quick and dirty fix:
Code:
if (temperature > 204.7) { temperature = 204.8 - temperature; }
Now it's working, but hopefully there is a more elegant solution.

Does the fix in the development branch not work?
 
Reply
Near zero in The Hague at the moment. Will checks logs tomorrow if my suggested code works as intended. I have a arduino mimicing the protocol and have the ds18b20 in the freezer. Negative values appeared as expected.

Verstuurd vanaf mijn GT-I9300 met Tapatalk
 
Reply
Currently temperatures below zero and displaying/log as expected.

Verstuurd vanaf mijn GT-I9300 met Tapatalk
 
Reply
The fix in the dev branch didn't work for me. BTW I'm using the W-044 sensor.

Here it's below zero also and my quick and dirty fix is showing the right negative temp.


Attached Files
.jpg   negative_temp_1.jpg (Size: 20.66 KB / Downloads: 10)
 
Reply
Im using a Alecto WS-4500 weatherstation

Verstuurd vanaf mijn GT-I9300 met Tapatalk
 
Reply
Hello,
On my raspberry , I introduced version 7.0 pilight with receiver RX- Aurel .4H50R30SF . I catch the temperature information and humidity of a Otio sensor ST -20.
Among all the protocols proposed by the pilight -receiver module I retained the alecto_wx500 protocol. I get the temperature information , humidity, and the battery status .
But when the temperature is negative , the data is poorly translated : eg to -1.0 ° C, the daemon goes back 203.8 ° C .
I also post a snapshot corresponding to the temperature of -1 ° C 20 % humidity for sensor Id 62
524 2096 0
524 4192 1
524 4192 1
524 4192 1
524 4192 1
524 3930 1
524 1834 0
524 2096 0
524 2096 0
524 2096 0
524 4192 1
524 2096 0
524 2096 0
524 4192 1
524 4192 1
524 2096 0
524 4192 1
524 3930 1
524 4192 1
524 3930 1
524 4192 1
524 3930 1
524 4192 1
524 4192 1
524 2096 0
524 2096 0
524 2096 0
524 2096 0
524 2096 0
524 4192 1
524 2096 0
524 2096 0
524 1834 0
524 2096 0
524 3930 1
524 2096 0
524 8908

protocole alecto_v2 : 36 bits

Id temperature
01111100 0010 011011111111 0000 0100 0010
00111110 = 62 id
111111110110 = temperature
0000 0010 = 20 %



But alecto_wx500.c module converts the 11-bit temperature directly in decimal, without looking at the MSB . In my example, it is 1 .
We should apply the transformation " reverse complement A2"

111111110110 - 1 = 111111110101
complement = 000000001010
decimal = 10
*0.1 = 1.0

and not 1111111110110 => 2038
*0.1 = 203.8
Can you make a correction of the program?
thank you in advance

cordially
 
Reply
@francois.leprieur, (I merged your post into the discussion thread for this protocol.) There is a fix for this problem in the developmental version available on the pilight github. Can you check if that solves your problem?
 
Reply
extrait of alecto_wx500.c depuis github dev

id = binToDec(binary, 0, 7);
temperature = (double)(binToDec(binary, 12, 23)) / 10.0;
humidity = (binToDec(binary, 28, 31) * 10) + binToDec(binary, 24,27);
battery = !binary[8];

if ((int)(binToDec(binary, 23, 23)) == 1) {
temperature -= 409.6;
}


I'm not on the above modification works for this protocol.
For a temperature of -1.0 ° C , the return value is 203.8
by applying the formula = 409.6 -203.8 205.8 , not obtained 1.0.
What do you think ?
 
Reply
I just managed to install pilight7.0 from git and run it with a Arduino Uno NG with atmega168 (pilight-nano-usb). I can send and receive. On the desk I have a Ventus W132 witch according to the posts before should work with pilight (at least Version 6). But it does not work for me. Here is what I get with pilight-receive:
Code:
{
    "message": {
        "id": 4095,
        "temperature": 409.5
    },
    "origin": "receiver",
    "protocol": "alecto_wsd17",
    "uuid": "0000-5c-93-a2-d54481",
    "repeats": 2
}
{
    "message": {
        "id": 2118,
        "temperature": 41.6,
        "humidity": 0.0,
        "battery": 1
    },
    "origin": "receiver",
    "protocol": "alecto_ws1700",
    "uuid": "0000-5c-93-a2-d54481",
    "repeats": 2
}
{
    "message": {
        "id": 2118,
        "temperature": 41.6,
        "humidity": 0.0,
        "battery": 1
    },
    "origin": "receiver",
    "protocol": "alecto_ws1700",
    "uuid": "0000-5c-93-a2-d54481",
    "repeats": 3
}
Could this be more an issue of pilight-usb-nano or pilight7 ?
Do you have the anemometer working in pilight7 anyhow?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fully Supported] Conrad RSL Switch Hexcode 137 53,666 12-02-2017, 08:48 AM
Last Post: Micha_123
  Supported shutter belt winders. muecke 0 910 12-18-2016, 12:02 PM
Last Post: muecke
  Pearl NC-7159-675 - Alecto protocol? - Does it work? Pik 20 8,484 09-11-2016, 04:27 PM
Last Post: JoeC.
  Supported device: KAKU AYCT-102 koos147 3 2,384 12-02-2015, 01:18 PM
Last Post: pilino1234
  Alecto ws-1150 mike 5 3,022 07-09-2015, 05:28 AM
Last Post: gregnau
  [Fully Supported] SSL support in webserver? Karel 18 12,807 05-29-2015, 10:26 PM
Last Post: curlymo
  Extra supported Hardware DI-O(chacon) yelti 3 2,767 01-20-2014, 11:31 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)