Blockly script with event type Time dont fire

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

Blockly script with event type Time dont fire

Post by Hjalmarsson » Friday 12 January 2018 22:57

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 507 times
logg.PNG
logg.PNG (64.62 KiB) Viewed 507 times

Any ideas?

// Jörgen

User avatar
jvdz
Posts: 1295
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Blockly script with event type Time dont fire

Post by jvdz » Friday 12 January 2018 23:16

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

Jos

Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 22:36
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Blockly script with event type Time dont fire

Post by Hjalmarsson » Friday 12 January 2018 23:22

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 496 times
This was another try at it, same result, nothing
// J

User avatar
jvdz
Posts: 1295
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Blockly script with event type Time dont fire

Post by jvdz » Friday 12 January 2018 23:31

jvdz wrote:
Friday 12 January 2018 23:16
What is the value of TimerTest?
So what does it show when you click "Show current states"?

Jos

Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 22:36
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Blockly script with event type Time dont fire

Post by Hjalmarsson » Friday 12 January 2018 23:36

tt.PNG
tt.PNG (2.04 KiB) Viewed 490 times
On

User avatar
jvdz
Posts: 1295
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Blockly script with event type Time dont fire

Post by jvdz » Friday 12 January 2018 23:57

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 485 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

Hjalmarsson
Posts: 4
Joined: Friday 12 January 2018 22:36
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Blockly script with event type Time dont fire

Post by Hjalmarsson » Saturday 13 January 2018 9:17

Thank you for your help. Appreciated

// J

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest