forked from henry1758f/Azure-IoTHub-general-device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·28 lines (26 loc) · 967 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
################################################
# SYNNEX International Technology Corp.
# General Device Monitor with Azure IoT Hub
################################################
#!/bin/bash
# set the STRING variable
#export IOTHUB_DEVICE_MODELID=""
#export IOTHUB_DEVICE_SECURITY_TYPE=""
#export IOTHUB_DEVICE_DPS_ENDPOINT=""
#export IOTHUB_DEVICE_DPS_ID_SCOPE=""
#export IOTHUB_DEVICE_DPS_DEVICE_ID=""
#export IOTHUB_DEVICE_DPS_DEVICE_KEY=""
#export IOTHUB_DEVICE_CONNECTION_STRING=""
#export KEYPAD_INTERRUPT="DISABLE"
export KEYPAD_INTERRUPT="ENABLE"
# print the contents of the variable on screen
echo $IOTHUB_DEVICE_SECURITY_TYPE
echo $IOTHUB_DEVICE_DPS_ENDPOINT
echo $IOTHUB_DEVICE_DPS_ID_SCOPE
echo $IOTHUB_DEVICE_DPS_DEVICE_ID
echo $IOTHUB_DEVICE_DPS_DEVICE_KEY
echo $IOTHUB_DEVICE_CONNECTION_STRING
echo $KEYPAD_INTERRUPT
pip3 install -r requirememts.txt || pip install -r requirememts.txt
python main.py || python3 main.py