I’m installing the Sixfab_PPP installer using a dockerfile and balenaos.
After installation, my hat tracker works, I am able to retrieve GPS data. However when I run pon I get: pon: command not found
Here is my dockerfile:
FROM balenalib/raspberrypi4-64-python:3-stretch-run
RUN apt-get update -y
RUN apt-get upgrade
RUN apt-get install -y gcc
RUN apt-get install -y gcc-arm-linux-gnueabihf
RUN apt-get install -y libc6-dev
#RUN apt-get install -y python3-dev python3-smbus
RUN apt-get install -y systemd
RUN apt-get install -y psmisc
RUN apt-get install -y wget
RUN apt-get install -y git
RUN apt-get install -y unzip
RUN apt-get install -y build-essential
RUN apt-get install -y libtool
RUN apt-get install -y --force-yes expect
#RUN apt-get install -y wiringpi
SHELL ["/bin/bash", "-c"] #Tried adding this line but did not solve the problem
RUN mkdir ebike
WORKDIR "/ebike"
RUN wget https://github.com/joan2937/pigpio/archive/master.zip
RUN unzip master.zip
WORKDIR "pigpio-master"
RUN make
RUN make install
WORKDIR "../"
RUN wget https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/install.sh
RUN chmod +x install.sh
ADD install_expect.sh ./
RUN chmod +x install_expect.sh
RUN ./install_expect.sh
RUN git clone https://github.com/sixfab/Sixfab_RPi_Tracker_HAT.git
WORKDIR "Sixfab_RPi_Tracker_HAT"
RUN ls
RUN python3 setup.py install
WORKDIR "../"
ADD GNSS.py ./
CMD pip install RPI.GPIO ; pon ; echo $PATH; pigpiod
Device: https://sixfab.com/product/raspberry-pi-gprs-gps-tracker-hat/