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


  • 0

WUWeather scene - version = "{3.0.5}"


Question

Posted

Fetch data from wunderground.com, send morning and afternoon forecast to your smartphone using Fibaro app, Telegram or Pushover.

Data from wunderground.com can be from a PersonalWeatherStation(PWS) or nearest LocationID(LOCID)

 

Please login or register to see this attachment.

 

Example of forecast and pushoptions to use. 1'st value is smartphoneID, 2'nd value is morning forecast, 3'rd is afternoon forecast, 4'th is pushoption

Please login or register to see this code.

Sending as Pushover message requires an own scene that monitors Pushover variable, read about it here: 

Please login or register to see this link.

 

All important keys like API keys, tokens etc will be saved to variable panel. 

 

Supports many languages (EN, FR, SW, PL, NL, DE, NO, RO, CZ, GR, PT, RU (default is en))

 

Complete lua code (save in a new scene)

Please login or register to see this code.

Recommended Posts

  • 0
Posted

Yep don't know why. Cound 188 over 188 ()

Only changed to id psw... Etc

  • 0
Posted

Hmm i don't have that error and the last ")" is there

On line 606 it reads: 

fibaro:call(WU.selfId , "setProperty", "ui.lblFcst.value", WU.translation[WU.language]["Forecast"].." "..fcstday2.." - "fcst2_mobile);

 

it should read:

fibaro:call(WU.selfId , "setProperty", "ui.lblFcst.value", WU.translation[WU.language]["Forecast"].." "..fcstday2.." - "..fcst2_mobile);

  • 0
  • Inquirer
  • Posted

    On line 606 it reads: 

    fibaro:call(WU.selfId , "setProperty", "ui.lblFcst.value", WU.translation[WU.language]["Forecast"].." "..fcstday2.." - "fcst2_mobile);

     

    it should read:

    fibaro:call(WU.selfId , "setProperty", "ui.lblFcst.value", WU.translation[WU.language]["Forecast"].." "..fcstday2.." - "..fcst2_mobile);

     

    You are absolute right my friend, corrected first post now.

    • 0
    Posted

    That did the trick. nice

    however, it woud be nice if the VD on the phone give the complete forecast of today

    now it cuts of

    • 0
  • Inquirer
  • Posted

    Lomg forecast is not possible, text will go over next label.

    • 0
  • Inquirer
  • Posted

    First post updated!

    Please login or register to see this code.

    • 0
    Posted

    Hello Jompa,

     

    With the last 2 versions I don't get a telegram message anymore. (Did not have to time before to test earlier) 

    I put version 240 back in and the telegram is send again.

    with 305 no more. 

     

    Also deleted the globals of telegram.

    run scene again just to be sure but no luck.

    Don't know where to look in the code maybe you can help me out

     

    Please login or register to see this code.

     

    • Like 1
    • 0
  • Inquirer
  • Posted
    1 hour ago, D-Vine said:

    Don't know where to look in the code maybe you can help me out

    I will check and point out what you have miss or setup wrong. I run 3.0.5 myself with Telegram activated. 

    • 0
    Posted

    hi Jompa,

     

    Tonight got the telegram message again.  Maybe I tested it to fast (update setting on 30 min.)

    Think the delete globals and run the scene new is the solution.

    Tomorrow I do a last check.

     

    • 0
    Posted

    I am trying to get this working, but I get an error:

     

    It concerns the line 520: local http = net.HTTPClient()

    Please login or register to see this attachment.

    • 0
    Posted

    Never mind, got it working. LUA code copied to scene instead of main loop of VD. Sorry

    • 0
    Posted
    On 7/18/2016 at 3:18 PM, jompa68 said:

    http://127.0.0.1:11111/api/

    Btw this eq with api.get api.post api.put

    • 0
    Posted

    I get this error every few hours and the script stops. What is going wrong here?

    Please login or register to see this attachment.

    • 0
    Posted

    It seems that WU has stopped their API. Can anybody confirm this also?

    I get an error: "this key is not valid due to exceeding rate plan"

     

    I regenerated a new key, but still not working.

    • 0
    Posted (edited)

     hi all,

     

    I confused what is the lua code with the newest version.

    and     WU.APIkey = "14eaffxxxxxxxxxxxxxx"  --Put your WU api key here       (what does WU api  mean ?)

     

    thanks

     

     

    Edited by malitan
    • 0
    Posted (edited)

    WU API = Wunderground Application programming interface

     

    You need to register to get an API key, but I am afraid WU does not provide any API's anymore

    Edited by Rikbast
    • 0
    Posted
    20 hours ago, Rikbast said:

    WU API = Wunderground Application programming interface

     

    You need to register to get an API key, but I am afraid WU does not provide any API's anymore

     

    What should we do ? is there another provider ?

    • 0
  • Inquirer
  • Posted

    I will do an update of this to support other providers.

    • Like 1
    • 0
    Posted
    2 hours ago, jompa68 said:

    I will do an update of this to support other providers.

     

    That would be awesome! thx, appreciate the help.

     

    • 0
  • Inquirer
  • Posted (edited)
    On 3/7/2019 at 12:34 PM, Rikbast said:

     

    That would be awesome! thx, appreciate the help.

     

    Started to create a scene that supports OpenWeatherMap

    When completed scene will fill a VD with all fetched data from OpenWeatherMap API

     

    Still want to have possibility to send forecast as push or telegram?

     

    Edited by jompa68

    Join the conversation

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

    Guest
    Answer this question...

    ×   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...