-
Notifications
You must be signed in to change notification settings - Fork 100
File locations
Debug log files are stored at /var/log/sprinklers_pi
. To view the log file just type cat /var/log/sprinklers_pi
from the shell prompt.
Settings are stored in the file /usr/local/etc/sprinklers_pi/settings
. This is a binary file that's essentially a mirror of the EEPROM if this system was compiled to run on the Arduino platform. It's not (easily) edited. You can delete this file to return the system to factory defaults.
Every time a zone is turned on or off, an entry is written to a sqlite3 database table along with a number of parameters (e.g. which schedule turned it on, was it a manual action, was it a quickstart, was there a seasonal adjust parameter and what was it, was there a weather underground adjustment, etc.)
This file is located at /usr/local/etc/sprinklers_pi/db.sql
. You can actually launch a sqlite3 session and query the file via SQL. Just type sudo sqlite3 /usr/local/etc/sprinklers_pi/db.sql
from a shell prompt.
From time to time, you may want to clear your zone log database, you can do so with the following procedure:
- Stop the sprinklerspi service.
- Then you should be able to run sqlite commands on the db (make a backup copy first!). The query is
DELETE FROM zonelog;
which will truncate the table. So run the command:sudo sqlite3 /usr/local/etc/sprinklers_pi/db.sql "DELETE FROM zonelog;"
- Start the service again.
The sprinklers_pi executable is located at /usr/local/sbin/sprinklers_pi