 
   RGB.color(0, 0, 0);
   RGB.brightness(0);
+
+  Particle.publish("alarm:end", Time.format(Time.now(), TIME_FORMAT_ISO8601_FULL));
 
   /*delete parser;*/
 }

  alarmRuntime.start();
  RGB.color(0, 0, 255);

  /*parser = new AlarmToneLanguage(song);*/
  /*player.reset();*/
}

}*/

int handleAlarm(String value) {
  bool result = false;
  switch(value.charAt(0)) {
    case '+':
      result = alarms.add(value.substring(1));
      Particle.publish("alarm:add", value.substring(1));
      break;
    case '-':
      result = alarms.remove(value.substring(1));
      Particle.publish("alarm:remove", value.substring(1));
      break;
    case '#':
      result = alarms.clear();
      Particle.publish("alarm:clear");
      break;
  }

  return result ? 1 : -1;
}
