Page 1 of 1

Using wind speed in Blocky to control sunscreen

Posted: Wednesday 29 May 2019 13:09
by Bob1976
Hello,

I am trying to read the windspeed from my Alecto WS3500 and make it turn off my sunscreen. I have created a verry simpel blocky just to test things, but even that is not working...

I have looked at the data from the wind speed sensor, and it seems that the third or fourth position of the returned values is the windspeed... but how can I tell Blocky wich numbers (positions) to use...? I have added a picture of what the returnd windspeed numbers are (4 and 12 in this case), and an example of the test blocky....

Values:
Windmeter Values.png
Windmeter Values.png (123.27 KiB) Viewed 1294 times
Blocky:
Windmeter Blocky.png
Windmeter Blocky.png (73.67 KiB) Viewed 1294 times

How can I use the returned values of the Alecto windspeed sensor in Blocky?

Greetings Bob.

Re: Using wind speed in Blocky to control sunscreen

Posted: Saturday 01 June 2019 10:39
by Bob1976
Hello,

After some fiddeling around, it seems that the value in the weather Blocky building block (Windmeter) is the fourth digit in the string (WindGust). And the value shown in the string is multiplied by 10, but not so in the Blocky building block... :roll: . The value in the string is in meters/sec, so to make ik work I set the value in the Blocky to 5m/s (18km/h).

Like this:
Windmeter.png
Windmeter.png (13.17 KiB) Viewed 1257 times
And now it works!

Greetings, Bob.