Reply
Thread Tools
Posts: 7 | Thanked: 0 times | Joined on Mar 2009
#1
I have an idea in mind to which I am looking for a solution (as easy as possible). There is a website which gives me the information of all the trams that depart from a selectable station. This works perfectly if you have a big screen, but on the display of my Nokia 770 the information is too small for comfortable reading.

What is the easiest way of reformatting the output of the website?

This is what is looks like originally:
http://www.wienerlinien.at/itip/lini...izeTimeSlot=30

I don't need the header, just the information below "Linie Ziel ...". Do I have to program this using Python, C++, etc. or is there an easier way to display the information continually?

Background: I want to use my old 770 as a display when the next tram leaves so that I can time it better. It will be hanging next to the door and should provide the information at a finger tip.
 
timsamoff's Avatar
Posts: 1,605 | Thanked: 1,601 times | Joined on Mar 2007 @ Southern California
#2
If the tram routes output an XML file (RSS, ATOM, etc.), you could reformat it pretty easily via an aggregation api. The issue would be in creating an interface in which you could input your applicable data.

But, if XML is not available, you could always try using the Stylish Add-on for Firefox and create you're own CSS for the website.

Tim
__________________
http://samoff.com

Last edited by timsamoff; 2009-07-30 at 20:23.
 

The Following 4 Users Say Thank You to timsamoff For This Useful Post:
Posts: 7 | Thanked: 0 times | Joined on Mar 2009
#3
Originally Posted by timsamoff View Post
But, if XML is not available, you could always try using the Stylish Add-on for Firefox and create you're own CSS for the website.
Thanks for the reply, Tim.

Does this work with the firefox version available for maemo?
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2009
#4
I have solved the problem using greasemonkey, which works with MicroB well. However, I had to upgrade my 770 to OS2007 to make it work.
 
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007
#5
Yeah, a Greasemonkey script was going to be my suggestion as well.

How about you share the script you wrote so that perhaps other people can see how you did it and can learn to apply it to other websites?
 

The Following 2 Users Say Thank You to zerojay For This Useful Post:
speculatrix's Avatar
Posts: 880 | Thanked: 264 times | Joined on Feb 2007 @ Cambridge, UK
#6
you could write a script which does a "wget" and then head and tail to remove the excess lines of code, then stick the html header and footer back in?
__________________
Fujitsu U820, HTC Vision/G2/DesireZ, Nokia N800 770 E71, Zaurus 6000, Palm T3, Zaurus C3100 - stolen
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:54.