Posts: 3,650
Joined: Sep 2009
Reputation:
121
(Happy to look at logs and/or try your location here but but busy this weekend so might take a few days).
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.
Posts: 131
Joined: Apr 2017
Reputation:
1
haha... It just came back last night. No reason or change just started working again. This seems to be the error. from the log
2022-02-04 18:04:36.252 T:6439 INFO <general>: ### Oz Weather 2.0.4 - Starting...
2022-02-04 18:04:36.253 T:6439 INFO <general>: ### Oz Weather 2.0.4 - Kodi Version: 19.3
2022-02-04 18:04:36.253 T:6439 INFO <general>: ### Oz Weather 2.0.4 - Addon arguments: ['/home/osmc/.kodi/addons/weather.ozweather/default.py', '1']
2022-02-04 18:04:36.987 T:14509 INFO <CUPnPServer[osmc]>: Received Browse DirectChildren request for object 'musicdb://artists/171/53/1/?albumartistsonly=false&albumid=53&artistid=171&discid=1', with sort criteria
2022-02-04 18:04:38.089 T:14500 INFO <CUPnPServer[osmc]>: Received Browse DirectChildren request for object 'musicdb://artists/171/53/2/?albumartistsonly=false&albumid=53&artistid=171&discid=2', with sort criteria
2022-02-04 18:04:38.159 T:6439 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/weather.ozweather/default.py", line 11, in <module>
ozweather.run(sys.argv)
File "/home/osmc/.kodi/addons/weather.ozweather/resources/lib/ozweather.py", line 29, in run
get_weather()
File "/home/osmc/.kodi/addons/weather.ozweather/resources/lib/forecast.py", line 242, in get_weather
forecast(geohash, radar)
File "/home/osmc/.kodi/addons/weather.ozweather/resources/lib/forecast.py", line 155, in forecast
oldest_file = list_of_loop_files[0]
IndexError: list index out of range
-->End of Python script error report<--
Posts: 3,650
Joined: Sep 2009
Reputation:
121
Just the result of the BOM not supplying anything....a temp. glitch clearly.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.
Posts: 131
Joined: Apr 2017
Reputation:
1
Yes temporary but maybe the addon should handle that case a bit more gracefully?
Posts: 3,650
Joined: Sep 2009
Reputation:
121
Yes, for sure, but it's also fair to say it's hard to plan for failure conditions I've never seen. That is - I can add another guard in this spot (and have guards in most others already) - but quite possible, even if it hops over this bit, if the BOM station is severely stuffed for a bit, it will choke on something else still. If you see that, please continue to post logs (much better if full logs, too)...
(the fix has already been submitted to the Kodi repo...)
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.
Posts: 3,650
Joined: Sep 2009
Reputation:
121
The BOM does fail in a large variety of ways - for example, my location (Ascot Vale, VIC) - it is currently only returning 6 days of the 7 day forecast (i.e. to Saturday), but all my other locations are returning the normal 7 days (to Sunday). For OzWeather the result is a slightly unattractive missing bit of data for that forecast row, but otherwise remains functional. In general I aim to make it not fall over/error out if things are missing, so the reports are welcome. But given the entire 'API' is unofficial...pretty hard to predict the many possible failures (or data variations that will come back for that matter - 95% of the time they are quite predictable but then there will be the odd moment, somewhere in Aus., where someone in the BOM decided to get creative with the weather short codes, or the forecast text or whatever...it's an odd operation, the BOM!).
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.
Posts: 131
Joined: Apr 2017
Reputation:
1
Odd indeed. I regularly find the day 6 (or is it 7) goes missing but Kodi is handling it ok as you say. It's the observation for the current day not the forecast that seems to have failed and not be handled. It's rare for sure.
Posts: 1
Joined: Mar 2022
Reputation:
1
Just created a Kodi forum account, to say what a great add-on OZW is. Running on a now obsolete Vodafone TV android 9 box. The skin patcher works fine to display Radar maps. Thank you
Posts: 96
Joined: Jul 2015
Reputation:
4
2022-04-19, 11:12
(This post was last modified: 2022-04-19, 11:19 by benrita.)
Have just installed OZ weather in android kodi and working great except for season showing "spring", here in Bonville NSW it is "autumn".
Region is set to Australia in settings, am I missing something?
Thanks
Edit: Sorry just realised it's my Aeon skin
Posts: 3,650
Joined: Sep 2009
Reputation:
121
Oz Weather doesn't do anything about seasons. Sounds like dinner Kodi thing? No idea really. Can you post a screenshot?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.
Posts: 96
Joined: Jul 2015
Reputation:
4
Sorry bossanova8o8 just edited my post above, it was my Aeon skin so changed back to Eustary and all good.
Thank you
Posts: 14
Joined: Aug 2020
Reputation:
1
Just recently discovered this addon and I like it very much. I've read some older comments about the possibility of preventing Location ID codes being displayed, which I would like very much, and I also read bossanova808's reluctance to do that for debugging reasons which is understandable. Just wondering if it's possible to remove it for the Kodi home screen at least? With my Confluence Skin I select to display weather info in the top left corner of my home page and it shows the Location, State, Postcode and BOM Location ID number there, which in not really desirable. It would be cool if it could just show the Location name like it does in the Settings panel where you can cycle through locations.