Skin by [cer] (cer@home.tula.net) Our community
Welcome to WDTV Forum. Learn how to play any file on your WDTV Media Player
Pages: [1] 2 3 ... 9
  Print  
Author Topic: [OLD] RSS and Weather addon  (Read 14444 times)
Hero Member
*****
Posts: 643
« on: May 18, 2009, 08:33:44 AM »

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 » Logged

Newbie
*
Posts: 18
« Reply #1 on: May 18, 2009, 09:12:12 AM »

This is too cool. I'm installing it tonight. Smiley
Logged
Jr. Member
**
Posts: 90
« Reply #2 on: May 18, 2009, 09:39:08 AM »

Looks great, thanks!
Logged
Newbie
*
Posts: 13
« Reply #3 on: May 18, 2009, 09:39:17 AM »

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 can´t find the exact thing on this weather site...

maybe you can help me with that ?
Logged
Newbie
*
Posts: 12
« Reply #4 on: May 18, 2009, 09:40:01 AM »

Vet man!! Grin 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!
Logged
Sr. Member
****
Posts: 418
« Reply #5 on: May 18, 2009, 09:54:56 AM »

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 can´t find the exact thing on this weather site...

maybe you can help me with that ?


Try - Koeln, dl
Logged
Hero Member
*****
Posts: 643
« Reply #6 on: May 18, 2009, 09:56:48 AM »

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.
Logged

Newbie
*
Posts: 13
« Reply #7 on: May 18, 2009, 10:41:39 AM »

rofl, worked... thx Wink
Logged
Global Moderator
Sr. Member
*****
Posts: 380
« Reply #8 on: May 18, 2009, 11:18:40 AM »

This is reason why is network mandatory equipment for MediaPlayer nowadays Wink

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

if you want icons I can share it Smiley


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
Logged
Hero Member
*****
Posts: 643
« Reply #9 on: May 18, 2009, 11:41:12 AM »

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.
Logged

Global Moderator
Sr. Member
*****
Posts: 380
« Reply #10 on: May 18, 2009, 11:51:24 AM »

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 Wink
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 Sad

I am here and watching on progress and wish good luck to all who are adding simple and usefull features Wink
one dissadvantage had all modded screens TVdock isnt open framework
will be cool if we can totaly change GUI and call mplayer stack Sad
Logged
Hero Member
*****
Posts: 643
« Reply #11 on: May 18, 2009, 12:09:14 PM »

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. :-)
Logged

Sr. Member
****
Posts: 418
« Reply #12 on: May 18, 2009, 12:30:03 PM »

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.
Logged
Full Member
***


Posts: 177
« Reply #13 on: May 18, 2009, 01:48:37 PM »

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
Logged

You laugh because I’m different, I laugh because you’re all the same.
Newbie
*
Posts: 46
« Reply #14 on: May 18, 2009, 02:05:38 PM »

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
Logged
Pages: [1] 2 3 ... 9
  Print  
 
Jump to:  


MySql PHP XHTML CSS
MegaPolis theme by [cer]
Powered by SMF 1.1.8 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.128 seconds with 23 queries.