More fixes to run.py
This commit is contained in:
parent
a1ed75054c
commit
8cf0b09efc
@ -71,7 +71,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install protobuf-compiler libprotobuf-dev libprotoc-dev automake libtool autoconf
|
apt-get -y install protobuf-compiler libprotobuf-dev libprotoc-dev automake libtool autoconf python-dev python-rpi.gpio
|
||||||
|
|
||||||
cd $INSTALL_DIR/dev/lora_gateway/libloragw
|
cd $INSTALL_DIR/dev/lora_gateway/libloragw
|
||||||
sed -i -e 's/PLATFORM= .*$/PLATFORM= imst_rpi/g' library.cfg
|
sed -i -e 's/PLATFORM= .*$/PLATFORM= imst_rpi/g' library.cfg
|
||||||
|
4
run.py
4
run.py
@ -18,7 +18,7 @@ except RuntimeError:
|
|||||||
|
|
||||||
GWID_PREFIX="FFFE"
|
GWID_PREFIX="FFFE"
|
||||||
|
|
||||||
if not os.path.exists("mp_pkg_fwd"):
|
if not os.path.exists("mp_pkt_fwd"):
|
||||||
print ("ERROR: gateway executable not found. Is it built yet?")
|
print ("ERROR: gateway executable not found. Is it built yet?")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ print ("Gateway Type:\t"+os.environ.get("GW_TYPE"))
|
|||||||
print ("Gateway ID:\t"+os.environ.get("GW_ID"))
|
print ("Gateway ID:\t"+os.environ.get("GW_ID"))
|
||||||
print ("Gateway EUI:\t"+my_eui)
|
print ("Gateway EUI:\t"+my_eui)
|
||||||
print ("Gateway Key:\t"+os.environ.get("GW_KEY"))
|
print ("Gateway Key:\t"+os.environ.get("GW_KEY"))
|
||||||
print ("Has hardware GPS: "+os.getenv('GW_GPS', False))
|
print ("Has hardware GPS: "+str(os.getenv('GW_GPS', False)))
|
||||||
print ("Hardware GPS port: "+os.getenv('GW_GPS_PORT', "/dev/ttyAMA0"))
|
print ("Hardware GPS port: "+os.getenv('GW_GPS_PORT', "/dev/ttyAMA0"))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user