- Download the latest version of Raspbian (https://www.raspberrypi.org/downloads/raspbian/)
- Flash it using Etcher
- Wait...
- Disconnect and connect the uSD card again
- In the 'boot' partition, create an empty file called 'ssh'
# Credits: https://gist.github.com/gene1wood/9ed024449c0f309f279a | |
sudo apt-get install squeezelite | |
sudo apt-get install libsoxr-dev libasound2-dev libflac-dev libmad0-dev libvorbis-dev libfaad-dev libmpg123-dev liblircclient-dev libncurses5-dev | |
dir="`mktemp --directory`" | |
cd "$dir" | |
git clone https://github.com/ralph-irving/squeezelite | |
cd squeezelite | |
OPTS="-DINTERACTIVE -DRESAMPLE" make |
## Board in /dev/ttyUSB0 | |
# Access Python interpreter through serial conection: picocom /dev/ttyUSB0 -b115200 | |
# If you want to close the picocom conection, type: Ctrl + A and Ctrl + X | |
# Picocom and RShell can not be used at the same time | |
# Access filesystem with RShell: rshell -p /dev/ttyUSB0 | |
# ESP32 flash memory is mounted on /pyboard | |
# Physical connection | |
# Plug the RJ45 - USB cable in a free USB port of your server | |
# Check if device is detected as American Power Conversion Uninterruptible Power Supply (APC UPS) | |
lsusb | |
# Install the daemon | |
sudo apt install apcupsd |
import paho.mqtt.client as mqtt | |
import base64, sys, math | |
from github import Github | |
from hashlib import md5 | |
from os.path import basename | |
from platformio import util | |
Import("env") | |
project_config = util.load_project_config() |
/* | |
* Author: Emmanuel Odunlade | |
* Complete Project Details http://randomnerdtutorials.com | |
* Help from www.arduinoslovakia.eu | |
* Modify by Aitor Iturrioz 2019 | |
* | |
* LEd bat kontrolatu munduko edozein herritako tenperaturaren bitartez. | |
* https://docs.google.com/document/d/1wTtBcLh9Pbn-Gr9JKueGOrpSAZ_13NLqNpytrHgiW8w/edit | |
*/ | |
#!/bin/bash | |
MAX_CYCLES=24 | |
NETWORK_UP_TIME=10m | |
NETWORK_DOWN_TIME=5m | |
NETWORK_INTERFACE="eth0" | |
NUM_CYCLE=1 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" |