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

QuickApp as a weather provider


Question

Posted

Hello, I created QuickApp as a weather device and everything seems to be working fine. The only issue is that if I assign it as a Weather provider in General, I don't see the values in the UI in top right corner (see attachment). Is it possible to use QuickApp for that? And if so what "extra" needs to be done. At the moment I'm setting Temperature, Humidity, Wind, ConditionCode (3200 hardcoded) and WeatherCondition (unknown hardcoded) properties.

Please login or register to see this attachment.

18 answers to this question

Recommended Posts

  • 0
Posted

Hi

 

i check with OpenWeatherMap and it working for me. I checked it on 5.030 who will be soon released for all users but in 5.021 should work too.

 

Example with OpenWeatherMap you will find on end of this site

Please login or register to see this link.

 

  • 0
  • Inquirer
  • Posted

    Hmm, I tried adding Weather plugin and selecting random temperature sensor and humidity sensor. Still the same. Might be that 5.021 has this broken?

    • 0
    Posted

    but open weathermap is working for you?

    by Weather plugin is not working for me too i will report that

    • 0
    Posted
    16 hours ago, fervefdsv said:

    At the moment I'm Setting ConditionCode (3200 hardcoded) and WeatherCondition (unknown hardcoded) 

     

    3200 is unknown, so the Icon type is ok. So far ok, but in such case other values are not displayed. That probably make sense?, no idea, i would probably still like to see temp/hum/wind even if weather condition is unknown/unavailable

     

    Additionally condition codes in Quick App Waether template is wrong, see below

     

    5 hours ago, A.Socha said:

    I checked it on 5.030 who will be soon released for all users 

     

    from QA template:

    Posible conditions: "unknown", "clear", "rain", "snow", "storm", "cloudy", "fog" 

     

    but from com.fibaro.weather

    <property name="WeatherCondition" type="string" valuesSet="[cloudy,rain,snow,storm,clear,fog,unavailable]"> 

     

    so that already one difference, but it seems both "unknown" and "unavailable" can be used in QA, result is the same, displayed Icon type is "not available".

     

    The QA Weather template have as well wrong condition codes definition, i think "proper" values are:

     

    Please login or register to see this code.

     

    • 0
    Posted

    Hello @A.Socha ,

     

    I must say that all this about weather provider does not work 😡

     

    My HC3 is on latest firmware 5.160.42 and first I installed provided plugin Weather provider and it does not update GUI weather:

    Please login or register to see this image.

    /monthly_2024_06/WeatherconditionGUI.png.724bc3efa86d1b1cd1d28464ee4df6d6.png" />

     

    here is what are measurements on Weather provider:

     

    WeatherconditionHC3provider.png.1d24328edcecea6b8c6dc08281c65b79.png

     

    Then I installed OpenWeatherMap provided on

    Please login or register to see this link.

    and still GUI weather is not updated. here is what openweathermap QA shows:

     

    Weatherconditionopenwmap.png.56b22c2ba8351149a983c47821b8f924.png

     

    BTW - above QA is actually useless, but I wanted to see if there is any LUA code that can be used to update GUI weather same as on mobile app. Of course Yubii Home app is completely missing weather, while Yubii app is showing wrong data same as GUI in the browser 🤪

     

    My questions are:

     

    1) Is it possible to make some really working weather provider QA and use it to update GUI weather?

    2) Where I can select default weather provider if more than one is installed?

    3) If on both previous questions answers are negative then when do you plan to improve support for weather providers?

     

     

    • 0
    Posted

    Hi @A.Socha ,

     

    I try to find what weather condition codes are available on HC3, but none of the searches of knowledge base came up with answer.

     

    Is there any place I can find this codes? I need them to write really useful and working Weather providers for HC3 with some of the most popular weather services as I did for HC2. Can you help me with this? Maybe you can provide me also with SSH access to my HC3 so I can find some things by myself? (this last one you can answer to PM :-) )

     

    • 0
    Posted (edited)
    1 hour ago, Sankotronic said:

    Is there any place I can find this codes?


    Some time ago I have found these:

     

    (The picture the top colomn) 

     

     

    Edited by SmartHomeEddy
    • Thanks 1
    • 0
    Posted

    Hi @SmartHomeEddy ,

     

    Thank you for the list of Fibaro HC3 weather codes and icons. Still, I'm curious from where or who did you get this information?

     

    Reason I'm asking is that I have invested tonnes of time investigating HC2 to be able to make UHAS and I was just hoping that with HC3 will be at least a bit better situation. But now after few years I can see that situation with HC3 is even worse, Fibaro is not providing anything, but some very basic information and we again have to go through 'try & fail' struggle to make some very nice quick apps which in return can bring more users to Fibaro family.

    • 0
    Posted

     

    Well, the HC3 has more features so there is more stuff undocumented I guess 😕 

    It's not worse, just kind of the same in my opinion, e.g. they are not prioritising developers being able to do great QAs... and it's not just that they are currently  busy... this has been the case the 10+ years I've had the system(s)... it's just not part of their DNA, as opposed to someone  like HAS... but we already had this discussion earlier...

    Another issue for the HC3 is that the events from RefreshstateSubscriber is not documentet either...

    Many of the /api/* is vaguely documentet with swagger etc... (or not documentet at all...)

     

     

     

    • 0
    Posted
    1 hour ago, Sankotronic said:

    Still, I'm curious from where or who did you get this information?

     

    I think I got it from the page jgab mentioned, but apparently I have found some more. I did try everyone of them, to get the corresponding icon. 

    • 0
    Posted

    So, I believe this being the underlying source - at least the codes seems to align

    Please login or register to see this link.

     

    • 0
    Posted
    14 hours ago, Sankotronic said:

    My questions are:

     

    1) Is it possible to make some really working weather provider QA and use it to update GUI weather?

    2) Where I can select default weather provider if more than one is installed?

     

     

    1) I guess nobody knows.... :-)

    2) There is a weatherProvider id in /api/home that is set to the YR plugin deviceId for me - can probably be set to another QA id...

    like api.put("/home",{weatherProvider=xyz})

    • Thanks 1
    • 0
    Posted

    Hi @jgab ,

     

    Thanks! Now when I read my first question... 😂🤣

     

    I can't believe that HC3 is missing selection of weather provider under the General settings and HC2 has it since the beginning of the existence :-P

    • 0
    Posted (edited)
    1 hour ago, Sankotronic said:

    Hi @jgab ,

     

    Thanks! Now when I read my first question... 😂🤣

     

    I can't believe that HC3 is missing selection of weather provider under the General settings and HC2 has it since the beginning of the existence :-P

    So, the question is WHO sets it?

    Does YR plugin set itself as the /home/weatherProvider at startup? (maybe)

    or the system anytime a com.fibaro.weatherProvder is installed (probably not)

    or is it hardcoded for YR at a reset of the HC3? (maybe)

     

    another aspect is that YR plugin will continue to update the weather data even if there is another QA provider in the system,

    So YR should be uninstalled then.

    Edited by jgab
    • 0
    Posted

    You can select the weather provider in the HC3

    • Thanks 1
    • 0
    Posted
    3 minutes ago, SmartHomeEddy said:

    You can select the weather provider in the HC3

    Yes it's under Devices / Main Devices

    ...just found it :-) 

    • Thanks 1
    • 0
    Posted

    They moved it some time ago, somehow I also need to search for it where is went. 😄

    • 0
    Posted

    I'm still HC2 user and when I look for something on HC3 I expect it to be on similar place. Now when you mention it I found it too :-D

     

    THANK YOU! 🙏❤️  I'm busy with making some of the weather providers like OpenWeather, Wunderground, WeatherBit etc. and this is MUST have. Still, I wish Fibaro is the main source of information for developers.

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