Skip to content

FablabVallesabbia/FabLabClock

Repository files navigation

FabLab Clock

Modification of the Climate Clock to display custom messages on RGB LED displays.

Features

  • Switch between original Climate Clock and custom messages via GPIO button
  • Configurable messages via shared CSV file (Samba)
  • 3 display effects: left scroll, right scroll, centered text
  • Customizable RGB colors for each message

Installation

Option 1: Automatic Installation (Recommended)

# Clone the repository
git clone https://github.com/FablabVallesabbia/FabLabClock
cd fablab-clock

# Run installation script
chmod +x install.sh
./install.sh

Option 2: Manual Installation

# Dependencies
sudo apt install samba

# Samba Setup
sudo mkdir -p /home/climate/sambashare
sudo chmod 777 /home/climate/sambashare

# Add to /etc/samba/smb.conf:
[sambashare]
    path = /home/climate/sambashare
    guest ok = yes
    read only = no

# Install systemd service
sudo cp fablabclock.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable fablabclock.service
sudo systemctl start fablabclock.service

Custom Text Configuration

CSV file (/home/climate/sambashare/Testi.csv):

Tempo,ColoreR,ColoreG,ColoreB,Effetto,Testo
6,255,51,153,1,Example message
4,102,255,178,3,Centered text
#,,,,,Comment (ignored)

Parameters:

  • Tempo: display duration in seconds
  • RGB: 0-255 for each color
  • Effetto: 1=scroll left, 2=scroll right, 3=centered

Usage

  1. Start the system (boots in Climate Clock mode)
  2. Press button to switch between modes
  3. Edit Testi.csv via network to update messages
  • for testing, just launch the GestioneOrologio.py script

Hardware

  • Raspberry Pi + RGB LED Matrix display
  • Button connected to GPIO pin 19
  • Requires rpi-rgb-led-matrix which is already installed if using the original project image

System Credentials

Note: The original project didn't specify the username and password, making it necessary to chroot into the system to change them. Our modified image is available in releases with the credentials listed below.

SSH/Terminal Access:

  • Username: climate
  • Password: clock

Samba File Access:

  • Address: \\[RASPBERRY_PI_IP]\sambashare
  • No authentication required (guest access)

License

MIT License

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors