Search found 3 matches

by gertvanwijk1
Wednesday 05 June 2019 19:56
Forum: LUA
Topic: if statment not working lua
Replies: 6
Views: 1330

Re: if statment not working lua

Hi Waaren, this is the result from the script you gave us 2019-06-05 19:46:09.846 Status: LUA: windmeter: ==>> -0 2019-06-05 19:46:10.801 Status: Warning: Expecting svalue with at least 5 elements separated by semicolon, 1 elements received ("280"), notification not sent (Hardware: 2 - Dummy, ID ...
by gertvanwijk1
Thursday 23 May 2019 19:48
Forum: LUA
Topic: if statment not working lua
Replies: 6
Views: 1330

Re: if statment not working lua

hi Waaren

Thanks for the reply

The value we get from our selfmade windvaan is for example 300
It is always a 3 digit number

We have 2 sensors one for the wind direction and one for windspeed

we want to convert the digit to for example to NE

then we want the 2 values send to idx 8
by gertvanwijk1
Wednesday 22 May 2019 22:11
Forum: LUA
Topic: if statment not working lua
Replies: 6
Views: 1330

if statment not working lua

hi can anyone explaine why the if statement if waarde == 280 then wind = "N" is not working we get the value of the device but the update(wind) in idx 8 is always "W" commandArray = {} wind="W" -- loop through all the changed devices for deviceName,deviceValue in pairs(devicechanged) do print ...