Author Topic: Netatmo[103] : Startup Lua Failed  (Read 1333 times)

Offline markoe

  • Full Member
  • ***
  • Posts: 135
  • Karma: +4/-3
Netatmo[103] : Startup Lua Failed
« on: March 21, 2017, 02:10:11 pm »
Hi

I did install the netatmo plugin via install aplication it says  Current Version: 4.20160128. Vera plus with  latest firmware + UI7.

I did reqister my system to netamo web site and did get values for (username,password,client id, client secret).  I did enter them to device variables (text input checked).

Now I am getting the error "Netatmo[103] : Startup Lua Failed" what am I missing?

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6339
  • Karma: +288/-70
  • "Less is more"
Re: Netatmo[103] : Startup Lua Failed
« Reply #1 on: March 21, 2017, 02:14:37 pm »
You should get an "authorisation error" with wrong credentials, IIRC.

This looks like an install configuration error... where did you load it from (MiOS store?)
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline markoe

  • Full Member
  • ***
  • Posts: 135
  • Karma: +4/-3
Re: Netatmo[103] : Startup Lua Failed
« Reply #2 on: March 21, 2017, 03:19:41 pm »
Yes mios store. Should  I delete and reload the plugin?

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6339
  • Karma: +288/-70
  • "Less is more"
Re: Netatmo[103] : Startup Lua Failed
« Reply #3 on: March 21, 2017, 03:48:46 pm »
Do you have the skill to download the latest from GitHub?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline markoe

  • Full Member
  • ***
  • Posts: 135
  • Karma: +4/-3
Re: Netatmo[103] : Startup Lua Failed
« Reply #4 on: March 21, 2017, 08:30:51 pm »
I can try.  8)

1. I did copy the zip file from github
2. upload loop files to vera via Apps -> develop apps -> load files -> upload
3. copy icons (that where missing) to /www/cmh/skins/default/icons 

reboot twice

same error still

I did study the log file and I decided to change my "station name" to "weather". It used to have national characters .

reboot and It WORKS  ;D so that was the problem.

0   03/22/17 19:30:30.706   luup_log:103: Netatmo: admin.unit = 0 <0x76ee3520>
50   03/22/17 19:30:30.706   luup_log:103: Netatmo: admin.pressureunit = 0 <0x76ee3520>
50   03/22/17 19:30:30.707   luup_log:103: Netatmo: admin.windunit = 0 <0x76ee3520>
50   03/22/17 19:30:30.707   luup_log:103: Netatmo: station name: Weather <0x76ee3520>
50   03/22/17 19:30:30.708   luup_log:103: Netatmo: module name: Indoor <0x76ee3520>
50   03/22/17 19:30:30.708   luup_log:103: Netatmo: module name: Outdoor <0x76ee3520>
50   03/22/17 19:30:30.709   luup_log:103: Netatmo: creating child devices... <0x76ee3520>

My other vera that has only plugin from mios store works now also.

thanks
« Last Edit: March 22, 2017, 01:40:45 pm by markoe »

Offline Henninne

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Netatmo[103] : Startup Lua Failed
« Reply #5 on: May 31, 2017, 04:38:26 pm »
Hi, I also get this error: Startup Lua Failed. I downloaded from apps in UI7, put in all the information, but cannot get it to work. Any advice? Not sure if I understand the fix above, can anybody explain?

Thanks

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6339
  • Karma: +288/-70
  • "Less is more"
Re: Netatmo[103] : Startup Lua Failed
« Reply #6 on: May 31, 2017, 06:40:02 pm »
Do you have any non-alphanumeric characters in your password?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Henninne

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Netatmo[103] : Startup Lua Failed
« Reply #7 on: June 01, 2017, 12:45:38 am »
Thanks for the quick reply. No I have small/big letters and numbers.

Does the name on the app created at the connect site have anything to say?
« Last Edit: June 01, 2017, 12:52:25 am by Henninne »

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6339
  • Karma: +288/-70
  • "Less is more"
Re: Netatmo[103] : Startup Lua Failed
« Reply #8 on: June 01, 2017, 02:43:46 am »
Does the name on the app created at the connect site have anything to say?

No, nothing at all.

Did you have a problem with getting the latest files from GitHub?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Henninne

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Netatmo[103] : Startup Lua Failed
« Reply #9 on: June 01, 2017, 05:04:28 am »
I just installed the app though the Vera UI7 interface. Not sure how I do it manually? Is it in the Apps, develop apps, Luup files and then upload file? Do I upload all the .xml, .json and .lua files in that folder?

Thanks for any help

Offline Henninne

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Netatmo[103] : Startup Lua Failed
« Reply #10 on: June 01, 2017, 07:11:19 am »
Tried a bit more - do not understand how I upload the files and get the plugin without going through the Apps in UI7.

But I removed the app and reinstalled it, rebooted the vera, then put in my username, pw, client id and clientsecret. It still doesn't work but now it just says:
"Netatmo : Authorisation failed". I have checked the username and pw a million times and it is correct. The pw has only large and small letters as well as numbers. The username is my email address. So where should I go from here?

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6339
  • Karma: +288/-70
  • "Less is more"
Re: Netatmo[103] : Startup Lua Failed
« Reply #11 on: June 01, 2017, 08:15:00 am »
Ah, the username may suffer from the same issue.  This is an encoding error that I have never got to the bottom of in the API.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Henninne

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Netatmo[103] : Startup Lua Failed
« Reply #12 on: June 01, 2017, 09:32:41 am »
What do you mean? Its not possible to have a username which is not an email address is it?

Offline Henninne

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Netatmo[103] : Startup Lua Failed
« Reply #13 on: June 01, 2017, 09:49:28 am »
Finally it WORKS!!

My previous username at Netatmo was "firstname.lastname@gmail.com" and since you mentioned that it might be the same problem with special characters for the username as well I change to another email address "name@gmail.com" - and now it works! Thanks for the help. ;D

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6339
  • Karma: +288/-70
  • "Less is more"
Re: Netatmo[103] : Startup Lua Failed
« Reply #14 on: June 01, 2017, 02:00:53 pm »
That's great!  Sorry for the inconvenience.  Must dig into that properly some time.  Good luck.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.