diff options
| author | Delmar Davis <don@suspectdevices.com> | 2025-06-22 17:20:56 -0700 |
|---|---|---|
| committer | Delmar Davis <don@suspectdevices.com> | 2025-06-22 17:21:33 -0700 |
| commit | 8477b36b8bd7b68827fb27d3b4d611b3d44fac7e (patch) | |
| tree | fca28209a596bf05d9bed541d0eabf57d4510fe8 | |
| parent | b6c6414e6df14c38ee7ac4b939815b5525bad490 (diff) | |
timeandtemp.service
| -rw-r--r-- | requirements.txt | 1 | ||||
| -rw-r--r-- | systemd/system/timeandtemp.service | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt index 428f98c..d5bcace 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,4 +13,3 @@ adafruit-circuitpython-ssd1305 Adafruit-PlatformDetect Adafruit-PureIO adafruit-circuitpython-charlcd -adafruit-character-lcd diff --git a/systemd/system/timeandtemp.service b/systemd/system/timeandtemp.service new file mode 100644 index 0000000..9ec0427 --- /dev/null +++ b/systemd/system/timeandtemp.service @@ -0,0 +1,16 @@ +[Unit] +Description = print time and temperature to seven segment led. +After = network.target + +[Service] +Type = simple +ExecStart = /usr/local/merlot/bin/timetemp.py +User = root +Group = root +Restart = on-failure +SyslogIdentifier = timeandtemp +RestartSec = 5 +TimeoutStartSec = infinity + +[Install] +WantedBy = multi-user.target |
