install
This commit is contained in:
parent
186566e568
commit
dec9c4e832
|
@ -24,7 +24,7 @@ apt -y install python3-pip
|
||||||
# Run the following command to install the Raspberry PI GPIO library:
|
# Run the following command to install the Raspberry PI GPIO library:
|
||||||
#Nö pip3 install RPI.GPIO
|
#Nö pip3 install RPI.GPIO
|
||||||
#pip3 install adafruit-blinka
|
#pip3 install adafruit-blinka
|
||||||
pip3 -y install Adafruit_DHT
|
pip3 install Adafruit_DHT
|
||||||
|
|
||||||
|
|
||||||
# Skripte nach usr/bin kopieren
|
# Skripte nach usr/bin kopieren
|
||||||
|
@ -33,7 +33,11 @@ pip3 -y install Adafruit_DHT
|
||||||
#cp src/weight-datageneration.py /usr/bin/weight-datageneration.py
|
#cp src/weight-datageneration.py /usr/bin/weight-datageneration.py
|
||||||
for f in temp+feucht-DHT22.py weight-datageneration.py
|
for f in temp+feucht-DHT22.py weight-datageneration.py
|
||||||
do
|
do
|
||||||
cat src/$f | sed s/%GRAFANA_URL%/${GRAFANA_URL}/ > /usr/bin/$f
|
# / ersetzen durch \/
|
||||||
|
Var=${GRAFANA_URL//\//\\/}
|
||||||
|
# & ersetzen durch \&
|
||||||
|
Var=${Var//[&]/\\&}
|
||||||
|
cat src/$f | sed 's/%GRAFANA_URL%/'$Var'/' > /usr/bin/$f
|
||||||
done
|
done
|
||||||
|
|
||||||
# systemd unit files kopieren und chmod
|
# systemd unit files kopieren und chmod
|
||||||
|
|
Loading…
Reference in New Issue