Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Netatmo Weather Station suite standalone 3.3.1

   (4 reviews)

1 Screenshot

About This File

Netatmo Weather Station suite standalone

 

INTRODUCTION

Netatmo Weather station suite brings complete integration of Netatmo weather station to HC2 users including rain and wind gauges and support for more than one station.

 

PREREQUISITES

  • Fibaro Home Center 2 with firmware 4.160 or greater

  • Sankotronic Lab. Emoji VD standalone

  • Netatmo Weather station

 

FEATURES

  • Complete integration of Netatmo weather station with HC2 including rain gauge and anemometer

  • Support for multiple Netatmo weather stations

  • Support for maximum 3 additional indoor modules

  • Smart update system that follows Netatmo weather station cloud updates

  • Completely independent installation does not require any more Weather State VD or Main scene FTBE

  • Netatmo weather station measurements can be shown on Weather State VD and HC2 web GUI and mobile applications by means of Weather State VD and Weather

    provider plugin

  • VD has built in multi-language support with 27 languages included (see APPENDIX 1 for the list). VD can use HC selected language or user can select any other available

    language.

  • Easy setup for VD icons (on UHASTM compatible version is this even easier)

  • Global variables are automatically added, monitored and repaired and does not require user intervention

 

INSTALLATION

Please check provided User Manual and video from @MarcoTorino71:

 

PACKAGE CONTENT

  • Netatmo Main module VD
  • Netatmo Outdoor module VD
  • Netatmo Additional indoor module VD
  • Netatmo Wind sensor VD
  • Netatmo Rain sensor VD
  • Netatmo Weather station scene
  • Set of icons for all VD's and scene
  • User manual EN

 

TERMS AND CONDITIONS

Permission to use, copy, modify and distribute this software and its documentation for educational, research, personal use and non-profit purposes, without fee and without a signed licensing agreement is hereby granted, provided that the copyright notice, with "Terms and conditions" and "Disclaimer" appear in all copies, modifications and distributions. It is strictly forbidden to sell, rent, lease and/or lend this software for profit without prior consent from the Author.

 

DISCLAIMER

This software is provided by copyright owner "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the author and distributor be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Fibar Group S.A. and their employees are not responsible for support of the ABC VD. Please contact the author Sankotronic, on the Fibaro Forum, for any questions or support required.

 

VERSION HISTORY

  • 3.3.1 - Scene code changed to get rain amount for past 3 adn 6 hours to better support Irrigation Control VD. All VD's corrected some translations. Rain gauge VD changed labels content to display last 3 hours rain amount
  • 3.3 - Check below version description or consult User manual for more details
  • 3.2 - Corrected rain sensor code and cleaned some bugs in scene. Indoor modules corrected handling of CO2 measurement, improved updating code.
  • 3.0 – This new version is completely redesigned and made independent. Does not require Main scene FTBE and Weather State VD anymore. Updating is now synced with Netatmo cloud so readings are always up to date.
  • 2.0.2 – Code optimized and resolved some bugs
 

Here is look of the Netatmo Weather set:

2133744657_NetatmoWeatherstationsuite.thumb.png.5ff41148a5091a5a3b2b657b3f7371ad.png

 

Enjoy coding and your new Netatmo weather station suite! :-)

Sankotronic

 

Edited by Sankotronic
Uploaded new version 3.3.1


What's New in Version 3.3.1   See changelog

Released

Changes in version 3.3.1

  • Scene code changed to get rain amount for past 3 and 6 hours to better support Irrigation Control VD

  • In all VD corrected some translations

  • Rain gauge VD changed labels content to show past 3 hours rain amount

 

Upgrade instructions from v3.3 to v3.3.1

  • Please download upgrade package: Netatmo Weather Station suite v3.3.1 standalone upgrade.zip
  • Paste new scene code over the old one. Reenter credentials and station MAC ID and save
  • Paste new main loop code on all VD's. Reenter settings and save

 

Upgrade from v3.2 and older to v3.3.1

  • Remember to save all VD main loop user settings
  • Delete all Netatmo VD's
  • Delete global variables: NetatmoMain and MetatmoWeather - NOTE - it is important to first delete VD's and then global variables because if global variables are deleted before VD's then will be recreated.
  • Install first Netatmo main module VD and reenter settings
  • Install all other VD's as needed (outdoor, additional indoor, rain and wind)
  • Paste scene new code over the old one, reenter settings and save
  • After saving scene Netatmo Weather Station suite should start working.

 

  • Like 22
  • Thanks 10


User Feedback

Recommended Comments



Hi @Sankotronic 

 

I just updated my Netatmo scene to 2.0.2 and started experiencing error;

 

 

[DEBUG] 13:30:52: FALSE START - Netatmo Weather station Integration scene version 2.0.2
[DEBUG] 13:30:52: Start type: 'autostart', selfRun set to: 'false'
[DEBUG] 13:31:00: MANUAL START - Netatmo Weather station Integration scene version 2.0.2
[DEBUG] 13:31:00: ERROR - Global Variable JSON decode failed with error: /usr/share/lua/5.2/json/decode/util.lua:35: unexpected character @ character: 1 0:1 [T] line:
[DEBUG] 13:31:00: T.
[DEBUG] 13:31:00: Scene will abort
[DEBUG] 13:31:00: ERROR - Check contents of Global Variable. wT is not a table.
[DEBUG] 13:31:00: Scene will abort
[DEBUG] 13:31:00: ERROR - wT table is missing a 'netatmo' field.
[DEBUG] 13:31:00: Scene will abort
 

Link to comment
Share on other sites

Guest Sankotronic

Posted

Hi @timppa,

 

Have you installed Weather State VD first? According to debug lines you are missing global variable WeatherState. If you have installed Weather State VD then Save it to recreate this global variable or if there is that global variable in variable panel then delete it so that can be properly recreated. BTW DO NOT use Save button in variable panel since it destroys global variables that contain table values!

 

Link to comment
Share on other sites

Hi @Sankotronic

 

I am new to Fibaro and my HC2 is now running for llittle less than 2 weeks. 

 

I have implemented WeatherState 2.0 and just downloaded "Netatmo Weather Station 2.0.2" ! Thanks for coding everything - really great stuff. 

 

Actually I couldn´t get it to run, but then I changed line 66 from 

local jT                = json.decode(hc:getGlobalValue("HomeTable"));

to 

 

local jT                = json.decode(fibaro:getGlobalValue("HomeTable"));

and that did the magic. 

 

I just thought I drop it here. 

 

Cheers

Frank

 

Link to comment
Share on other sites

Guest Sankotronic

Posted

Hi Frank,

 

thank you for letting me know about that bug. I'm busy with new Main scene FTBE and I also have plan to update weather stuff including Weather State VD, Forecast VD and Netatmo weather scene so stay tuned!

 

I want to bring only the best of the best code and it is time to improve it before Christmas and New year! :-)

Link to comment
Share on other sites

Hi,

I'm new to this forum.

I just tested the 2.02 version of netatmo scene with the new plugins under 4.520. Getting the messages:

image.png.1ed0ce23e9798b236d966175f2734771.png

 

WeatherState is there and contains the value 0 (zero). After deleting WeatherState and starting the scene without the global variable present, the message doesn't change, the variable is not re-created automatically.

 

The netatmo setup is 4 mains, 4 outdoor, 7 indoor, 2 rain, 2 wind. For testing I installed only 1 module for main, outdoor, rain and wind and 2 indoor.

Old HC2 fibaro netatmo plugin is happy with the account data supplied.

Any suggestions?

Edited by XYZ
Link to comment
Share on other sites

Guest Sankotronic

Posted

Hi @XYZ ,

 

This version of Netatmo scene will not work without Weather State VD installed and running since VD is taking care of adding and repairing of global variables that Netatmo scene needs to work properly.

BTW Weather State global variable should hold table of values and not just number as you mentioned.

 

Link to comment
Share on other sites

Hi all!

It looks like it can be nice VD but doesn´t work. Same problems like the others... 

Scene should FIRST get data from Netatmo and then save into variable... WeatherState (global variable) 

setGlobal(WeatherStateName,json.encode(dataFromNetatmoJson))

 

Need to try that :)
 

Link to comment
Share on other sites

Guest Sankotronic

Posted

2 hours ago, Karol said:

Hi all!

It looks like it can be nice VD but doesn´t work. Same problems like the others... 

Scene should FIRST get data from Netatmo and then save into variable... WeatherState (global variable) 

setGlobal(WeatherStateName,json.encode(dataFromNetatmoJson))

 

Need to try that :)
 

 

New major version is on the way. I just have to write User Manual. New version has mentioned problem solved, does not need Weather State & Forecast VD and it's completely independent. So stay tuned! :-)

Link to comment
Share on other sites

Hi, I just imported Weather State WD and installed Netatmo WS 2.0.2 plus associated WD. After small adjustment - correction mentioned by FK1968 - and update with my HC and Netatmo parameters, it works fine. I get full data from Netatmo station. Thanks guys

Link to comment
Share on other sites

Can someone put here working scene script?
I have tried everything you mentioned here but nothing works.
I have also tried create global properties via panel properties but that also didn't work.

Thanks
 

Link to comment
Share on other sites

Guest Sankotronic

Posted

3 hours ago, MartinRone said:

Can someone put here working scene script?
I have tried everything you mentioned here but nothing works.
I have also tried create global properties via panel properties but that also didn't work.

Thanks
 

 

Hi @MartinRone ,

 

Can you provide some details on problem you encountered, maybe a screenshot of the error so I can help you? Comments like "nothing works" and "didn't work" does not tell much and definitely can't help anyone.

 

On 11/22/2018 at 3:22 PM, FK1968 said:

Actually I couldn´t get it to run, but then I changed line 66 from 

local jT                = json.decode(hc:getGlobalValue("HomeTable"));

to 

 

local jT                = json.decode(fibaro:getGlobalValue("HomeTable"));

and that did the magic. 

 

Hi @FK1968 Frank and thank you for pointing this one out.

 

On 12/9/2018 at 12:18 PM, XYZ said:

WeatherState is there and contains the value 0 (zero). After deleting WeatherState and starting the scene without the global variable present, the message doesn't change, the variable is not re-created automatically.

 

The netatmo setup is 4 mains, 4 outdoor, 7 indoor, 2 rain, 2 wind. For testing I installed only 1 module for main, outdoor, rain and wind and 2 indoor.

Old HC2 fibaro netatmo plugin is happy with the account data supplied.

Any suggestions?

 

Hi @XYZ , current version of Netatmo Weather Station scene depends on Weather State VD which adds necessary global variables. If you have deleted Weather State VD and global variables then Netatmo scene will stop working.

 

I do have finished new version that has many improvements. Will publish it as soon as I finish writing user manual. Just to mention that new version of Netatmo Weather Station scene does not require Weather State VD to be installed and also does not require any other scene or VD to be updated. It is completely independent and it updates only when Netatno cloud is updated so readings on Hc2 are always up to date same as on Netatmo original app.

 

 

Link to comment
Share on other sites

Guest Sankotronic

Posted

39 minutes ago, MartinRone said:

I will wait for a new version, when do you think it will be published?

 

I hope to publish it until end of this week. At the moment I'm moving all my work from Fibaro marketplace back to Fibaro forum download section. Market place has too many problems and I like more forum's download section because it has built in versioning and much better counters for viewing and downloads.

 

Stay tuned!

  • Like 1
Link to comment
Share on other sites

8-)  I replaced the old versions with your new ones.  Excellent work...as always.

 

One Question. I did something wrong. For outdoor module the icons change. Indor i get only main icon, no green, yellow etc.

 

Any ideas?

 

 image.png.f842b6b1edbc619434739c2a72169985.pngimage.png.143e433f94ca755d1cf7508e04e83f0e.pngimage.png.9d74ba9547e65750f31a8db017cba04f.png

 

Edited by Meinewenigkeit
Link to comment
Share on other sites

Netatmo Weather station scene ID is missing. Please install scene

Even look like evrything is ok and Main Scene is runnig and geting a right data :) 

 

For me Scene shall create the global variables if doesn't exist and scene shall write to global variables... VD shall only read from variables... This is just mine sugestion... :)

 

Netatmo Weather station scene ID is missing. Please install scene

How to solve it? Any ideas

Edited by Karol
Link to comment
Share on other sites

Guest Sankotronic

Posted

On 3/8/2019 at 11:20 AM, Karol said:

Netatmo Weather station scene ID is missing. Please install scene

Even look like evrything is ok and Main Scene is runnig and geting a right data :) 

 

Hi @Karol ,

 

Just run Netatmo scene manually and it will store it's ID to global variable added by Netatmo indoor base station VD which BTW should be installed first as it is explained in user manual.

 

Link to comment
Share on other sites

I installed 3.0 without any pb. It works since two weeks and I managed to recover CO2 data and drive house VMC

accordingly. Thank you sankotronik and team 

Link to comment
Share on other sites

hello

 

i just installed base module VD

 

what does this error mean ?

 

[DEBUG] 11:29:46: ERROR - Indoor base module not updated recently

 

Christos

 

Sorry RTFM

 

everything is working AFTER setting up the scene ...... Dohhh

 

Thank you very much for this wonderful VD :)

Edited by christos
Link to comment
Share on other sites

This is an awesome vd-scene. Good job! Is there any way to change the individual icons that appear on each station with words such as seen, temp, or other things? Thanks!

Link to comment
Share on other sites

Hi @Sankotronic

 

I have a problem, after putting the VD for indoor base module and outdoor module I've inserted the code for netatmo scene, run it manualy , but the VD don't update and give the error "Netatmo Weather station scene ID is missing. Please install scene" but the scene already exist. Please find attached some printscreens.  Please give me a solution for make it work.Thank you!

Untitled.jpg

Untitled1.jpg

Untitled2.jpg

Link to comment
Share on other sites

Guest Sankotronic

Posted

Hi @dirtyfish ,

 

Netatmo changed time format for fetching rain data. To make it work again open Netatmo Weather station scene and change code line 451:

 

local request_body_rain='access_token='..token..'&device_id='..int_id..'&module_id='..rain_id..'&scale=1hour&type=sum_rain&real_time=true&date_begin='..os.date('!%c',(now-duration))

to look like this:

 

  local request_body_rain='access_token='..token..'&device_id='..int_id..'&module_id='..rain_id..'&scale=1hour&type=sum_rain&real_time=true&date_begin='..now-duration

NOTE that os.date() formatting is removed form request_body_rain

 

Kind regards

Zoran

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...