error string vs hour

Moderator: leecollings

Post Reply
TheCondor
Posts: 78
Joined: Thursday 18 June 2015 10:32
Target OS: Linux
Domoticz version:
Contact:

error string vs hour

Post by TheCondor »

Hi, i'm encountering this error with my test blocky script which might open the roller shutter in the morning at 9Am if it's weekend.
I created another script and a variable "festivo" with string content which is sets to YES if it's saturaday or sunday, and to NO if it's a working day.

Attached the blocky script and here the error in the log:
Error: EventSystem: Lua script error (Blockly), Name: Buongiorno_Tapparelle_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare string with number


Thanks in advance to who can help me, cheers.
Attachments
Selezione_001.png
Selezione_001.png (55.96 KiB) Viewed 371 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest