The DPLA Display is a proof of concept for using the DPLA API along with Web Sockets. This small web application displays images, much like a picture floating screensaver, on a remote display, while you controle the images being viewed from a mobile device.
- You must have Node.js (http://nodejs.org/) installed.
- You will need to request a API Key from DPLA (http://dp.la/info/developers/codex/policies/#get-a-key).
Rename config.default.js to config.js
Open config.js and put in your DPLA API key along with the IP address or hostname that will be running DPLA Display. You can use localhost, however, mobile devices may not be able to connect to the display server.
Run the node.js server by running the following command:
Now open a browser and go to http://<ip address or hostname>:8080/display.html Don't worry if all you see is black, that's a good thing :). This will be your image display. If you chose a different port number in config.js use that number instead of 8080.
Open up a new browser window or point your mobile browser to http://<ip address or hostname>:8080/ and make a search. Select images and watch the display.
This is for proof of concept only and should not be used for production environments. Use at your own risk.