RealWind lua

Moderator: Telldus

Post Reply
Posts: 3
Joined: Sat Jun 30, 2018 8:19 pm

RealWind lua

Post by Serond » Sat Jan 19, 2019 4:08 pm

The Lua api is more or less not documented, please update this.

Im trying to add this: ... alWind.lua
got a oregon weather station with the following wind and temp sensors:

Temp: 23.3° C31%
Wind: SSE 0.8m/s . 1.4m/s (last one here is gust)

But the lua script fails with:

Error during call: sensorValue() takes exactly 3 arguments (2 given)
Could not load lua script RealWind.lua: sensorValue() takes exactly 3 arguments (2 given)

The docs say:
sensorValue(valueType, scale) so something here is not correct. where is the 3 value. and what is it. Also.. wtf is the valueType magic number 64, 1?

Post Reply