Skip to content

Instantly share code, notes, and snippets.

@dhowdy
dhowdy / laundry-spy.ino
Last active June 14, 2018 04:22 — forked from savetheclocktower/laundry-spy.ino
Laundry Spy firmware
// (see the blog post at https://andrewdupont.net/2018/04/27/laundry-spy-part-3-the-software/)
// Version 1.0 by https://github.com/savetheclocktower
// Version 1.1 by https://github.com/dhowdy/
// GENERAL CONFIG
// ==============
// The baud rate of serial output for logging. If necessary, change the baud
// rate in your Serial Monitor to match this.
#define BAUD_RATE 115200
@dhowdy
dhowdy / gist:d3258c3240b5d9a77126a0e6d34b395a
Created August 16, 2018 16:36
Simple systemd watchdog
cat <<EOF > /lib/systemd/system/[[[name]]].service
[Unit]
Description=[[[The Service to watch]]]
After=local-fs.target
[Service]
Type=simple
PIDFile=/var/run/[[[name]]].pid
ExecStart=/opt/[[[script.sh]]]
Restart=always