Use a Raspberry Pi OLED as a Bandwidth Monitor

This tutorial is a bit more complicated compared to the other one, and you will have to have some technical knowledge.

First things first, you should check to see if your router supports SNMP. My Asus Router does, but the “logging” option is very basic and it was quicker for me to install a custom firmware than to faff around with the default system.


The Python code to use a Raspberry Pi as a bandwidth monitor is below —

I’ve also added some python code to check your IP and to check the current bitcoin value. I have commented out the bitcoin, and plan to implement this another way.

Eventually I would like to have a bandwidth monitor and a bitcoin value checker on two separate buffers, and to then flip between the two buffers every ten seconds. This would not only be easier to read as I’d effectively double the screen space, but it would also lower the chance of getting screen burn (some people call it screen stamping.)

Make sure you download the adequate fonts and put them in the same directory as your python file. From there, run python and ctrl + c to close.

For the OLED, I bought mine from Ebay. Make sure you get the wiring correct, sometimes the pins are in a different place.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.