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 <javascript:>', >> 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.
