Grafana – Using An API Call To Add DataSources (Python)

I've written blog posts on how to install Grafana and data exporters using Ansible (https://geektechstuff.com/2020/06/25/grafana-prometheus-and-node-exporter-on-raspberry-pi-via-ansible-raspberry-pi-and-linux/) and a blog post on adding users to Grafana using an API call (https://geektechstuff.com/2021/01/06/using-an-api-call-to-make-multiple-grafana-users-python/), but after re-reading my blog posts I decided to automate the process (previously a manual step in the Ansible post) of adding data sources. I have … Continue reading Grafana – Using An API Call To Add DataSources (Python)

Using SQL With JavaScript Part 1 – Installing SQL, Node.js, Creating a Connection and Creating A Database

A little while ago I completed a SQL database course via FutureLearn (it's a free course if you want to learn some SQL) to brush up on my SQL knowledge. Today I am going to use Javascript (via Node.Js) to connect to SQL and create a database. Installing SQL I am using Raspberry Pi OS … Continue reading Using SQL With JavaScript Part 1 – Installing SQL, Node.js, Creating a Connection and Creating A Database

The Raspberry Pi Pico / Pimoroni Pico Display

Raspberry Pi Pico and Pimoroni Pico Display

It's January 2021 and the awesome folks over at Raspberry Pi have announced a new device, a micro controller called the Raspberry Pi Pico. The full details / news about the device can be found at: https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/ . I grabbed one from the excellent Pimoroni and with speedy delivery from Royal Mail it arrived over … Continue reading The Raspberry Pi Pico / Pimoroni Pico Display

Tackling Fractions With Python

Python function to run call on other functions depending on user input

Fractions, not something I've really looked at since my school days. However with home schooling currently taking place here in the UK due to another Coronavirus lockdown, it is something that I've been refreshing my knowledge on this week. Note: https://www.calculatorsoup.com/calculators/math/fractions.php provides an online calculator to help with fractions. The site also provides the formulas … Continue reading Tackling Fractions With Python