Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
328 stars 159 forks source link

Cannot get time information from TimeDB since last friday (8th of October 2021) #200

Closed Ruggero1912 closed 2 years ago

Ruggero1912 commented 2 years ago

Hi everyone, I am using this project since a week, but I cannot make it get the time from timezonedb.com since friday, when timezonedb had some problems with their CDN. Today I connected the marquee to serial logger and I made it make an API request to get the current time. This is the response from the server:

{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=etcetcetc"}{"success_fraction":0,"report_to":"cf-nel","max_age":604800}{"status":"OK","message":"","countryCode":"IT","countryName":"Italy","zoneName":"Europe\/Rome","abbreviation":"CEST","gmtOffset":7200,"dst":"1","zoneStart":1616893200,"zoneEnd":1635642000,"nextAbbreviation":"CET","timestamp":1634036363,"formatted":"2021-10-12 10:59:23"}

as you can see, the server is answering with the current time, but the firmware is not able to parse it because the "timestamp" key of the json list is inside a json array, do not know why. It also seems to be missing a couple of characters: the closing "]" for the array of the endpoints and the closing "}"... I do not understand why the endpoint is giving this answer.. I tested this thing on two marquee scrollers, one flashed before friday and one flashed after friday, but unfortunately nothing changes. Did it happen to someone else? Do you know how to fix it? Thank you

Ruggero1912 commented 2 years ago

I am sorry, I did not see the new version 2.18 nor the issue 194. I flashed that version on my marquee and now everything work fine. Thank you!