Netatmo plugin discussion

Posted on
Tue Mar 11, 2014 4:17 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin

Not sure what this means, but i got this email today:

Code: Select all
Dear developers,

A new authentication permission model (scope from oauth2 RFC) has been
deployed in our Netatmo API.
You can find some documentation here :
http://dev.netatmo.com/doc/authentication/scopes

You need to update your application in order to take it into account
(you just need to add a scope argument in authentication requests)

NB :
Until the 26th of March 2014 if no scope is provided the application
will still have access to all method
After the 26th of March 2014, if no scope is provided the application
will only have access to read_station method (getuser, devicelist (for
station), getmeasure (for station)).

That means that every application that has not taken the scope into
account will not be able to access the thermostat data after the 26th of
March.

Thank your for your understanding,

--
Thomas Rosenblatt

Backend&Frontend lead developer
Netatmo


I'm just a user, not a dev, so I don't know why i got it. Also i'm kinda peeved that he sent the email with EVERY recipient in the TO (not BCC) field so every email is visible.

Posted on
Tue Mar 11, 2014 4:37 pm
zeigh offline
Posts: 58
Joined: Jul 10, 2003
Location: Prescott Valley, AZ USA

Re: Netatmo plugin

Seeker,

Regardless of what the technical issue is, the message from Netatmo confirms that the plugin is broken. My Indigo log is full of red. Therefore, I have disabled it and altered all triggers to get weather information elsewhere.

I hope that you will be able to figure out what the problem is. Please let us know when that happens. If not, well, thanks for venturing to develop the plugin in the first place.


Peace,
Dr. Z.

“Technological change is like an axe in the hands of a pathological criminal.” (Albert Einstein, 1941),
Dr. Z.

Posted on
Tue Mar 11, 2014 5:05 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Netatmo plugin

The announcement re: the Netatmo API change specifically noted:
    Until the 26th of March 2014 if no scope is provided the application will still have access to all method
So, the current code should still be working. Also, the impact of the change should not affect the use of the plugin for simply reporting observed data, the change should only impact Netatmo thermostats.

However, inspite of what I have noted above, the plugin is, indeed, broken and I am looking into the problem.

Posted on
Tue Mar 11, 2014 5:47 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin

yes, seems like mine is still working via the (old) plugin.

edit: nope, tons of red. broken.

Netatmo Plugin Stopping Netatmo device read loop
Netatmo Plugin Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Netatmo Plugin Error Plugin stopping. Reason = 'scope'

edit 2: my outdoor temp variable on my control page still seems to be updating. it shows 72F and this is the first 70+ day since october. it does not match my.netatmo.com, but i assume there's a delay with the plugin.

Posted on
Wed Mar 12, 2014 3:38 pm
davyach offline
Posts: 1
Joined: Mar 12, 2014

Re: Netatmo plugin

You can fix the problem after the last update from Netatmo editing the following file:

/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Netatmo.indigoPlugin/Contents/Server Plugin/lnetatmo.py

You have to put the following line:

"scope": "read_station"

After the line 49 starting with:

"password": password,

So the new structure is the following:

44 postParams = {
45 "grant_type": "password",
46 "client_id": clientId,
47 "client_secret": clientSecret,
48 "username": username,
49 "password": password,
50 "scope": "read_station"
51 }


Cheers,

Davide

Posted on
Wed Mar 12, 2014 3:45 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Netatmo plugin

davyach wrote:
You can fix the problem after the last update from Netatmo editing the following...


Thanks for the tip. I need to update the basic libs (the plugin is two versions behind) and get a new version out, maybe this week. But the quick fix noted should resolve the immediate issue.

BTW, I reported this to Netatmo. They set the plugin's client code on debug and had me try a login... it worked WITHOUT DOING THE SUGGESTED EDIT. So, you may not need to do anything at all.

Posted on
Wed Mar 12, 2014 3:49 pm
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Netatmo plugin

davyach wrote:
You can fix the problem after the last update from Netatmo editing the following file: ...

Fixed it for me - Thanks :D

Posted on
Sat Mar 29, 2014 1:02 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin discussion

how can i fully uninstall this plugin? I messed something up doing the edit to the .py file. I deleted the plugin package in the disable plugin folder as well as the prefs file. it still shows up in the plugins list. when i run the installer it says already installed.

Posted on
Sat Mar 29, 2014 2:28 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Netatmo plugin discussion

Delete the plugin from both of these directories (in case you have a copy in each):

/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/
/Library/Application Support/Perceptive Automation/Indigo 6/Plugins (Disabled)/

Then restart the server (not just the Indigo 6 client, but the server itself).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Mar 29, 2014 3:18 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin discussion

Thanks, that did it!

FYI, the plugin still seems to work fine.

Posted on
Fri Apr 11, 2014 4:02 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin discussion

netatmo now has a rain sensor for sale. it shows as may delivery on amazon. I'll probably pick one up.

Any idea what mods may be required to read the rain data via the plugin?

Posted on
Fri Apr 11, 2014 4:14 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Netatmo plugin discussion

Seeker wrote:
...Any idea what mods may be required to read the rain data via the plugin?

Not yet. But I have one on order too :wink:

Posted on
Fri Apr 11, 2014 4:34 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin discussion

just preordered one too. i love the netatmo, and your awesome plugin makes it double cool.

Posted on
Mon May 05, 2014 4:43 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin discussion

I got the rain gauge installed. plastic, simple, but it seems to work (with some water from a cup).

the key with this netatmo stuff is the apps and logging it does.

Posted on
Mon May 05, 2014 5:18 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Netatmo plugin discussion

aaaand... i just noticed this:

Code: Select all
Netatmo plugin Debug Error      Problem opening Netatmo web site. Reason = HTTP Error 403: Forbidden
  Netatmo Plugin Error            Netatmo server error encountered in DeviceList init
  Netatmo Plugin Error            Plugin stopping. Reason = __init__() should return None
  Netatmo Plugin                  Stopping Netatmo device read loop
  Netatmo Plugin Error            plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Disabling plugin "Netatmo Plugin 0.4.1"
  Stopping plugin "Netatmo Plugin 0.4.1" (pid 16323)
  Stopped plugin "Netatmo Plugin 0.4.1"

Who is online

Users browsing this forum: No registered users and 8 guests