Hi folks,
I've been thinking about adding a web front end to my incredibly cost effective CHDK and Raspberry Pi based timelapse rigs, so that I can monitor and control them from anywhere in a browser.
Thus far I've been using the awesome Multilapse script (by Manoweb and Reyalp), and, while it's been working very well, I would really like to have a monitoring to alert me when things stop working. At the moment I have to browse either the online gallery, where my images are uploaded to. Or, use an ftp program to log in and check the filenames, which are timestamped.
A couple of days ago I checked in and found the camera had stopped working an hour earlier and, while a hour isn't much, it could have been half a day and I'd rather have received an email or even and SMS immediately.
While looking into this I came across a couple very professional and robust looking, open-source tools.
One is called
GumCP https://github.com/gumslone/GumCPAnd aside from allowing the creation of buttons to run scripts on the host machine, it serves up a nice array of detail about the machine state,
Another even more promising option is
Chroniclehttps://github.com/jhuckaby/CronicleChronicle runs on a webserver hosted, in my case, on a Raspberry Pi Zero, using Node.js and npm. Aside from the scheduling, it gives a very nice
The flexibility offered for scheduling is incredible. One can add multiple overlapping tasks at any interval and the task will run a command on the machine
I am trying to figure out how to issue Lua commands as tasks and just tried to add a voltage request
= return get_vbatt( )
So I initiated a chdkptp session via an SSH connection to the machine in question.. thinking, naeively that I could simply run the Lua command and it would work.
It didn't!
It appears to my mind that I'm initiating a second shell command with my Chronicle task.
I Googled for insights into running a command from one shell, to a process running in another shell but didn't find anything that I could understand.
Any suggestions would be welcome.
Cheers
Sdack
UPDATE: Today my camera crapped out again and I lost 4 hours of images. Fortunately this is a pro bono job for a local school.