Page 1 of 1

how to test a RPi script

Posted: Tuesday 06 February 2018 16:20
by NetEye
People,
How can i test a installed script on my RPi.
I have made and installed 2 scripts in the directory "scripts" and rebooted the RPi
Is there a command of something?
Domoticz starts perfectly without complain or error message (is this the test?).
Sorry if I wrote this topic on the wrong place, I will move it after a complain
Regards
Jan

Re: how to test a RPi script

Posted: Tuesday 06 February 2018 16:25
by emme
I though you won't need to reboot to have the scripts running under domoticz/scripts/lua folder....

anyway.... what are those scripts supposed to do? is that happend? :P

in general, for debug issues, it is good to place a print("Ehi!!, I'm running a script!!") at the top to ensure that it is running ;)

Re: how to test a RPi script

Posted: Tuesday 06 February 2018 17:19
by NetEye
Any script by sudo ./(name of the script)
I found that I can run the script (in this case by) sudo ./domoticz_state_checker.sh
It says then: Domoticz is running. Nothing to do.
I think it is solved.
Thank you
And in the future I publish a print, sorry .....
Google is my friend :lol: