Announcement

Collapse
No announcement yet.

weather radar in HSTouch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Well I'm not getting the image to scale properly. also with yr.no plugin it seems to use old radar image, not the new one. But it's not my biggest concern atm. As i have tons of other stuff and customers needing help with other stuff.
    Certified installer for HomeSeer, Control4, KNX and Eaton/xComfort

    Comment


      #32
      The plugin uses the images provided by their api. Once this is updated I will be able to get new images.

      I just checked this api and there's no update yet.

      Comment


        #33
        Originally posted by Toby View Post
        The plugin uses the images provided by their api. Once this is updated I will be able to get new images.

        I just checked this api and there's no update yet.
        Ok so thats the reason fo my radar showing a radar from 31/08
        Certified installer for HomeSeer, Control4, KNX and Eaton/xComfort

        Comment


          #34
          Originally posted by U5tabil View Post
          Ok so thats the reason fo my radar showing a radar from 31/08
          Hmm, Then I misunderstood. That's strange though. There must be some file access restrictions restricting the plugin for overwrite the image file.

          I assume that the image in the actual device is updated?

          what the plugin does after it has downloaded the file to your system is to delete the copy the latest file to the "/images/YR/images/radaranimation_1.gif" file and copy the latest file into this filename.

          the device images is using the unique filenames created /images/YR/images/radaranimation_1_<date + hour>.gif or something similar (not in front of my system at the moment)

          if you look into the folder <HS3 base dir>/html/images/YR/images/ you should find all the latest files downloaded.
          the plugin deletes old files after some days.

          Comment


            #35
            Originally posted by Toby View Post
            Hmm, Then I misunderstood. That's strange though. There must be some file access restrictions restricting the plugin for overwrite the image file.

            I assume that the image in the actual device is updated?

            what the plugin does after it has downloaded the file to your system is to delete the copy the latest file to the "/images/YR/images/radaranimation_1.gif" file and copy the latest file into this filename.

            the device images is using the unique filenames created /images/YR/images/radaranimation_1_<date + hour>.gif or something similar (not in front of my system at the moment)

            if you look into the folder <HS3 base dir>/html/images/YR/images/ you should find all the latest files downloaded.
            the plugin deletes old files after some days.
            Just checked and yes that one shows the right one. but not in HSTouch when using the url you provided earlier.
            Certified installer for HomeSeer, Control4, KNX and Eaton/xComfort

            Comment


              #36
              Originally posted by U5tabil View Post
              Just checked and yes that one shows the right one. but not in HSTouch when using the url you provided earlier.

              It looks like I have no success in providing a workaround as it seems that HStouch is locking the file for editing hence the plugin cannot update the single filename.

              looks like we have to wait for HST to fix the bug in HS touch for android. Sorry!

              One workaround would be to use the direct link from the yr.no API... For west coast of Norway covering Sandnes it would be:

              http://api.yr.no/weatherapi/radar/1....on;size=normal

              Comment


                #37
                Thats ok. you have at least tried. Can i use that api link in HSTouch instead of the link you provided earlier? Should i add it as image or text?
                Certified installer for HomeSeer, Control4, KNX and Eaton/xComfort

                Comment


                  #38
                  You add it as text to get the animation to work, but I think you need to wrap it around some HTML code to set the correct size to it. HSTouch is not optimal when it comes to http content.

                  You could try to change the last part of the url from normal to large to get a bigger image if that's they direction you are looking for to scale.

                  Comment


                    #39
                    I'm not sure how to HTML code this. If you know please tell
                    Certified installer for HomeSeer, Control4, KNX and Eaton/xComfort

                    Comment


                      #40
                      Originally posted by U5tabil View Post
                      I'm not sure how to HTML code this. If you know please tell

                      you would use HTML code like this:
                      Code:
                      <html lang="en"> 
                      <head>
                      <META HTTP-EQUIV=Refresh CONTENT=600>
                      </head> 
                      <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
                      <img src="http://api.yr.no/weatherapi/radar/1.4/?radarsite=southwest_norway;type=reflectivity;content=animation;size=large" height="50%" width="50%"></img>
                      </body>
                      </html>
                      and adjust the height and width to what you need.

                      The HTML file can be stored in the HTML folder of HS3 and referenced in HSTouch. This works well in IE/Firefox - hope it also works for HSTouch...

                      Comment


                        #41
                        Works fine here with generic named files.

                        Here put one in per download of GIF maps in the WeatherXML directory.

                        IE: /html/images/weatherXML/download1gif.html
                        - Pete

                        Auto mator
                        Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                        Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                        HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                        HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                        HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                        X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                        Comment


                          #42
                          Please elaborate on how those files are downloaded.
                          I only get file locked when trying to replace the file...

                          Comment


                            #43
                            I am using weatherXML in Linux here. It is partially dysfunctional at this time but much of it still works fine. The gif file is replaced with every download. No locks on the files.

                            Permissions are set to a regular sudo user / admin HS3 user for Homeseer 3.
                            Attached Files
                            - Pete

                            Auto mator
                            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                            Comment


                              #44
                              That doesn't bring much use to this thread regarding a different plugin.

                              I will discuss with HST to see how they suggest to get around the bug in HSTouch.

                              Comment


                                #45
                                The root problem is still the display of a GIF in HSTouch regardless of the mickey mouse work around that we have to do with whatever plugin displaying a GIF file in HSTouch.

                                I had an old bugzilla ticket open for this and never been acknowledged so I closed it.

                                I did open another bugzilla ticket for it #2953 to help your issue as I gave up on the old one.

                                Bugzilla ticket #2410 question and solution as I read it is:

                                ISSUE:
                                I have been trying to integrate animated gifs into my HSTouch Project. The idea is that when my alarm zones or motion triggers get triggered that an animation will show in HStouch / Android client (1.0.114)
                                I set the status tracking to the correct device. Then I set the Status Images and match on value. For the faulted value I then configure an animated gif that I have prepared.
                                I then configure the IsVideo to True and then deploy to my android client.
                                The result in this case is no image being displayed and certainly no animation. Within the windows client it does appear and is animated however it doesn't loop. it just plays it 5 frames and that's it.
                                I am not sure if it makes a difference or not but I do have the alpha set at 200. Interestingly enough when i set the alpha to 255 the animation plays in the designer view (any other setting it doesn't play)


                                ANSWER
                                I did a little research and Android does not support animated Gifs natively. There are some workarounds, but none appear reliable.
                                What would work is if you display the image in a webview as the web browser can display them. Might be a bit tricky to get the image you want to appear in a webview element.


                                as it seems that HStouch is locking the file for editing hence the plugin cannot update the single filename.
                                The RW issue would be another bugzilla ticket / plugin issue unrelated to the display of the GIF/html file. This could be an issue with the android touch screen client. It really though shouldn't matter what client is being used anyways.

                                I've give your plugin a try in HS3 running on Ubuntu a try here and see how it works for me and HSTouch in Wintel or Android.

                                Sep-10 7:20:59 PM Plug-In Finished initializing plug-in YR Weather
                                Sep-10 7:20:59 PM Info Plugin YR Weather has connected. IP:127.0.0.1:39764
                                Sep-10 7:20:58 PM Plug-In Interface YR Weather is running as a trial, 30 days remaining.


                                I do see the following when trying to configure the plugin.

                                A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

                                Used this as the base URL - hxxp://www.yr.no/place/Norway/Hordaland/Bergen/Bergen/

                                Tested your gif in HSTouch / Windows worked fine using the device GIF in an image box. Tried the same on my other weather page and it worked fine. Next will try an HS3 client on Android. Note here using Windows touch client v.32. I do not think this worked with Windows touch client v.30.

                                Update 11th of September, 2015 - 0900c

                                I cannot get to the configuration page anymore. Last night I could but it was really slow (up to a minute to get to the page). I see this in the Homeseer 3 logs.

                                Sep-11 9:10:53 AM Error Getting web page from plugin page Weather Config:Object reference not set to an instance of an object Threadpool worker
                                Sep-11 9:10:49 AM Warning Plugin YR Weather is not responding but it is still running, not restarting yet. Threadpool worker
                                Sep-11 9:10:12 AM Error Getting web page from plugin page Weather Config:Object reference not set to an instance of an object Threadpool worker
                                Sep-11 9:09:49 AM Warning Plugin YR Weather is not responding but it is still running, not restarting yet. Threadpool worker
                                Sep-11 9:09:32 AM Error Getting web page from plugin page Weather Config:Object reference not set to an instance of an object
                                A wee bit later saw this (here shut down the plugin and restarted it after I saw this message).

                                CRITICAL: Failed to get InterfaceStatus from YR Weather: Object reference not set to an instance of an object

                                Well the plugin has a mind of it's own (poltergeist).

                                When I shut it down it started a remote connection. See attached.
                                Attached Files
                                Last edited by Pete; September 11, 2015, 11:00 AM.
                                - Pete

                                Auto mator
                                Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                                Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                                HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                                HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                                HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                                X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                                Comment

                                Working...
                                X