how to test a RPi script

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
NetEye
Posts: 34
Joined: Friday 17 June 2016 7:57
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spijkenisse
Contact:

how to test a RPi script

Post 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
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: how to test a RPi script

Post 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 ;)
The most dangerous phrase in any language is:
"We always done this way"
NetEye
Posts: 34
Joined: Friday 17 June 2016 7:57
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spijkenisse
Contact:

Re: how to test a RPi script

Post 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:
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests