From 9fbeea2a00800e577c1e859fa6cace2e4dea92be Mon Sep 17 00:00:00 2001 From: hp3icc <49044505+hp3icc@users.noreply.github.com> Date: Thu, 27 May 2021 15:23:34 -0500 Subject: [PATCH] Update emq-TE1Rev8ws.sh --- emq-TE1Rev8ws.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/emq-TE1Rev8ws.sh b/emq-TE1Rev8ws.sh index 52707d2..6512328 100644 --- a/emq-TE1Rev8ws.sh +++ b/emq-TE1Rev8ws.sh @@ -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