Search found 6 matches
- Thursday 06 June 2019 22:52
- Forum: dzVents
- Topic: How to put newline in dzVents notification email [Solved]
- Replies: 3
- Views: 2348
How to put newline in email [Solved]
Hello! I have a problem with email sending in lua script. I want to send email body in more lines, but I dont know how. the part for sending: bodytext = PowerConsumption.."A, user1= "..Power1.."A, user2= "..Power2.."A, user3= "..Power3.."A" commandArray["SendEmail"]=subject.."#"..bodytext ...
- Friday 10 March 2017 10:50
- Forum: Bash / PowerShell / Batch etc.
- Topic: Script to restart Domoticz if it crashes
- Replies: 199
- Views: 129380
Re: Script to restart Domoticz if it crashes
Hi again!
Holy.....
Egregius and jannl are right. Today my Domoticz hanged and script for detecting if it is running is ok and runs perfectly. I also checked manually if domo is running and it is all OK, but the web page is not responding...
Holy.....
Egregius and jannl are right. Today my Domoticz hanged and script for detecting if it is running is ok and runs perfectly. I also checked manually if domo is running and it is all OK, but the web page is not responding...
- Thursday 09 March 2017 18:02
- Forum: Bash / PowerShell / Batch etc.
- Topic: Script to restart Domoticz if it crashes
- Replies: 199
- Views: 129380
Re: Script to restart Domoticz if it crashes
Hi! Script without loop and crontab command works like charm. Thanks again for help. script and added all rights: #!/bin/bash DomoticzState=`sudo service domoticz.sh status` if [[ $DomoticzState == *"active (running)"* ]] then echo 'Domoticz is running. Nothing to do.' elif [[ $DomoticzState ...
- Thursday 09 March 2017 0:01
- Forum: Bash / PowerShell / Batch etc.
- Topic: Script to restart Domoticz if it crashes
- Replies: 199
- Views: 129380
Re: Script to restart Domoticz if it crashes
Thank you very much! It works!
Another one thing please... Procedure how to make the script to run after rpi reboot.
Thanks again! I owe you a big beer!
Another one thing please... Procedure how to make the script to run after rpi reboot.
Thanks again! I owe you a big beer!
- Wednesday 08 March 2017 0:50
- Forum: Bash / PowerShell / Batch etc.
- Topic: Script to restart Domoticz if it crashes
- Replies: 199
- Views: 129380
Re: Script to restart Domoticz if it crashes
Hi! Thanks for the answer. I tryed that alredy with the code you posted few days ago, but i`ve got errors: pi@raspberrypi:~ $ sudo su pi /home/pi/domoticz/scripts/domoticz_state_checker.sh /home/pi/domoticz/scripts/domoticz_state_checker.sh: line 7: syntax error in conditional expression 'home/pi ...
- Tuesday 07 March 2017 1:00
- Forum: Bash / PowerShell / Batch etc.
- Topic: Script to restart Domoticz if it crashes
- Replies: 199
- Views: 129380
Re: Script to restart Domoticz if it crashes
Hello! I am new user of raspberry and domoticz and I am asking you for some help. I have no success with the script to make it run. I made a file with name domoticz_state_checker.sh with: #!/bin/bash while true do DomoticzState=`sudo service domoticz status` if [ $DomoticzState == "active (running ...