Kodi Community Forum
Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155)
+---- Thread: Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support (/showthread.php?tid=116905)



RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-04

Is it possible to have the extension for Radar etc when running CoreELEC (Matrix 19.3) when your OS is read-only?  If so what is the procedure?

TIA


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-04

@gregeeh

It's possible, just a bit more fiddly.  & depends on the skin you use.

If you use the default, Estuary, then I guess that skin lives in an unwriteable area.  Thus you would first need to SSH in to your box and remount the appropriate partition as writeable - something like:

bash:
mount -o remount,rw /storage

(I don't have access to me CE box right this moment, to check which actual folder you'd need to remount, sorry). 

And then run the skin patcher from my repo and it should work fine (you could add the remount command to your autostart.sh or similar if you're not worried about the security implications).

If you use any of the other supported skins, you can just run the skin patcher as is as those live in a write-able area already.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-04

@bossanova808  - Would copying the read-only estuary directory to /storage/.kodi/userdata | renaming the folder | renaming the addon and ID | copying the files to the new estuary directory | selecting the new skin you just created work?


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-04

Yes, it should.  Let me know!  (But then you won't get skin updates as you'll be maintaining your own version).


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-04

Quote:But then you won't get skin updates as you'll be maintaining your own version
A small script plus cron should fix that.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-04

I suppose so but not sure that adds up to easier....your call of course....if you go that path, then don't update MyWeather.xml etc of course.  Good luck!


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-04

(2021-11-04, 03:54)bossanova808 Wrote: I suppose so but not sure that adds up to easier....your call of course....if you go that path, then don't update MyWeather.xml etc of course.  Good luck!

Just copied the estuary directory to the addons directory, inserted your files and the Radar etc is now all working.

So I have a directory containing all your XML files and the script will copy the stock estuary directory to the addons directory and then your files, overwriting the necessary files like MyWeather.xml and VideoFullScreen.xml.  Sound right?


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-04

Yes sounds right.  Just don't overwrite your changed addon.xml when you copy over Estuary each time


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-04

(2021-11-04, 06:37)bossanova808 Wrote: Just don't overwrite your changed addon.xml when you copy over Estuary each time

Thanks, forgot about that.  Smile


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-04

Ya - as have I, many times, with add on dev etc.  It's easy to forget!

Enjoy your radars!  Here in Melbourne they've been fun to watch with all the endless storms/rain lately!!


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-04

Do you know a command that will reload the skin that I can add to the bottom of my script?  I can restart kodi, but just reloading the skin would be better.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-04

You can use kodi_send.py to send an action, I guess (https://github.com/xbmc/xbmc/blob/master/tools/EventClients/Clients/KodiSend/kodi-send.py) ...but I have bound it to a key on my remote (<seven>ReloadSkin()</seven>) so I can do it whenever I want easily...


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-05

(2021-11-04, 07:10)bossanova808 Wrote: You can use kodi_send.py to send an action, I guess (https://github.com/xbmc/xbmc/blob/master/tools/EventClients/Clients/KodiSend/kodi-send.py) ...but I have bound it to a key on my remote (<seven>ReloadSkin()</seven>) so I can do it whenever I want easily...

FWIW - Here's what the skin update script that gets executed daily by cron looks like:

Code:
#!/bin/sh
rsync -a --exclude 'addon.xml' --exclude 'MyWeather.xml' --exclude 'VideoFullScreen.xml' /usr/share/kodi/addons/skin.estuary/ /storage/.kodi/addons/skin.estuary-mod/
/usr/bin/python /usr/bin/kodi-send -a ReloadSkin



RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-11-05

Great - I might add that to the Wiki as another option for folks using CE + Estuary specifically.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - gregeeh - 2021-11-05

Getting the following error when trying to set a WeatherZone Fallback location after entering a postcode.

Error