Blockly script with event type Time dont fire

Moderator: leecollings

Post Reply
Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Blockly script with event type Time dont fire

Post 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
Blockly.PNG (15.19 KiB) Viewed 1327 times
logg.PNG
logg.PNG (64.62 KiB) Viewed 1327 times

Any ideas?

// Jörgen
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Blockly script with event type Time dont fire

Post by jvdz »

You are testing for On in both tests. What is the value of TimerTest?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Blockly script with event type Time dont fire

Post by Hjalmarsson »

Sorry it should bee off.
I have tried both on and off but no message in the log
blockly2.PNG
blockly2.PNG (31.74 KiB) Viewed 1316 times
This was another try at it, same result, nothing
// J
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Blockly script with event type Time dont fire

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Blockly script with event type Time dont fire

Post by Hjalmarsson »

tt.PNG
tt.PNG (2.04 KiB) Viewed 1310 times
On
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Blockly script with event type Time dont fire

Post 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
Knipsel.PNG (39.35 KiB) Viewed 1305 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Blockly script with event type Time dont fire

Post by Hjalmarsson »

Thank you for your help. Appreciated

// J
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest