I’m hoping that someone can point me in the right direction on this please. I would like get my internet traffic usage every hour, on the hour (ie at 00:00, 01:00, 02:00, etc). Currently I’m polling my router at an interval of an hour, but not on the hour.
Are you sure you can keep it at one hour?
A 1gbit/s connection at full speed will make a second overflow in the counter in about 34 seconds.
You probably don’t have a 1gbit/s internet connection, but one hour means overflow can be reached at with less than a 1000/90=11mbit/s at full speed.
An overflow is when the counter reach the highest number it can hold and then starts at 0 again.
The second overflow is the important one, because when you reach that time point without readings in between you will not know if you have a high number from running at full speed and two overflows or just half the speed with one overflow.