https://github.com/zserub/daylight
A Raspberry project for RGB LED strip control through smartphone with BLYNK IoT app
https://github.com/zserub/daylight
blynk-iot-platform led-strips raspberrypi rgb-led smarthome
Last synced: about 2 months ago
JSON representation
A Raspberry project for RGB LED strip control through smartphone with BLYNK IoT app
- Host: GitHub
- URL: https://github.com/zserub/daylight
- Owner: zserub
- Created: 2024-11-18T11:48:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-02T13:58:49.000Z (over 1 year ago)
- Last Synced: 2025-03-14T04:33:48.125Z (over 1 year ago)
- Topics: blynk-iot-platform, led-strips, raspberrypi, rgb-led, smarthome
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RGB Daylight controlled by BLYNK via RPi
A Raspberry project for RGB LED strip control through smartphone with BLYNK IoT app
Uses 500Hz PWM signal with 0.1% steps (1000 resolution)
### Required repos
- [BlynkLib](https://github.com/vshymanskyy/blynk-library-python)
- [Astral](https://sffjunkie.github.io/astral/)
- [Pi-Blaster](https://github.com/sarfata/pi-blaster)
- [rgb-daylight](https://github.com/AkBKukU/rgb-daylight)
## Setup
```
pip install astral
sudo apt-get install autoconf pkg-config
git clone https://github.com/AkBKukU/rgb-daylight.git
cd rgb-daylight
git clone https://github.com/vshymanskyy/blynk-library-python.git
git clone https://github.com/sarfata/pi-blaster.git
git clone https://github.com/zserub/Daylight.git
```
Copy Daylight/pi-blaster.c to pi-blaster folder and overwrite the existing file
Copy Daylight/RGBdaylight_blynk_basic.py to the rgb-daylight folder
Copy BlynkLib.py to Daylight folder
```
cd pi-blaster
./autogen.sh
./configure && make
```
Follow the introduction of [rgb-daylight](https://github.com/AkBKukU/rgb-daylight)
In rgb-daylight.service change the path for RGBdaylight_blynk_basic.py then `sudo cp rgb-daylight.service /systemd`
Write your token in the `blynk = BlynkLib.Blynk('asd')`
### Check astral for ideal sunshine
Go into settings.json and change latitude and longitude then start rgb-daylight.py and check the timings.