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}"


jompa68
 Share

Question

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.

Link to comment
Share on other sites

Recommended Posts

  • 0

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

Only changed to id psw... Etc

Link to comment
Share on other sites

  • 0

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);

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 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.

    Link to comment
    Share on other sites

    • 0

    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

    Link to comment
    Share on other sites

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

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • First post updated!

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0

    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
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 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. 

    Link to comment
    Share on other sites

    • 0

    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.

     

    Link to comment
    Share on other sites

    • 0

    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.

    Link to comment
    Share on other sites

    • 0
    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

    Link to comment
    Share on other sites

    • 0

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

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    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.

    Link to comment
    Share on other sites

    • 0

     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
    Link to comment
    Share on other sites

    • 0

    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
    Link to comment
    Share on other sites

    • 0
    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 ?

    Link to comment
    Share on other sites

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

    • Like 1
    Link to comment
    Share on other sites

    • 0
    2 hours ago, jompa68 said:

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

     

    That would be awesome! thx, appreciate the help.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 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
    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
    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.

     Share

    ×
    ×
    • Create New...