linkazoid Posted October 12, 2012 Posted October 12, 2012 Hi, In our reception foyer we would like to show the train departure board of our local station on our XIBO screen. We would like to show the boards from http://www.dlrlondon.co.uk/livedepartureboard.aspx?stn=isg Can anyone help me extract the required code so that I can embed it? Thanks, Michael
DaveMurphy Posted October 12, 2012 Posted October 12, 2012 Wouldn't it be easier on XIBO to embed the webpage as a whole? http://www.dlrlondon.co.uk/livedepartureboard.aspx?stn=isg rather than extracting that? I know it won't look a nice though any additional service updates will appear on that page but wouldn't if you stripped the page down for the code.
shadowx Posted October 15, 2012 Posted October 15, 2012 The best option I can see is to get a PHP server with CURL enabled, fetch that page, then use something like str_pos to find the "Next train from blah blah is" then copy out the relevant info in PHP, discard the rest. Re-format it and then display it how you want. I don't know what XIBO is but you can use PHPGD to save the info you scraped into a JPG image however you want it to look then embed that on your screen someone purely as a JPG?
jamiess Posted October 16, 2012 Posted October 16, 2012 Transport for London does have a developers area, where you can access their data. TfL Developers area 2
Thunderous71 Posted November 16, 2012 Posted November 16, 2012 Transport for London does have a developers area, where you can access their data. TfL Developers area Thank you for this its just what I needed!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now