RealWind lua

Moderator: Telldus

Post Reply
Serond
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

RealWind lua

Post by Serond »

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

Im trying to add this:
https://github.com/telldus/tellstick-lu ... 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 http://api.telldus.net/localapi/reference/telldus.html 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