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-19 19:04] dylan-thinnestimer [2025-05-13 21:51] (current) dylan-thinnes
Line 2: Line 2:
  
 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. 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 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.1745089443.txt.gz · Last modified: by dylan-thinnes