Currently day_offset in the API uses days defined by UTC rather than the local time of the station. This makes it relatively useless for any station that is not in the UTC time zone.
For example, say I want to calculate rain accumulation at a specific station since midnight in local time (say UTC-3). Common sense would suggest I can use day_offset=0 to get all data since midnight (i.e. the current day). That won’t work however, as day_offset=0 will return data from 21:00 the previous day in local time, as that is midnight UTC for the current day.
That would be the perfect solution. At a minimum the parameter would switch between using UTC and the local station timezone to define the ‘day’, but could also be extended to allow any timezone to be used to define the ‘day’.
This Highchart sample uses REST-data: http://weatherflow.vejrdatabase.dk/
Nothing done to the data. Latest update is correct, but chart first starting at 02:00, using day_offset=0.
@GarryFunk So just to be clear, what you saying is that I should use time_start & time_end and substract 7200 (2 hours) from my time_start timestamp to get the two hours I’m missing on my chart?