This repository contains the full source code for Arduino-based PC watchdog.
watchdog_arduino_sketch directory holds the sketch for Arduino board. It's compatible with any board having at least one IO pin and one serial port, which is basically all of them :) Just download Arduino IDE, open the sketch and upload it.
watchdog_java directory holds the PC-side code written in Java. You're going to need to install JRE to run it and Maven to build it.
To build an executable jar, run
mvn clean compile assembly:single
in watchdog_java directory.
The jar executable will be created in target/hardware-watchdog.jar
You can then launch it:
java -jar hardware-watchdog.jar
Then you'll have to add this line to your startup list to re-engage your watchdog after restart:
Press Win+R, enter shell:startup
. In the folder that you opened,
create a file run_watchdog.bat with this line:
java -jar yourjar
where yourjar is the fully qualified file JAR name, e.g. C:\data\hardware-watchdog-arduino\watchdog_java\target\hardware-watchdog.jar
The matter of autostarting the applications in Linux is highly platform-dependent, so refer to your distribution's manuals e.g. Arch wiki for ArchLinux and so on.