Posts: 88
Joined: Oct 2014
Reputation:
2
Is there any way to stop the weather alerts from popping up at the bottom of the screen? We're entering winter storm warning season and just in the last week, the pop-up has been making me crazy. I looked for the control for it but can't find anything. Maybe for the future, just add an exclamation point by the clock when there's weather alerts? Just a thought. Thanks!
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
Which weather service provider are you using? I've never even seen one of these alerts.
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
I think it's probably something the script is doing. I personally use Open Weather Extended.
Posts: 88
Joined: Oct 2014
Reputation:
2
2015-11-21, 23:00
(This post was last modified: 2015-11-22, 06:54 by SMB-IL.)
OK, will check it out. Thanks!
ETA: It was the script. I took the RSS references out and the pop up is gone, while the Weather Alert still shows on the Weather screen where it belongs. Thanks again!
Posts: 88
Joined: Oct 2014
Reputation:
2
You should use Text Wrangler to edit the default.py file in /Users/your.computer.name/Library/Application Support/Kodi/addons/weather.wunderground-personal_api/
At Line 532 or so, starts the following code. REM out the lines I have marked below in BOLD RED and you should be good to go -- you should just be able to copy/paste from below. I don't remember doing anything else to make them disappear from the home screen. Let me know if it works. Good luck!
# alert properties
set_property('Alerts.IsFetched', 'true')
if str(data['alerts']) != '[]':
rss = ''
alerts = ''
for count, item in enumerate(data['alerts']):
description = recode(item['description']) # workaround: wunderground provides a corrupt alerts message
message = recode(item['message']) # workaround: wunderground provides a corrupt alerts message
set_property('Alerts.%i.Description' % (count+1), description)
set_property('Alerts.%i.Message' % (count+1), message)
set_property('Alerts.%i.StartDate' % (count+1), item['date'])
set_property('Alerts.%i.EndDate' % (count+1), item['expires'])
set_property('Alerts.%i.Significance' % (count+1), SEVERITY[item['significance']])
# removed to stop on-screen alerts rss = rss + description.replace('\n','') + ' - '
alerts = alerts + message
# removed to stop on-screen alerts set_property('Alerts.RSS' , rss.rstrip(' - '))
set_property('Alerts' , alerts.rstrip('[CR][CR]'))
set_property('Alerts.Count' , str(count+1))
else:
set_property('Alerts.RSS' , '')
set_property('Alerts' , '')
set_property('Alerts.Count' , '0')
Posts: 88
Joined: Oct 2014
Reputation:
2
That's great! It also confirms that I didn't do anything else to fix it, in case anyone else asks. Glad this worked out. Cheers!