RaspberryPi based LED controller for artificial sunlight
Project description
RaspberryPi based LED controller for artificial sunlight.
Setup
Install and enable PiGPIO:
sudo apt install python3-pip python3-gpiozero python3-pigpio sudo systemctl enable pigpiod sudo systemctl start pigpiod
Install the package via pip:
python3 -m pip install solarium
Create launch script:
sudo nano /etc/systemd/system/solarium.service
Add the following lines:
[Unit] Description=LED controller for artificial sunlight. After=pigpiod.service [Service] Type=idle ExecStart=/usr/bin/python3 /usr/local/bin/solarium -v -- 35 13 ### Add correct coordinates Restart=always [Install] WantedBy=multi-user.target
Launch script:
sudo systemctl enable solarium.service sudo systemctl start solarium.service
Remote access
If you have pigpiod’s remote access enabled, you can also lauch the script from your local machine and specify the correct host:
solarium --host=10.0.0.1 -- 52 13
Sound support
If you want to play a background sound using the --sound option, you will need to install ffplay:
sudo apt install ffmpeg -y
Should you be using an Inter-IC Sound (I2S) board, make sure to run pigpiod’s clock in PMW mode, to ensure PCM is available for audio:
sudo pygpiod -t 0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file solarium-0.4.3.tar.gz
.
File metadata
- Download URL: solarium-0.4.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e132fe7f8764e345f6b70375a326b93cdde057afa2330a915f8667a55e59e055 |
|
MD5 | ce3154f2eed9e0fae11a8515d0023194 |
|
BLAKE2b-256 | c618a65b1eb481a1655d8e64bdb3252bfd5df527072bc7f7b8109676780b7d09 |
File details
Details for the file solarium-0.4.3-py2.py3-none-any.whl
.
File metadata
- Download URL: solarium-0.4.3-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e572a77d6850324729d5695372d98814d279df681c0aaab5944ed475873319 |
|
MD5 | 7375696af2129ef1ab00b3db640aa09e |
|
BLAKE2b-256 | 28a9ae5d67b5a07b8dc0b5312044c1ba57c50b3786d3ef2e8bf13bf153e974ab |