bienenchaos/install.sh

37 lines
699 B
Bash
Raw Permalink Normal View History

2020-06-18 22:20:47 +02:00
#!/bin/bash
2020-06-19 18:02:20 +02:00
if [ -z "$GRAFANA_URL" ]
then
echo "GRAFANA_URL nicht gesetzt. Ende."
exit 1
fi
2020-06-19 17:39:41 +02:00
if [ "$EUID" -ne 0 ]
then echo "Bitte mit sudo laufen lassen!"
exit
fi
2020-06-18 22:20:47 +02:00
# generell update
2020-06-19 17:39:41 +02:00
apt-get update
apt-get upgrade
2020-06-18 22:20:47 +02:00
# wir brauchen python3
2020-06-20 22:35:46 +02:00
apt -y install python3
2020-06-18 22:20:47 +02:00
# wir brauchen pip3
2020-06-20 22:35:46 +02:00
apt -y install python3-pip
2020-06-18 22:20:47 +02:00
#Nö: sudo pip3 install --upgrade setuptools
# Run the following command to install the Raspberry PI GPIO library:
#Nö pip3 install RPI.GPIO
#pip3 install adafruit-blinka
2020-06-20 23:20:07 +02:00
pip3 install Adafruit_DHT
2020-06-21 01:53:32 +02:00
pip3 install wiringpi
2020-06-19 17:39:41 +02:00
2020-06-20 23:58:10 +02:00
# numpy
apt -y install libatlas-base-dev
2020-06-20 23:50:39 +02:00
pip3 install numpy
2020-07-13 22:06:16 +02:00
pip3 install smbus
2020-06-20 23:50:39 +02:00
# Jetzt noch die Dateien positionieren und Services aktivieren
2020-06-20 23:50:39 +02:00
./update.sh