Hello,
this is from domoticz stable, my first blockly that throw an error instead of switching the plug.
2020-08-01 14:31:36.284 Error: EventSystem: Lua script error (Blockly), Name: BL Küchenventilator Cyrus_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'
Have never seen such an error from a blockly, what can be wrong?
Solderbro
Error from blockly that is dysfunctional
Moderator: leecollings
- Solderbro
- Posts: 80
- Joined: Tuesday 18 September 2018 15:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Hamburg, Germany
- Contact:
Error from blockly that is dysfunctional
Raspi 3B+RTC, SSD 128GB, Aeotec Gen5, Eurotronic SpiritZ, Fibaro FRGBW, Zipato PIR, Everspring AN180, Neo Coolcam Plug, Fibaro FGMS, Neo Coolcam Doorsensor, Popp Z-Weather
-
- Posts: 46
- Joined: Sunday 10 September 2017 9:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Error from blockly that is dysfunctional
Both your if and your elseif have Sunrise = On. So both are always true.
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Error from blockly that is dysfunctional
Not quite.. Sunrise and Sunset are times. So never 'On' or 'Off'
It should be something like
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 46
- Joined: Sunday 10 September 2017 9:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Error from blockly that is dysfunctional
Aah indeed, always hard to see errors when not programming yourself

Who is online
Users browsing this forum: No registered users and 1 guest