  * REST compatible function for setting an alarm
  * yyyy-mm-dd_hh:mm:ss
  */
-int setAlarm(String command) {
+int restSetAlarm(String command) {
   Serial.println(command);
   // delimiters
   command[4] = 0; command[7] = 0; command[10] = 0;

  if (!digitalRead(KEY_CANCEL)) {
    // cancel the alarm
    while(!digitalRead(KEY_CANCEL)); // debounce
    Serial.print("Cancelled!");
    alarm *cancelled = alarms.pop();
    if (cancelled) {
      cancelled->sounding = FALSE;
      free(cancelled); 
    }
    AS.KillTheAlarm();
  } else if (!setting && !digitalRead(KEY_OK)) {
    // enter the setting mode
    while(!digitalRead(KEY_OK)); // debouncing

        if (a = (alarm *)malloc(sizeof(alarm))) {
          a->set = newalarm;
          a->active = true;
          a->next = NULL;
          alarms.push(a);
        }
        setting = false;
