Author Topic: [OLD] RSS and Weather addon  (Read 30112 times)

May 18, 2009, 08:33:44 AM
Read 30112 times

redindian

  • Hero Member

  • Offline
  • *****

  • 643
    • True Font Family - Any font, any website, any browser
This post is outdated. Get the webserver addons instead.

Ok here it is. My pre-release of a Weather and RSS feed on the home screen.

DISCLAIMER:

I take no responsibility whatsoever! I've tested it thoroughly, but cannot guarantee anything. But since it is addon software and you can always reflash your device, things should be pretty safe. Tested on Zorander ext-boot 0.9.2, but should work on B-rad's Firmware too.

FEATURES:

Adds a RSS feed scroller and Weather forecast to the home screen.

Screenshot of weather and RSS feed:



Fully configurable by web interface:



REQUIREMENTS:


DOWNLOAD:

*removed*

INSTALL:

Unzip and then just copy the webserver-addons.app.bin file to the root of your USB stick and recycle power (reboot).

CONFIGURATION:

RSS: http://ip-of-wdtv/osd/rss/
(or /apps/webserver-addons/osd/rss/rss.ini)

Weather: http://ip-of-wdtv/osd/weather/
(or /apps/webserver-addons/osd/weather/weather.ini)

REMARKS:

  • Configure and then save settings.
  • After saving it will instantly update.
  • You may need to go to standby and back to update the home.xml.
  • A cron job is started to update the RSS and weather every hour. (See /apps/webserver-addons/osd/osd.cron)
  • Check your city first on www.wunderground.com. Add country or postal code if needed. See default example 'Amsterdam, nl'
  • The home.xml is backupped to home.xml-backup.
  • Both RSS and weather are external files called rss.xml and weather.xml

UNINSTALL:

Remove webserver-addons.app.bin from your stick and edit /osd/home.xml or replace it by /osd/home.xml-backup

That's it. Good luck! Let me know what you think and if this works for you.

Again, it is a pre-release. The final release will be a plugin for Disc0's webserver.

UPDATE:

What's new:
  • Working in /tmp now with mount, which should fix problem with write-only /osd/ dir (UNTESTED!)
  • Web configuration checks for optware and cron, it also has install option for cron if optware is available
  • Crontabs directory is checked and created if needed, fixes update problems
  • Multiple RSS feeds work, seperate them with the | character
  • Other RSS encodings work, also with mixed RSS feeds, tried Dutch and Greek :-)
  • Adjusted RSS code to detect article titles better
  • RSS feed has background image now
  • Weather and RSS feed can be enabled/disabled
  • Now C means Celcius and F means Fahrenheit :-)

Adding the station code instead of the name was not easy, so please try and find a name that is closest to your own town. I'll work on this later maybe.

I hope this solves most of the problems for now. Maybe I'll have more time to work on it later, but currently I have so much other stuff to do I won't be spending much more time on this. Feel free to modify the code and release an updated version.

Download the updated version using the same link.
« Last Edit: August 28, 2009, 08:24:17 AM by redindian »

May 18, 2009, 09:12:12 AM
Reply #1

ThePol

  • Newbie

  • Offline
  • *

  • 18
This is too cool. I'm installing it tonight. :)

May 18, 2009, 09:39:08 AM
Reply #2

dcrutgers

  • Jr. Member

  • Offline
  • **

  • 90
Looks great, thanks!

May 18, 2009, 09:39:17 AM
Reply #3

od3m

  • Newbie

  • Offline
  • *

  • 13
thx a lot,
works like a charm.... anyway.. i can not find the location / code for cologne, germany. i tested several things like, Koeln, DE or Koeln, de or Cologne, de and so on... i cant find the exact thing on this weather site...

maybe you can help me with that ?

May 18, 2009, 09:40:01 AM
Reply #4

sorpio

  • Newbie

  • Offline
  • *

  • 12
Vet man!! ;D Thanks a lot for this update I've been messing around myself but didn't have time nor skills to produce this baby, nice... Keep up the good work!

May 18, 2009, 09:54:56 AM
Reply #5

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
thx a lot,
works like a charm.... anyway.. i can not find the location / code for cologne, germany. i tested several things like, Koeln, DE or Koeln, de or Cologne, de and so on... i cant find the exact thing on this weather site...

maybe you can help me with that ?


Try - Koeln, dl

May 18, 2009, 09:56:48 AM
Reply #6

redindian

  • Hero Member

  • Offline
  • *****

  • 643
    • True Font Family - Any font, any website, any browser
i can not find the location / code for cologne, germany.

I just tried cologne, germany and it worked right away? :-)

Only Cologne, de gives you several options, but the Cologne, germany is at the top of the list.

May 18, 2009, 10:41:39 AM
Reply #7

od3m

  • Newbie

  • Offline
  • *

  • 13
rofl, worked... thx ;)

May 18, 2009, 11:18:40 AM
Reply #8

3dxr

  • Global Moderator
  • Sr. Member

  • Offline
  • *****

  • 411
This is reason why is network mandatory equipment for MediaPlayer nowadays ;)

I am not alone who want RSS and wheather on WDTV my firt attempt new weeks ago :)
http://www.avsforum.com/avs-vb/showthread.php?p=16269733#post16269733

if you want icons I can share it :)


I had another idea make php backend which will parse data from NOAA public webservers and provide it
in textplain form for WDTV parser which can be small

unfinished version is here
http://wiki.wdtv.org/wheater/status.php?stat=2 / dev. check HTML source code if you want understand to my idea from past

May 18, 2009, 11:41:12 AM
Reply #9

redindian

  • Hero Member

  • Offline
  • *****

  • 643
    • True Font Family - Any font, any website, any browser
Some matching icons would be cool. Please share. :-)

If you want you can look at my code and make adjustment to parse data from NOAA webservers. For the moment, I'm happy with this solution because of the nice forecast and multiple language support. Just adjusted the code so you can change the language code too.

May 18, 2009, 11:51:24 AM
Reply #10

3dxr

  • Global Moderator
  • Sr. Member

  • Offline
  • *****

  • 411
I have no time work on so many projects
I started community on avsforum work on wiki later move most of users here and now I have another work ;)
I have simple wheather screen hardcoded to my location and other smart people can continue
make better wdtv

icons
http://www.mediafire.com/?sharekey=3c6363321eaf1cf7d9d5c56d04dfa8b0e04e75f6e8ebb871

I wanted only show idea how many smart and good designers can continue
programmers arent good graphic designes including myself :(

I am here and watching on progress and wish good luck to all who are adding simple and usefull features ;)
one dissadvantage had all modded screens TVdock isnt open framework
will be cool if we can totaly change GUI and call mplayer stack :(

May 18, 2009, 12:09:14 PM
Reply #11

redindian

  • Hero Member

  • Offline
  • *****

  • 643
    • True Font Family - Any font, any website, any browser
Thanks for the icons. Maybe I'll look at that approach later.

I hope the OSD can be modded completely if we can dynamically create those xml files according to the current working directory. Would be real nice to see where that leads us. :-)

May 18, 2009, 12:30:03 PM
Reply #12

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
it may lead us to something like this for example


it's pure and simple .xml template i;ve made some time ago for appletrailerfs. elmar did ALL the hard work to make it work (programming, finding pwd technic, getting imdb info, xml generation based on template, etc).

this solution can be also used for regular movies in the future. also mediainfo binary was compiled lately for wdtv which is a great source of info.

May 18, 2009, 01:48:37 PM
Reply #13

Rev Drew

  • DeSpammer
  • Sr. Member

  • Offline
  • ****

  • 348
the weather ans RSS feed is another nice 'cool' add on that sets this device apart from things way more expensive.

working fine here!

Fredericton, Canada
and
http://rss.canoe.ca/Technology/home.xml


Th@nX
You laugh because Im different, I laugh because youre all the same.

namaste

www.supernews.com/super-special/?i=ZxJfObJynPQ=

May 18, 2009, 02:05:38 PM
Reply #14

pcdthebum1

  • Newbie

  • Offline
  • *

  • 46
I love the program, and while I do prefer the Celsius scale to the fahrenheit scale, my mind does not connect celsius and the weather, is it possible to make an option to change between C and F? Thanks again for the work