This script acts as Slack Bot to post one tip once a day to a defined channel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Playing zeros | |
# https://raspberrypi.stackexchange.com/questions/74456/i2s-dac-device-support-kernel-drivers-and-noise-pop-crackle-on-playbac | |
After=alsa-restore.service | |
Requires=alsa-restore.service | |
[Service] | |
TimeoutSec=0 | |
User=pi | |
ExecStart=/usr/bin/aplay -D default -c 2 -f S16 -r 48000 /dev/zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# shutdown/reboot(/power on) Raspberry Pi with pushbutton | |
import RPi.GPIO as GPIO | |
from subprocess import call | |
from datetime import datetime | |
import time | |
from signal import pause | |
# pushbutton connected to this GPIO pin, using pin 5 also has the benefit of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HUE_HOST=192.168.XX.XX | |
HUE_USER=iglksjflXXXXXXXXX | |
LIGHT_NUMBER=00 |
To use raspotify properly with HifiBerry on raspberry pi 2 (kernel 4.19.29-v7)
sudo apt-get install build-essential libasound2-dev
curl https://sh.rustup.rs -sSf | sh
cargo build --release --features alsa-backend
- Point /etc/systemd/system/raspotify.service to compiled binary from (1), e.g.
/home/pi/librespot/target/release/librespot
OlderNewer