Page 1 of 1

Geckoboard to Pull Portion of Website

Posted: Wed Jul 30, 2014 4:23 pm
by Vgala
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.

Re: Geckoboard to Pull Portion of Website

Posted: Thu Jul 31, 2014 10:33 am
by nicks
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