Analogue DSL Bandwidth meter
Got round to doing some hardware hacking again! 🙂
I put together an analogue DSL bandwidth meter display – it shows the current percentage of bandwidth (upstream/downstream) used:
That’s some ugly MDF board to hold the Particle Photon, two 3V voltage meters, and an LED which lights up if the data is stale (hasn’t been updated in >20s). I soldered a little breadboard together with the sockets for the photon, cables out to the meters, and a resistor for the LED.
The components are:
- fritzbox-logger.pl which uses WebService::FritzBox to poll my FritzBox DSL router every 10 seconds for the current bandwidth (available and used) statistics. This writes to a one-document-per-line JSON log file.
- The JSON log file is read using the file input of logstash, and (in parallel to writing to Elasticsearch) the logstash http output is used to call the spark-server.
- The spark-server relays the function calls made by logstash to the photon, which in turn translates the percentage values into a voltage output to each of the two DAC output pins of the Photon. You can find the application firmware for the Photon here.
Thanks Jeremy for the inspiration for this project! 🙂
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.