Vgala
Posts: 3
Joined: Fri May 30, 2014 1:41 am

Geckoboard to Pull Portion of Website

Wed Jul 30, 2014 4:23 pm

Hi All,

A little new to this type of thing on the RPi, but I am hoping someone could lend a hand with this.

I currently utilize a website (marinetraffic.com) to view the location of ships that I've added to "my fleet". Basically, there are ships all around the world shown, but I don't really have the best resolution of ship locations when viewing the entire globe (see attached "marinetraffic front" photo).

I currently have the RPi connected to a TV and displaying this website automatically when the RPi boots. I would ideally like to write a script zoom to each particular region (i.e. North America) and zoom to extents (see attached "marinetraffic NA" photo), take a screen grab, and then allow for automatically viewing each screen grab (perhaps each grab/slide every ten seconds) on Geckoboard (or equivalent/similar). Then update every hour.

Anyone have any ideas if this is possible? or has been done before?

Thanks for reading and for your assistance in advance.
Attachments
marinetraffic NA.JPG
marinetraffic NA.JPG (25.03 KiB) Viewed 749 times
marinetraffic front.JPG
marinetraffic front.JPG (26.55 KiB) Viewed 749 times

nicks
Posts: 1
Joined: Thu Jul 31, 2014 9:30 am
Contact: Website

Re: Geckoboard to Pull Portion of Website

Thu Jul 31, 2014 10:33 am

Interesting - at Geckoboard we've experimented with PhantomJS for generating screengrabs of a page which can then be added to a dashboard using an image widget. If the map you need on marinetraffic.com is accessible through a public-facing URL at the zoom level you need, then in theory you could write a script to fetch and render snapshots of it with PhantomJS, then set up an image widget on a dashboard to poll for a fresh image. The examples in the PhantomJS docs may be interesting for you: http://phantomjs.org/screen-capture.html ~Nick

Return to “Other projects”