Blockly User Variables not updating

Moderator: leecollings

Post Reply
bluepi

Blockly User Variables not updating

Post by bluepi »

Hello

I am having a few issues with user variables not being updated. Is there a reason you can see why this script will not reset the variable to 0
It updates fine to 1 from pause or play but will not do any thing with off??

Thank you

Domoticz V2.3530

https://drive.google.com/file/d/0B_cqMJ ... sp=sharing

Image
bluepi

Re: Blockly User Variables not updating

Post by bluepi »

Well I thought I would update this...

Seems I was having two issues.

If my kodi is off it does not report being off (Not sure if this is because its being run on a raspberry Pi), which was then causing the script to fail and hence not update the variable.

However I also discovered that no mater what I did I could not trigger a blockly script based on a variable change i.e.

if variable = 1 then turn on light.

regardless of how I triggered the variable (from a script or manually)

So I re-wote all the blokly scripts in lua (gave me a chance to learn a new language) and everything works much better... All my triggers fire whenever a variable is changed or set.

Not sure why I did not get any help on this? was it posted in the wrong place?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest