Update emq-TE1Rev8ws.sh

This commit is contained in:
hp3icc 2021-05-27 15:23:34 -05:00 committed by GitHub
parent bce1d8085b
commit 9fbeea2a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -44,6 +44,7 @@ sudo apt install python3-websockets
sudo apt install python3-psutil
sudo apt-get install python3-serial
sudo apt install python3-gpiozero -y
sudo apt-get install gpsd gpsd-clients python-gps -y
sudo apt install socket
sudo apt install threading
sudo apt install queue
@ -62,7 +63,18 @@ sudo apt install logrotate
sudo pip3 install ansi2html
##################
cat > /etc/default/gpsd <<- "EOF"
USBAUTO="False"
DEVICES="/dev/ttyACM0"
START_DAEMON="true"
GPSD_OPTIONS="-n"
GPSD_SOCKET="/var/run/gpsd.sock"
EOF
sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock
#################
echo iniciando instalacion
cd /opt