Contact: [email protected]
A small and tiny alarmclock which is written using the scheduling and time features from lingua franca.
- sharing state between reactors
- stopping scheduled events
Dependencies: jdk11, boost, mpg321
$ lfc ./src/AlarmClock.lf
Building with nix
This cross compiles for aarch64.
nix build .#packages.aarch64-linux.lf-alarm-clock
Returns a list of upcoming events.
"timestamp": {
"date": str (human readable)
"message": str
}
Stops the currently playing alarm sound.
{
"success": "exit code" // 0 means successfull
}
Will schedule your alarmclock for the given timestamp
Request:
{
"message": str,
"time_stamp": int
}
Response:
{
"success": true
}
Will schedule a event relative to the current time.
Request
{
"days": int(optional),
"hours": int(optional),
"minutes": int(optional),
"seconds": int(optional)
}
Response:
{
"success": true
}
Schedule event for this time in the next 24 hours. If a parameter is unspecified the current time is used.
Request
{
"hour": int(optional),
"minute": int(optional),
"second": int(optional)
}
Response:
{
"success": true
}