Domoticz: restore database

install sqlite with putty: sudo apt-get install sqlite3 Recover your malformed database: cd domoticzsqlite3 domoticz.db.mode insert.output dump.sql.dump.exitsqlite3 -init dump.sql repaired.dbmv repaired.db domoticz.db or another way: install sqlitesudo apt-get install sqlite3 cd ~cd domoticzsqlite3 domoticz.db.mode insert.output dump.sql.dump.exit Remove first line of Read more ›

Domoticz: restart with cron

script; cd /home/pi/domoticz/scripts/ sudo chmod +x restart_domoticz.sh —script————————————— !/bin/shsudo service domoticz.sh stopecho “please standby… (waiting 8 seconds)”sleep 8sudo service domoticz.sh start echo $(date) “DiskStation retrieve finished” >> /home/pi/logs/DOM_Servicces.txt log: cd /home/pi/logs sudo chmod +x DOM_Servicces.txt Job;cd /etc/cron.dsudo nano cronJob voeg Read more ›