Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

[Solved / Archived] Alternative implementation for system-near Witty Pi 4 usage

1 Posts
1 Users
0 Likes
48 Views
(@jonas-hochst)
Posts: 1
New Member Customer
Topic starter
 

Hey there,

I've done an alternative implementation on the Raspberry Pi level, which I want to share here. My design goals were:
- be close to the system, i.e. the kernel
- use system-components where possible
- use a safe programming language for the scheduling part.

What I came up with is a set of components which works tightly with Linux:

- The power led and the on/off-switch are handled by dtoverlays already available in the Raspberry Pi Firmware (gpio-shutdown/gpio-led).
- The real-time clock is handled by a modified driver forked from the linux kernel (addresses needed to be adjusted).
- A python library and daemon is available which enables easy access to the WittyPi property (get and set) as well as define a schedule for operation of your installation. You also have the option to schedule your device according to a static location (lat/lon) provided and the dusk/dawn sunset/sunrise relative timestamps. 

In principle the implementation is compatible with the default one, although there is one major difference, that being the clock set in UTC time. This solves problems regarding boot up and shutdown when switching winter-summertime and also is the default way of handling RTCs in Linux.

At it's current stage the project is not documented too well, nevertheless it could be interesting to checkout the repository (licensed GPL-3.0) and fiddle around a bit: https://github.com/tRackIT-Systems/wittypi4/tree/main

Cheers
Jonas

 
Posted : 06/09/2024 12:15 pm
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.