Step 9: Our Endpoint Design

General design for server software

For the server side code that generates status messages, we used a simple set of PHP scripts. The arduino periodically requests a message from the server to display. We have two types of scripts in our design. "Data gathering" scripts, and a single "Data consolidator" script.

The data gatheringscripts have one task. Whenever they are run, they grab the latest data for something you want to track. For example, say you care about the price of Bitcoin. The data gathering script for Bitcoin price gets the latest price and saves it in a file. Every time it gets the latest price of Bitcoin, it overwrites the contents of the file. The scripts can be run at an interval that you choose.

The data consolidator is run whenever the ticker wants the latest message. It simply looks at all the latest data written by the gathering scripts, consolidates it into one message and echo's it back. This is the message that the Arduino periodically grabs and displays.

The last piece of the puzzle is making sure the data gathering scripts are run as often as you want the data to be updated. (It makes sense to update subway data every minute, but not weather, for example). This is ideally handled by setting up cronjobs on your server, but for a quick and user friendly option we used a service called UptimeRobot. With it, you can configure urls that UptimeRobot will ping at intervals you specify. UptimeRobot automatically made requests from then on, ensuring that the data was updated. The image above shows an screen shot from our UptimeRobot dashboard.

<p>Hey ... gud work !</p><p>How to get this working with Dot Matrix Displays that are available in market ?</p><p>They are equipped with 16-pin header for connection to controller board .</p>
Been looking for something like for awhile. Wanted to something bigger. 3x3 foot picture frame but this is a great start to get me going! Thanks will try
<p>Nice job! How did you put the youyube videos with autoplay and with no border and no controls?</p>
<p>Thanks! I followed this steps in this very helpful Instructable - https://www.instructables.com/id/Using-Youtube-psuedo-GIFs-to-an-Instructable/ :)</p>
<p>Woah! I want to make something similar in my high TV cabinet! I don't know if you read my mind or I read your instructable before! ;-)</p><p>Many thanks for the ideas and solutions!</p>
<p>Might be more tempted to hook it to a parallel port of a headless server.</p>
<p>not sure I follow? you mean connect the LED boards directly to the server?</p>
<p>I got a couple of graphical VFDs out of some old medical equipment (<strong>Noritake GU256x64-39)</strong> I've been meaning to do something like this. Also pretty simple with a USB cash register pole</p>
Want this!!!!!
<p>you should make one!</p>
If I could high five you I would.
<p>haha thanks!</p>

About This Instructable




More by adamwatters:Web Controlled LED Info Ticker Giant Duck Ornaments Using the Instructables Unofficial API 
Add instructable to: