Announcement

Collapse
No announcement yet.

Plugin Disconnects and Re-connects, Strange Text

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Plugin Disconnects and Re-connects, Strange Text

    Plugin disconnects and then there is a bunch of strange text that appears inside the device grid view box.

    Click image for larger version  Name:	pic1.png Views:	2 Size:	74.0 KB ID:	1470392

    This is the only thing I see in the log.

    Code:
    [0] : https://us1.locationiq.com/v1/revers...zoom=18&key=pk: {"place_id":"236877081","licence":"https:\/\/locationiq.com\/attribution","osm_type":"relation","osm_id":"10328473","lat" :"40.1634","lon":"104.81","display_name":"Bayan Nuorigong, Alxa Left Banner, Alxa League, Inner Mongolia, China","address":{"city":"Bayan Nuorigong","county":"Alxa Left Banner","state_district":"Alxa League","state":"Inner Mongolia","country":"China","country_code":"cn"},"boundingbo x":["38.7295183","40.5045445","104.0444754","105.2565932"]} 
    
    
    4/22/2021 12:23:47 PM 
    AK Weather 
    Trace 
    [0] : ExecuteAsync (IQAddress) [https://us1.locationiq.com/v1/revers...zoom=18&key=pk] 
    
    
    4/22/2021 12:23:37 PM 
    HomeSeer 
    Plug-In 
    Finished initializing plug-in AK Weather 

    #2
    I disabled and enabled the PI again and this is what came up in the log. Looks somewhat the same as above.

    Code:
    Plugin AK Weather with ID: AKWeather and Instance: has disconnected
    
    4/22/2021 8:24:48 PM 
    AK Weather 
    Trace 
    [0] : https://us1.locationiq.com/v1/revers...zoom=18&key=pk: {"place_id":236877081,"licence":"https:\/\/locationiq.com\/attribution","osm_type":"relation","osm_id":10328473,"lat":" 40.1634","lon":"104.81","display_name":"Bayan Nuorigong, Alxa Left Banner, Alxa League, Inner Mongolia, China","address":{"city":"Bayan Nuorigong","county":"Alxa Left Banner","state_district":"Alxa League","state":"Inner Mongolia","country":"China","country_code":"cn"},"boundingbo x":["38.7295183","40.5045445","104.0444754","105.2565932"]} 
    
    
    4/22/2021 8:24:47 PM 
    AK Weather 
    Trace 
    [0] : ExecuteAsync (IQAddress) [https://us1.locationiq.com/v1/revers...zoom=18&key=pk] 
    
    
    4/22/2021 8:24:37 PM 
    HomeSeer 
    Starting Plug-In 
    Plugin AK Weather started successfully in 139 milliseconds 
    
    
    4/22/2021 8:24:37 PM 
    AK Weather 
    Info 
    4/22/2021 8:24:37 PM AK Weather ver. 4.0.0.2 (4.0.1.12) 
    
    
    4/22/2021 8:24:37 PM 
    HomeSeer 
    Starting Plug-In 
    Initializing plugin AK Weather ... 
    
    
    4/22/2021 8:24:36 PM 
    HomeSeer 
    Starting Plug-In 
    AK Weather loaded in 15108 milliseconds 
    
    
    4/22/2021 8:24:22 PM 
    HomeSeer 
    Info 
    Plugin AKWeather with instance AK Weather has connected. IP:127.0.0.1:59138 
    
    
    4/22/2021 8:24:21 PM 
    HomeSeer 
    Warning 
    I/O interface AK Weather is down, executable is not running, restarting ... 
    
    
    4/22/2021 8:24:16 PM 
    HomeSeer 
    Info 
    Plugin AK Weather with ID: AKWeather and Instance: has disconnected 

    Comment


      #3
      When plugin starts first time - it's creating first location device and tries to get the name for this location using coordinates set in HS. It looks like this part works? Are you in Inner Mongolia, China??

      I guess it it exits 24 sec after start - you don't have time to enable log. I'll publish new version with Log enabled by default.

      But can you try to find the whole error message - in the list view, not grid?

      Comment


        #4
        Also, what provider are you using? What coordinates? And what Language?

        Comment


          #5
          Ok, ver 4.0.0.3 - Added more error handling/logging. Now it should log the request/reply and should not crash. But still the problem with unexpected reply will be there, so please post the Logs

          Comment


            #6
            Originally posted by alexbk66 View Post
            Also, what provider are you using? What coordinates? And what Language?
            Lat 39.96243
            Lon -104.806036
            Using Weatherbit
            English

            List View (part of) has wrong info. I looked outside, doesn't look like china.

            Click image for larger version  Name:	pic1.png Views:	0 Size:	28.4 KB ID:	1470413

            Comment


              #7
              Ok, found the problem - you set forecast days to 0? And Weatherbit returns empty JSON object instead of empty array.

              So in ver. 4.0.0.4 I fixed both issues - empty json handling and not actually requesting the forecast for 0 days.


              Comment


                #8
                Originally posted by cowinger View Post

                Lat 39.96243
                Lon -104.806036
                List View (part of) has wrong info. I looked outside, doesn't look like china.
                Regarding Longitude setting - I found a bug in HS when it negates the Longitude in settings (I use by default HS setting)

                I logged a bug, but there's no reply. Please check what's in your \HomeSeer HS4\Config\settings.ini file?
                If you confirm that in settings.ini your Longitude is positive 104.806036 - please log support ticket with HST

                https://github.com/HomeSeer/Plugin-SDK/issues/193

                Then you have two options either set the correct lon in settings.ini (and restart HS), or set correct lon in the plugin location setting.

                Comment


                  #9
                  alexbk66 Changed Settings.ini. Rebooted HS. Info inside Grid View box gone and now shows temp and clouds. Time in () shows 48 min. Setting in PI set to every 15 min. If you press POLL it just adds time to what was there. Here is log now. I took out my city wherever it was showing.

                  EDIT: The time in () has fixed itself and now shows 15 min. Disregard above.

                  EDIT 2: The error below occurs every 15 min. which correlates to the Poll interval.

                  Code:
                  4/23/2021 7:37:38 AM 
                  AK Weather 
                  Warning 
                  [3703] CTRL: CheckStatusGraphicExists[Scattered clouds (802) /images/AKWeather/Weatherbit/c02n.png] : [Scattered Clouds (802) /images/AKWeather/Weatherbit/c02n.png] 
                  
                  
                  4/23/2021 7:37:38 AM 
                  AK Weather 
                  Warning 
                  [3702] CO: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[HSPI_AKWeather.Providers.Weatherbit+DatumFore]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'data', line 1, position 10. 
                  
                  
                  4/23/2021 7:37:38 AM 
                  AK Weather 
                  Warning 
                  [3702] CO: ExecuteAsync (WeatherbitForecast) [/forecast/daily?key=485d62ee28c14c85a52862d5e63aeacb&lang=en&units=I&l at=39.96243&lon=-104.806036&days=0] response: {"data":{},"city_name":"took out","lon":-104.81,"timezone":"America\/Denver","lat":39.96,"country_code":"US","state_code":"CO"} 
                  
                  
                  4/23/2021 7:37:38 AM 
                  AK Weather 
                  Info 
                  [3702] CO: ExecuteAsync (WeatherbitForecast) [/forecast/daily?key=485d62ee28c14c85a52862d5e63aeacb&lang=en&units=I&l at=39.96243&lon=-104.806036&days=0] 
                  
                  
                  4/23/2021 7:37:38 AM 
                  AK Weather 
                  Info 
                  [3702] CO: Weatherbit: Icon 'html/images/AKWeather/Weatherbit/c02n.png' exists: True (url https://www.weatherbit.io/static/img/icons/c02n.png) 
                  
                  
                  4/23/2021 7:37:38 AM 
                  AK Weather 
                  Info 
                  [3702] CO: ExecuteAsync (WeatherbitCurrent) [/current?key=485d62ee28c14c85a52862d5e63aeacb&lang=en&units=I &lat=39.96243&lon=-104.806036] 

                  Comment


                    #10
                    alexbk66 NO ERRORS as above. Just this one and it occurs when you enable the PI and select Settings. Does it a couple times and then goes on to the settings page.

                    EDIT: BTW I put in a support ticket.


                    4/23/2021 8:30:09 AM
                    HomeSeer
                    Error
                    Getting plugin GenPage: There are no pages to convert to HTML

                    Comment


                      #11
                      alexbk66 Can I make some suggestions on select-ability on some of the child devices? You probably have already thought about them. All cosmetic but some like it.

                      Pressure: choose hPa (rel or abs) or Inhg (rel or abs)
                      Precipitation: in or mm
                      Visibility: mi or km
                      Winddir: add degree symbol after number
                      Sunrise and Sunset: 12 hr or 24 hr format

                      One other thing and I will stop. I noticed that the CTRL device that shows the minutes in () goes from 15 to 30 to 45 and back to 15. Is that correct?

                      Comment


                        #12
                        Originally posted by cowinger View Post
                        alexbk66 Can I make some suggestions on select-ability on some of the child devices? You probably have already thought about them. All cosmetic but some like it.

                        One other thing and I will stop. I noticed that the parent device that shows the minutes in () goes from 15 to 30 to 45 and back to 15. Is that correct?
                        Please don't stop

                        I posted ver 4.0.0.5 now.

                        Regarding units - I move to Features Requests

                        Can you please elaborate on "parent device that shows the minutes in () goes from 15 to 30 to 45 and back to 15"?

                        Comment


                          #13
                          Originally posted by alexbk66 View Post

                          Please don't stop

                          I posted ver 4.0.0.5 now.

                          Regarding units - I move to Features Requests

                          Can you please elaborate on "parent device that shows the minutes in () goes from 15 to 30 to 45 and back to 15"?
                          Sorry I should have put that under Feature Request. Thanks for moving.

                          In the list or grid view it shows a minute number in () which is a child device labeled CTRL and this number changes from 15 min to 30 min to 45 min and then back to 15 min. It is the same time frame as the polling setting.

                          EDIT: Also, if you are watching it and say it changes from 15 min to 30 min and if you wait say 5 min and hit the Poll button (grid view) it will add the 5 min to the 30 min and in the () it reads 35 min.

                          Comment


                            #14
                            alexbk66 I upgraded to 4.0.0.5 and the link to settings still has the error once and then goes to the page. Also I had to hit the save at the bottom of the settings page to get it to go from a Exclamation to a hand at the top of the settings page.

                            Comment


                              #15
                              Sorry, still don't get it. May be try ver 4.0.0.5 - I made quite a lot of changes. And may be post some screenshots for illustration...

                              Main change - naming the root devices, i.e. when you rename location (via location setting, or just by renaming location root device) - it should rename all forecast day root devices. And append the date to the name. You have to refresh the page thought, HS doesn't update device names without refresh .

                              I just noticed, looks like I screwed up now the location CTRL status and icon, will fix (probably tomorrow, it's 1:30AM here in AU)

                              Comment

                              Working...
                              X