Started migration to Python... Maybe not a good idea.

This commit is contained in:
Johannes Findeisen 2023-11-01 21:33:35 +01:00
commit 8758aa2385
7 changed files with 237 additions and 3 deletions

View file

@ -36,7 +36,7 @@ static char *statusurl = "https://www.hamburg.ccc.de/dooris/status.json";
static char *agent = "Spacetray/0.42";
// The delay for polling the dooris service. Adjust this before compiling
static int delay = 900000; // ms. aka 15 minutes
static int delay = 1000; // ms. aka 15 minutes
bool door_open = false;
bool old_door_open = false;
@ -219,7 +219,8 @@ int main(int argc, char **argv) {
//invoke_notification();
gtk_timeout_add(delay, (GtkFunction)do_it, (gpointer)NULL);
//gtk_timeout_add(delay, (GtkFunction)do_it, (gpointer)NULL);
guint xxx = g_timeout_add_seconds(1000, (GSourceFunc)do_it, (gpointer)NULL);
gtk_main();