[RE-RELEASE] Netatmo (Connect) - Weather Station

@Inge_Jones Did you solve it? I haven’t have the time to look at it yet.

I’m not seeing a problem, only deleted posts.

Sorry! It was supposed to be an answer to one of the deleted posts. I got an email with the content of the deleted posts so thats why I answered.

1 Like

Sorry for any confusion. I realised I had just made a silly mistake myself and it was quickly corrected. In my case it was just I forgot to enable OAuth in the App editing screen itself, and thought I was gonna do it in the App at runtime

2 Likes

Hehe, been there, done that!

G'day all, I added a link to the first post to a brief guide to hooking up your Netatmo to Weather Underground.

2 Likes

I just want to thank you for posting this. You saved my life as my Netatmo app broke in smartthings, and Netatmo app in smartthings will go away in coming few weeks or months. Thank you for putting out in HE!!

2 Likes

No worries :+1:


Also Enable Debug logging is disabled but I'm seeing debug entries in my Logs:

image

I believe these are Netatmo Server side errors - I see them occasionally too.

I'll have a look at the code to see why the debug logging setting is being ignored.

I commented these out in def refreshToken() to remove from my logs. I think you need an if statement to respect the debug logging setting, for example if (debug) log.debug “In refreshToken”

1 Like

The previous maintainer/author never bothered including proper "debug == true" logic and just commented out many of the debug lines. I've re-instated all debug code but made it conditional to you actually turning it on. eg:

if(enableDebug == true){log.debug "Generating AppDebug Event: ${results}"}

And I've released it as version v1.2.

Upon upgrade attempt with HPM, I’m getting the below error that I’ve never seen before. I thought maybe it was actively polling at the time I tried to upgrade, but after a few attempts, still getting the error. I also tried a match up and repair in HPM, but got the same error. I can always manually update, but just wondering if it was something with the package or you had another thought.

An error occurred while installing the package: Failed to upgrade app ${getVendorName()} Connection.

Be sure the package is not in use with devices.

That’s weird, I’m now seeing it too.

If you go into “apps code” section, and into the Netatmo connect app, can you use the import function (then hit save) to update?

I just tested this and it works to update to v1.2.

I’ll look into the HPM issue tomorrow.

That actually worked to pull the code in, but HPM is still showing that an update from 1.1 to 1.2 is needed, even after doing a match up and repair in HPM (actually getting the same “in use” error when trying to do a repair)

No worries, I’m seeing the same thing. I’m off to bed now, but I’ll investigate it tomorrow.

Run this again, and it'll work fine - I accidentally changed the file format from "UTF-8" to "UTF-8 w/ BOM" and HPM was choking on it.

Ok, now Im really going to bed (problem was driving me nuts!). :rofl:

Worked! Sweet dreams

1 Like

Can you please tell us what v1.3 has been changed or fixed?

Sure, it fixed the issue below. I’ll update the notes properly later today (I was working on this at midnight so got a bit lazy).