Page 1 of 1
Blockly script with event type Time dont fire
Posted: Friday 12 January 2018 21:57
by Hjalmarsson
Hi
Domoticz version: 3.8153
On Raspberry Pi3
I have a blockly event that doesnt seem to work.
It is based on the event type time and should fire every minute.
I can see in the extended log file that Domoticz is running timed events every minute on the minute,
but nothing happens

- Blockly.PNG (15.19 KiB) Viewed 1333 times

- logg.PNG (64.62 KiB) Viewed 1333 times
Any ideas?
// Jörgen
Re: Blockly script with event type Time dont fire
Posted: Friday 12 January 2018 22:16
by jvdz
You are testing for On in both tests. What is the value of TimerTest?
Jos
Re: Blockly script with event type Time dont fire
Posted: Friday 12 January 2018 22:22
by Hjalmarsson
Sorry it should bee off.
I have tried both on and off but no message in the log

- blockly2.PNG (31.74 KiB) Viewed 1322 times
This was another try at it, same result, nothing
// J
Re: Blockly script with event type Time dont fire
Posted: Friday 12 January 2018 22:31
by jvdz
jvdz wrote: ↑Friday 12 January 2018 22:16
What is the value of TimerTest?
So what does it show when you click "Show current states"?
Jos
Re: Blockly script with event type Time dont fire
Posted: Friday 12 January 2018 22:36
by Hjalmarsson

- tt.PNG (2.04 KiB) Viewed 1316 times
On
Re: Blockly script with event type Time dont fire
Posted: Friday 12 January 2018 22:57
by jvdz
I realize again why I didn't like blockly from the start as I don't like programming when the code has it own mind.

Use DzEvent or LUA... much easier.
Either way, something in my mind told me that blockly needed a time test in there for it to work and this indeed does work:

- Knipsel.PNG (39.35 KiB) Viewed 1311 times
It didn't without the OR Time test. I am not a blockly buff so maybe somebody can comment in case it should have worked.
Jos
Re: Blockly script with event type Time dont fire
Posted: Saturday 13 January 2018 8:17
by Hjalmarsson
Thank you for your help. Appreciated
// J