I'm woriking on a project that checks if LEDSTATUS from a database has the value "0" then led is off, if the value is "1" led is on. I searched and found out that there is something called UDF that can run scripts but am not sure if it is possible if the database is not local (on a server). is it possible? if yes how?
I created two python scripts one that turn led on and the other one to turns it off.
I will create a database with one table LEDSTATUS and will create a trigger that will run when ever the value of LEDSTATUS gets changed, if the value is 0 then run python script that turn led off, and if the value is 1 run the other script.