Thank you Guido.

 

 

You are right, it is running Python 2. Maybe I should address that as well.

 

Cheers

Bent

 

Fra: [email protected] <[email protected]> På vegne af 
Guido Cioni
Sendt: 8. august 2022 08:11
Til: [email protected]
Emne: Re: [weewx-user] Re: Netatmo

 

Weewx runs both in Python 2 and 3, so you could easily be running in Python 2 
even with the latest version.

 

You have to check which Python is weewx using in /etc/default/weewx and 
WEEWX_PYTHON

 

On Mon, 8 Aug 2022, 07:37 '[email protected] <mailto:[email protected]> ' via 
weewx-user, <[email protected] <mailto:[email protected]> > 
wrote:

I am sure I'm running Python 3, since I upgrade WeeWX every now and then. I'm 
running version 4.8.0 (latest), And I'm sure it is not written in both Python 2 
and Python 3. But If I'm running Python 2, where do I confirm which version? 
Both are installed on my server.

 

And up until now the only problem I have is the issure pointed out earlier, 
with two reading from netatmo server, where only one of the are registered by 
WeeWX netatmo driver.

 

 

Cheers

Bent

søndag den 7. august 2022 kl. 09.46.36 UTC+2 skrev [email protected] 
<mailto:[email protected]> :

Are you really sure you're running weewx with Python 3? Because when I tried to 
use this package on my installation it would not even start exactly because of 
some incompatibilities (like print without parentheses...). 

If it's working for you I think you're still running under Python 2.

 

Regarding the fix, it may not be complicated as you need to use OAuth2 instead 
than passing the password directly. Doesn't seem too difficult to implement, 
but unfortunately I don't think I'll have time to do it :( (Plus I don't use 
this plugin anymore so it would be difficult to test). 

I will let you know in case 

On Saturday, August 6, 2022 at 11:20:01 PM UTC+2 [email protected] 
<mailto:[email protected]>  wrote:

Well python 2 or 3, is not the problem it seems, because even though the weewx 
is now python 3, the driver for netatmo still works. But obviously the driver 
needs some sort of update to comply with the new API. I'm just not skilled for 
the job.

 

But I can allways hope that somebody in the same need with the necessary skills 
turn up with a solution.

 

Cheers

Bent

 

fredag den 5. august 2022 kl. 13.56.39 UTC+2 skrev [email protected] 
<mailto:[email protected]> :

Unfortunately the code from the netatmo driver is really old (not even Python 3 
compatible) so I'm not sure it will be updated to account for this change. 

On Friday, August 5, 2022 at 7:54:59 AM UTC+2 [email protected] 
<mailto:[email protected]>  wrote:

I have received an email from Netatmo about them changing the API.

 

I do not understand what that impiles to me. Does anyone understand what they 
are doing and will it break my ability to use WeeWX?

 

The y explain about it here: 
https://dev.netatmo.com/apidocumentation/oauth#authorization-code

 

Does anyone know or understand the code made to make Netatmo functional with 
weewx, and see a soplution to this topic?

 

I'm not much of a programmer, especially not in python, so I'm am really lost. 
:-)

 

Cheers

Bent

-- 
You received this message because you are subscribed to a topic in the Google 
Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/FWGGPlg8UTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/804f374b-d144-4051-81de-e78fbbae4e89n%40googlegroups.com
 
<https://groups.google.com/d/msgid/weewx-user/804f374b-d144-4051-81de-e78fbbae4e89n%40googlegroups.com?utm_medium=email&utm_source=footer>
 .

-- 
You received this message because you are subscribed to a topic in the Google 
Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/FWGGPlg8UTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAJfSxXtodygyPNBOXewp7L6jtrPvocpJ2pbsizEkqdX07Yse1A%40mail.gmail.com
 
<https://groups.google.com/d/msgid/weewx-user/CAJfSxXtodygyPNBOXewp7L6jtrPvocpJ2pbsizEkqdX07Yse1A%40mail.gmail.com?utm_medium=email&utm_source=footer>
 .

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/003e01d8aaf0%241c7544f0%24555fced0%24%40gmail.com.

Reply via email to