I want to switch the IR filter from my camera with a Blockly based on Sunset and Sunrise.
Made a small script and activating this script manually works good so i assume somehow the Blockly is something wrong.

This should call 1 of the 2 scripts irOn or irOff and as said when i run these scripts manually no problem but Blockly doesn't want to work somehow.
Could anybody guide me what i do wrong?