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

Maximum temperate expected outside


Question

Posted (edited)

I would like to safe the maximum expected outdoor temperature for today and save this in a global variable. How is this possible with LUA?

Edited by bowsertje

Recommended Posts

  • 0
Posted

Please login or register to see this image.

PtAWyL

  • 0
  • Inquirer
  • Posted
    3 minutes ago, 10der said:

    Please login or register to see this image.

    PtAWyL

     

     

    Wow, can you share this?

    • 0
    Posted

    lol

    Please login or register to see this image.

     

    • 0
  • Inquirer
  • Posted
    10 hours ago, 10der said:

    lol

    Please login or register to see this image.

     

    omg that is really stupid from me.

    First line says I need to change SceneId - is that needed?

     

    I works,  but not the condition and for time

     

     

    Please login or register to see this spoiler.

     

    • 0
    Posted (edited)

    my fail - fixed

     

     

    about icons....

    it's very hard, sorry.

     

    1) you should upload icons for

     

            currentIcon = 1023 -- sun
            currentIcon = 1026 -- lightCloud
            currentIcon = 1026 -- partlyCloud
            currentIcon = 1027 -- cloud
            currentIcon = 1027 -- fog
            currentIcon = 1025 -- rain
     

    2) change numers (ids) accordinf to your uploaded pics

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted
    10 hours ago, 10der said:

    my fail - fixed

     

     

    about icons....

    it's very hard, sorry.

     

    1) you should upload icons for

     

            currentIcon = 1023 -- sun
            currentIcon = 1026 -- lightCloud
            currentIcon = 1026 -- partlyCloud
            currentIcon = 1027 -- cloud
            currentIcon = 1027 -- fog
            currentIcon = 1025 -- rain
     

    2) change numers (ids) accordinf to your uploaded pics

    Please login or register to see this attachment.

     

    Condition is still empty ...

    What does exactly for time mean display?

    Currently it is 25-07-2019 23:11 local time

     

     

    Please login or register to see this spoiler.

     

    • 0
    Posted (edited)

    V3

     

    Quote

    Currently it is 25-07-2019 23:11 local time

    forecast for +1h

    ha

    another bug :(

     

    fixed wind direction 

     

     

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted (edited)
    14 minutes ago, 10der said:

    V3

    Please login or register to see this attachment.

    forecast for +1h

    ha

    another bug :(

     

    fixed wind direction 

     

     

    Please login or register to see this attachment.

    Wow thanks, I did upload several icons but where can i see the icon ID so I can change them in the script?

    Edited by bowsertje
    • 0
    Posted

    some minor fixes

     

    Please login or register to see this attachment.

    for example

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted
    3 minutes ago, 10der said:

    some minor fixes

     

    Please login or register to see this attachment.

    for example

    Please login or register to see this link.

    Thanks, just imported V5. Starting to like this VD more and more !

     

    I got myself some really nice icons uploaded already, but how to find out what the icon number/id is so I can integrate them into the VD script?

     

    Please login or register to see this code.

     

    • 0
    Posted

    as i can say before its very hard 

    but ok

     

    trying to make screenshots

    Please login or register to see this spoiler.

     

    select icon

     

    press F12 in chrome

    click arraw

    RODQ3C

     

    point your icon

    4wzFuw

     

    K9hYia

     

    1019 your icon ID!

     

    • 0
  • Inquirer
  • Posted
    10 hours ago, 10der said:

    as i can say before its very hard 

    but ok

     

    trying to make screenshots

     

    Please login or register to see this spoiler.

    Aaha, but there is an easier way of doing that. In your 2nd screenshot right click and select open image on new tab. Now see URL for id.

     

    • Thanks 1
    • 0
    Posted

    Developers always put a damper on things, don't they, @bowsertje ? :)

    • 0
  • Inquirer
  • Posted
    9 hours ago, 10der said:

    Developers always put a damper on things, don't they, @bowsertje ? :)

    Haha, I guess they do... ?

     

    You really helped me get this nice VD, thanks!

    See the result:

     

    Please login or register to see this spoiler.

     

    • 0
    Posted (edited)

    cool!

     

    u r welcome!

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    Also the MaxDayTemp is working really good I guess

    • Poll yr.no every hour (your first script)
    • Created var called 'hotday' (pre defined with yes/no)
    • At 07:25 with scene I ''reset'' var 'hotday' to no
    • At 07:30 I push max temp to var 'MaxDayTemp' (your second script)
    • At 07:35 with scene I check if var MaxDayTemp =>25 and if true I set var 'today' to yes.

    From there on it's really easy to check if it will become a hot day and let my blinds on one side of my home shut down

    • Thanks 1
    • 0
    Posted
    On 7/25/2019 at 10:46 PM, 10der said:

    Please login or register to see this image.

    PtAWyL

    Hi @10der, any chance you have  a vd for the min and max temp for the next 5/7 days?  Looking for this info for ages, but still no luck.

     

    Hope to hear from you.

     

    Rick

    • 0
  • Inquirer
  • Posted
    On 7/26/2019 at 12:01 AM, 10der said:

    cool!

     

    u r welcome!

     

    Please login or register to see this code.

    Since a few days getting this error:

     

    [ERROR] 08:44:35: line 73: Expected value but found invalid token at character 1

     

    What can I do about it? This is line 73:

        local now = os.date("*t", os.time() + 1 * 60 * 60) -- next hour
     

    • 0
    Posted

    some fixes.

    VD + scene

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • Like 1
    • 0
    Posted

    Hi,

     

    why is no temperature displayed in variables?

     

    thanks

    Please login or register to see this attachment.

    Please login or register to see this attachment.

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