OoD: is it possible to use your fantastic theme?
I would just like to add that if you have already installed metafeeds on your PlayonHD the weather feed tab is no longer available; not sure why it was removed. Anyhow to fix the problem you will have to edit your menu.rss file located in the /tmp/hdd/root/rss_script/ and add the following between the end of a previously entered </item> and the start of a new one <item>; just look at the file and I think you will understand what I mean. Do not enter the asterisk on line 6 see note below.
Thanks for the how-to! Weather is not available after installing Metafeeds, because main menu of Internet Feeds doesn't support horizontal scrolling, so in reality there's space for about 5 feeds (with fresh firmware you already have 4). Metafeeds is using 2 (main + Favorites), so it overwrites menu position of Weather.
I'm not yet satisfied with this Weather, mainly because it requires 2-times pressing Enter (one time is enough). There's no RSS documentation, so development is being done with a try-and-look-what-has-been-changed
method. I reckon it as a good base for further improvements.
For example, you may want to remove information which you don't need. So if you don't care about wind speed (or something else), you can just delete lines:
<text offsetXPC=8 offsetYPC=40 widthPC=14 heightPC=5 fontSize=22 foregroundColor=255:255:255>
<script_replace> print("Wind:"); </script_replace>
<text offsetXPC=27 offsetYPC=40 widthPC=12 heightPC=5 fontSize=22 foregroundColor=255:255:255>
<script_replace> print(windSpeed + " km/h"); </script_replace>
If you want to check weather status for more cities, you might want to do loadxml
for 1st city, save it's data by using getXMLAttribute
, then do another loadxml
with 2nd city as parameter - that way you can show info even for 3 or more cities on single page. In case you have uncle in Australia and aunt in France (if cities are located in different countries), you can put each together with it's country flag.
In <mediaDisplay> section you may want to change:
to a different color values (described as RGB).
In <background> section, <image> elements have parameters:
- offsetXPC: starting X position of image
- offsetYPC: starting Y position of image
- widthPC: percentage width of image (in relation to screen width: 0-100)
- heightPC: percentage height of image (in relation to screen height: 0-100)
between <image></image> tag goes local or remote link to image which has to be displayed.
<text> elements have parameters:
- offsetXPC: starting X position of text
- offsetYPC: starting Y position of text
- widthPC: percentage width of text (in relation to screen width: 0-100)
- heightPC: percentage height of text (in relation to screen height: 0-100)
- fontSize: size of text font
- backgroundColor: background color of text field
- foregroundColor: text color
between <text></text> tag goes text which has to be displayed.