Keeping your Raspberry Pi on time with a RTC module

RTC DS3231

The Rasperry Pi does not have an on-board battery powered clock. While it is connected to internet, a NTP daemon updates the clock correctly. Otherwise, a fake-hwclock saves the current clock periodically to disk and loads it at startup. So, with high probability, after a power shortage the Raspberry Pi time will be inaccurate. For … Read more…

Installing Kodi in Raspberry Pi

Kodi Kripton Splash ALT

Kodi is an open source media player software specially designed for televisions and remote controls. It is cross platform and allows users to play and view the most popular audio and video formats converting the machine where it is running in a Home Theater PC (HTPC). In this post the most important steps to install … Read more…

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…