guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Timer intervall adjustment during the night #27

Closed MeierTobias closed 2 years ago

MeierTobias commented 2 years ago

In the same implementation: Fix the "houre of the day" after midnight problem.

If((newAlarmTime.day > now.day))
{
newAlarmTime = "23:50";
}

And add a logic to avoid getting stuck between 23:50-00:00