Well this morning at 5.00 am My server without the suggested codefixes stopped. But the one with the codefixes, seem to carry on its bussines without any complaints about "time_utc".
So for now it seems to have done the job. I'll watch it closely the coming days, but it looks promising. I am very grateful and happy about your help, thank you. How do I suggest the changes to the driver, so the driver can be updated for others to prevent the same headache? Bent onsdag den 12. september 2018 kl. 19.42.42 UTC+2 skrev Bent Jensen: > > I will try that. I'll get back with an answer in approx. 24 hours. > > Bent > > > > > tirsdag den 11. september 2018 kl. 21.59.13 UTC+2 skrev mwall: >> >> On Tuesday, September 11, 2018 at 11:52:48 AM UTC-4, Bent Jensen wrote: >>> >>> Ok now I got an output in the log, that is actually usefull. >>> >>> Sep 11 16:31:05 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: >>> url: https://api.netatmo.com/api/getstationsdata data: access_token=xxxx >>> Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: >>> resp_obj: {u'body': {u'user': {u'mail': u'neumann', u'administrative': >>> {u'lang': u'en-GB', u'reg_locale': $ >>> Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: >>> cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0} >>> Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: >>> Caught unrecoverable exception in netatmo-client: >>> Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: >>> **** 'time_utc' >>> >> >> looks like the server is not sending the time. it should have an element >> called time_utc, but you are not getting that. >> >> in netatmo.py, try changing this line: >> >> data = {'time_utc': x['dashboard_data']['time_utc']} >> >> to this line: >> >> data = {'time_utc': x['dashboard_data'].get('time_utc', 0)} >> >> then restart. >> >> m >> >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
