Our Cookies Policy
To make full use of www.electromaker.io, enjoy the personalised features and ensure the websites works to its full potential, your computer, tablet or mobile phone will need to accept cookies.
Our cookies don’t store sensitive information such as your name, address or payment details: they simply hold information about how you use our site so we can improve your experience and resolve any errors.
If you’d prefer to restrict, block or delete cookies from www.electromaker.io, or any other website, you can use your browser to do this. Each browser is different, so check the ‘Help’ menu of your particular browser (or your mobile phone’s handset manual) to learn how to change your cookie preferences.
Here’s a list of the main cookies we use, and what we use them for:
Electromaker – Login session
Google Analytics – Analytics
Twitter – Twitter Feed
Each web browser handles cookie management differently, please follow instructions for your chosen browser:
2738 ARM Raspberry Pi Sense HAT - For the Pi 3 / 2 / B+ / A+
Software app and online services
curl -sSL https://install.pi-hole.net | bash
sudo apt-get install sense-hat
After setting up Pi-hole on a Raspberry Pi 3, I wanted a way to conveniently view its performance without having to open up a browser. I decided to emulate the chart from the web interface on a spare Sense-HAT.
I first query the Pi-hole API to retrieve information on the number of DNS requests and ads blocked over time. The data is organized depending on the time interval selected and scaled to fit an 8x8 RGB grid . Column height is used to indicate the relative level of DNS traffic generated in the previous 24-hour timeframe.
I decided to use color in the bar chart to represent either the aforementioned traffic level or the percentage of ads blocked. I added a slight time delay to produce a ripple effect and the option to randomize the order of pixel generation.
Contributer Zach Cross added options to change the orientation of the chart and enable low-light mode.
With the option list rapidly expanding, I thought that joystick controls would be perfect to conveniently cycle through and select choices without having to manually type them at the command line. The following list describes the mapping of functionality to each joystick direction:
UP - PUSH Cycle color mode.
RIGHT - PUSH Cycle interval selection.
DOWN - PUSH Toggle low-light mode.
LEFT - PUSH Cycle display orientation.
MIDDLE - PUSH Toggle randomization.
MIDDLE - HOLD Exit program.
After completing the bar chart, I wanted to display additional information about the Pi-hole ecosystem in a different visual style. The idea to produce a spiral pattern arose and I decided to use it to display the overall percentage of ads blocked for the day. I used the following algorithm to display it: