Creating a Raspberry Pi service

Raspberry Booting Services

There are several ways to execute a piece of code when your Raspberry Pi boots. You can, for instance, use the nickname @reboot in crontab in order to launch an script after rebooting your machine. You can also configure crontab to run the script every X minutes. However, if you want to create a Raspberry … Read more…

Sleeping a process until next X minute

Sleeping dog

In this post I just want to show a short piece of code that can be useful when managing with Bash processes that run while the system is up and have sleep/waiting times. Imagine the following situation: you have coded a service that is always running. This service should perform a certain operation every minute … Read more…

Protecting your Raspberry Pi from power failure

Raspberry Pi UPS

Unexpected power failures can corrupt your SD card and prevent your Raspberry PiĀ from booting up the next time you turn it on. I learnt that personally when my toaster decided to trip my house’s circuit breakers in a random way. There are a lot of possibilities to solve this problem and ensure that the shutdown … Read more…