Edinburgh Hacklab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
timer [2025-04-12 14:58] dylan-thinnestimer [2025-05-13 21:51] (current) dylan-thinnes
Line 1: Line 1:
 The timer panel's source code lives here: https://github.com/dylan-thinnes/hacklab-timers The timer panel's source code lives here: https://github.com/dylan-thinnes/hacklab-timers
  
-To add new timers or reset an existing timer, make a request of the form "/reset?name=MyNewTimerName" to bus-timetable pi.hacklab:3000.+To add new timers or reset an existing timer, make a request of the form [[http://bus-timetable-pi.hacklab:3456/reset?name=MyNewTimerName&timestamp=MyTime]]. The allowed options for timestamp are "now", "never", and a unix timestamp with the number of seconds since the Unix epoch. 
 + 
 +Alternatively, publish a timer name to ''time-since-last/reset'' and it will be set to the current time. 
 + 
 +To remove a timer, make a request of the form [[http://bus-timetable-pi.hacklab:3456/delete?name=MyNewTimerName]] 
 + 
 +To get the history of all edits to the timers, make a request of the form [[http://bus-timetable-pi.hacklab:3456/history]]
timer.1744469883.txt.gz · Last modified: by dylan-thinnes