An open API service indexing awesome lists of open source software.

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

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.