|
SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Here's another exception:
Code:
Mon 12/3 10:51:22.048 [AWT-EventQueue-0@59c656] NWS.Station.build: Exception: JSONObject["rawMessage"] not a string. |
#22
|
|||
|
|||
re: Issue #5
Loaded the new code and the current conditions seem to be displaying okay now with one exception (Wind Chill) which I will discuss below.
However it occurred to me that on Saturday when I did all my testing, I had two instances running: the server client and an extender. Could this be a factor? Unfortunately the logs from Saturday have already been overwritten. However I did find this from Sunday evening's log just after restarting the server: Code:
Sun 12/2 19:43:45.454 [Timer-6@a8aa39] NWS.AutoUpdate: Started. Sun 12/2 19:43:45.460 [Timer-6@a8aa39] NWS.Get: About to get https://api.weather.gov/stations/KATX/observations/current Sun 12/2 19:43:45.772 [Timer-6@a8aa39] NWS.Station.build: Exception GETing: https://api.weather.gov/stations/KATX/observations/current Sun 12/2 19:43:45.777 [Timer-6@a8aa39] NWS.Get: About to get https://api.weather.gov/gridpoints/SEW/117,58 Sun 12/2 19:43:46.757 [Timer-6@a8aa39] NWS.Get: Results (spaces stripped) = (rest of line deleted - too long) Sun 12/2 19:43:46.780 [Timer-6@a8aa39] NWS.AutoUpdate: Updated Station and GridPoint. Sun 12/2 19:43:46.785 [Timer-6@a8aa39] NWS.AutoUpdate: Done. Next question is where did KATX come from? My local station should be KSEA. The only occurrence of KATX prior to that line is here - 15 min prior: Code:
Sun 12/2 19:28:42.768 [ReProcessHook@5209fe] NWS.Get: Results (spaces stripped) ={"@context":["https://raw.githubusercontent.com/geojson/geojson-ld/master/contexts/geojson-base.jsonld",{"wx":"https://api.weather.gov/ontology#","s":"https://schema.org/","geo":"http://www.opengis.net/ont/geosparql#","unit":"http://codes.wmo.int/common/unit/","@vocab":"https://api.weather.gov/ontology#","geometry":{"@id":"s:GeoCoordinates","@type":"geo:wktLiteral"},"city":"s:addressLocality","state":"s:addressRegion","distance":{"@id":"s:Distance","@type":"s:QuantitativeValue"},"bearing":{"@type":"s:QuantitativeValue"},"value":{"@id":"s:value"},"unitCode":{"@id":"s:unitCode","@type":"@id"},"forecastOffice":{"@type":"@id"},"forecastGridData":{"@type":"@id"},"publicZone":{"@type":"@id"},"county":{"@type":"@id"}}],"id":"https://api.weather.gov/points/47.389,-122.4607","type":"Feature","geometry":{"type":"Point","coordinates":[-122.4607,47.389000000000003]},"properties":{"@id":"https://api.weather.gov/points/47.389,-122.4607","@type":"wx:Point","cwa":"SEW","forecastOffice":"https://api.weather.gov/offices/SEW","gridX":117,"gridY":58,"forecast":"https://api.weather.gov/gridpoints/SEW/117,58/forecast","forecastHourly":"https://api.weather.gov/gridpoints/SEW/117,58/forecast/hourly","forecastGridData":"https://api.weather.gov/gridpoints/SEW/117,58","observationStations":"https://api.weather.gov/gridpoints/SEW/117,58/stations","relativeLocation":{"type":"Feature","geometry":{"type":"Point","coordinates":[-122.455105,47.411191000000002]},"properties":{"city":"Vashon","state":"WA","distance":{"value":2503.2053750593873,"unitCode":"unit:m"},"bearing":{"value":189,"unitCode":"unit:degrees_true"}}},"forecastZone":"https://api.weather.gov/zones/forecast/WAZ558","county":"https://api.weather.gov/zones/county/WAC033","fireWeatherZone":"https://api.weather.gov/zones/fire/WAZ654","timeZone":"America/Los_Angeles","radarStation":"KATX"}} Now I did quite a bit trying out different zip codes, just to see what station would be selected. And the problem continued on after restarting Sunday evening, but it stopped after updating the plugin today and restarting the server. I've started up an extender now and all is still okay. But on Saturday I was doing doing a lot of different things as I was trying various configurations and a lot of different zip codes. I haven't been doing that today. I also have a second extender, but that one was not in use for the Saturday session. [edit 9PM PT] What looked earlier in the day as a static reading has been gradually dropping all evening as the temperature dropped. Wind has remained fairly constant. But the Wind Chill on their web page does not show until it hits 32 degrees. I think they are blanking it out for anything above that. Meanwhile on my two displays the numbers continue to show different numbers - 28 & 32 now, but for hours they were 1 degree apart - go figure. Don't waste your time on it for now and ignore the below on Wind Chill. On Wind Chill (Feels Like) I have noticed on the KSEA site XML that the variable for it is not always included. When wind speed and/or temperature fall below certain points wind chill is not valid by definition. But from what I am seeing, I think they may have their own rules. There are values being displayed that are clearly incorrect (i.e. 32, 33,35) with a temperature of 44 and wind at 11mph. All other conditions are correct. I am not sure what is or is not being returned to your plugin. You may want to do some null checking. [edit 9PM PT] I think the API is delivering "Only hourly & specials" only, not "5 minute" updates. They do show 5 minute if you select it on their web page, but not by default. It auto switches back to hourly quickly on lack of activity. So I believe your timestamps are accurate. There were some specials yesterday that must have given me the false impression. Ignore the below. One other request: update the Date/Timestamp for Current Conditions on each update to it. Right now this is only getting updated on your "big" update. From the numbers being displayed I can see it is picking up some of the 5 min interval updates. The main update seems to occur at :53 after the hour. [Edit 9PM PT] Nothing further on this. Will continue trying different things to see if I can trigger the problem (issue #5) again. Last edited by kegler; 12-03-2018 at 11:53 PM. Reason: Updated Information |
#23
|
|||
|
|||
Quote:
--John |
#24
|
||||
|
||||
I'm home sick today but will try to take a look at these issues.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#25
|
||||
|
||||
Quote:
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#26
|
||||
|
||||
No, I think this is related to the previous item.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#27
|
||||
|
||||
This one is a problem. I love APIs that are not consistent
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#28
|
||||
|
||||
@kegler
Station code KATX is not valid, but our closest radar station is ATX. Hmmm. I've saved the logs. This is a problem. Can you send me the logs? I'm particularly interested in seeing the JSON that was returned from a line that looks like this: "https://api.weather.gov/points/LAT,LNG/stations" where LAT and LNG are the latitude and longitude for the location. That API is supposed to return the closest observation stations for that particular LAT,LNG. Regarding two extenders - That should not matter. Regarding updating the timestamp - For now I think I will change the code to do the "big update" every time.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. Last edited by tmiranda; 12-04-2018 at 08:44 AM. |
#29
|
||||
|
||||
You're making good progress on this, Tom. You should stay home more often.
|
#30
|
||||
|
||||
The market went down 799 points, I should not stay home so often.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#31
|
||||
|
||||
This kind of thing was the source of a lot of custom deserializers I had to write for the Schedules Direct EPG code.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#32
|
|||
|
|||
Quote:
Quote:
--John |
#33
|
||||
|
||||
I've added support for sunrise/sunset information. Still looking at some radar options.
I've not been able to reproduce "error 5 and error 8". It would be helpful if somebody sent a log.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#34
|
||||
|
||||
Version 0.12
I just updated the plugin in the repository. Here is the changelog, note that some changes were in the JAR and STVi I posted a few days back, some are not.
When you upgrade the ZipCodes file will be overwritten. Backup your existing file if you made changes. - Added ability to refresh the forecast data. - Added sunrise and sunset info. - Added Left as back on Forecast menus. - Added additional error checking when parsing JSON. - Cleaned up the configuration menu to look better if no ZipCode has been configured. - Fixed typo with "Max/Min" temperature. - Fixed Option menu selection. - Fixed bug that caused "null" to be displayed on config menu if not configured. - Fixed a bug that caused temperatures reported in C to be incorrectly converted to F. - Fixed NPE entering seyup menu for the first time.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#35
|
|||
|
|||
Quote:
Shows why bugs can be so difficult to find sometimes ... They are hiding in plain sight. |
#36
|
|||
|
|||
Still trying to find a way to trigger issue #5. To do that I need to reset the plugin to a "not configured" condition.
I removed the two lines (nws_location & nws_units) from SageClient.properties and the same for the extenders in the SageTV\clients folder. This appears to work, but ... just to be sure ... Anything else need to be changed/deleted? |
#37
|
||||
|
||||
Quote:
Not like I expected this to be the last update.... I'm still looking for radar image sources. I'll probably turn my attention back to the Trakt plugin to get that one done.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#38
|
|||
|
|||
Thanks, I appreciate the weather plugin!
|
#39
|
||||
|
||||
I just saw the case on my machine where everything goes to zero and null. I will try to get a fix out.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#40
|
||||
|
||||
Version 0.13
Version 0.13 is now in the repository. It fixes the "Max/Mix" typo and it fixes the issue (I hope) where occasionally it reports all zero and null values.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Weird weather on Weather Underground | sacrament055 | Gemstone for v7 | 13 | 05-27-2013 10:13 AM |
The Weather Channel eliminating free weather data feed | iolaus | SageTV Software | 69 | 08-26-2012 11:17 AM |
Downloaded Google Weather Update, No weather? | symgryph | SageTV v7 Customizations | 3 | 11-18-2011 08:55 AM |
Using Weather Network as a feed for Canadian Weather | Fastrack | SageTV Customizations | 2 | 03-22-2009 09:47 PM |
weather.com weather extractor for mlbdude2 1.8.7 (v1.0.1 / July 6) | nielm | SageTV Customizations | 105 | 10-08-2004 06:54 AM |