2016-01-24 09:15:14 +01:00
|
|
|
GPIO_PIN_DHT = 4 # BCM
|
2016-06-08 13:12:36 +02:00
|
|
|
SENSORDATA_URL = 'http://agrar.zoblak.com/api/v1.0/sensorData'
|
2016-06-02 23:13:42 +02:00
|
|
|
GPIO_PIN_TANKLEVEL0 = 5 # BCM
|
|
|
|
|
GPIO_PIN_TANKLEVEL1 = 6 # BCM
|
|
|
|
|
GPIO_PIN_TANKLEVEL2 = 13 # BCM
|
|
|
|
|
GPIO_PIN_TANKLEVEL3 = 19 # BCM
|
|
|
|
|
GPIO_PIN_TANKLEVEL4 = 26 # BCM
|
2016-01-25 19:38:21 +01:00
|
|
|
GPIO_PIN_TANKFULL = 20 # BCM
|
2016-03-06 13:33:50 +01:00
|
|
|
GPIO_PIN_OUT_VALVE = 21 # BCM
|
|
|
|
|
GPIO_PIN_IN_VALVE = 18 # BCM
|
2016-06-09 21:56:26 +02:00
|
|
|
START_PUMPING_AT = 'TANKFULL' # start pumping when this level = 0
|
|
|
|
|
STOP_PUMPING_AT = 'TANKFULL' # stop pumping when this level = 1
|
2016-06-08 13:12:36 +02:00
|
|
|
API_BASE_URL = 'http://agrar.zoblak.com/api/v1.0'
|
2016-01-24 09:15:14 +01:00
|
|
|
CONTROLLER_ID = '120' # every controller must have a different one
|
2016-10-01 17:01:37 +02:00
|
|
|
STATE_FILE = '/mnt/zoblakdata/controller_state'
|
|
|
|
|
PICTURE_TRANSFER_FILE='/mnt/zoblakdata/picture_transfer_ready.jpg'
|
2016-12-28 14:14:44 +01:00
|
|
|
#PICTURE_INPUT_FILE='/mnt/zoblakdata/picture.jpg' # must match file in PICTURE_COMMAND
|
|
|
|
|
#PICTURE_COMMAND="""avconv -i rtsp://192.168.5.10:554//user=admin_password=_channel=1_stream=0.sdp -i /home/pi/projects/tfm/controller/zoblakLogo.png -filter_complex "[0:v]drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:fontsize=30:box=1:boxcolor=black@0.75:text='%d\.%m\.%Y\. %H\:%M\:%S':fontcolor=white@0.8: x=10: y=10[text]; [text][1:v]overlay=main_w-overlay_w-5:5 [filtered]" -map "[filtered]" -f image2 -vframes 1 /mnt/zoblakdata/picture.jpg""" # filename must match PICTURE_INPUT_FILE path
|
|
|
|
|
PICTURE_INPUT_FILE='/mnt/zoblakdata/picture_output.jpg' # must match resulting combined filename in PICTURE_COMMAND
|
|
|
|
|
PICTURE_COMMAND="""avconv -i rtsp://192.168.51.10:554//user=admin_password=_channel=1_stream=0.sdp -i /home/pi/projects/tfm/controller/zoblakLogo.png -filter_complex "[0:v]drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:fontsize=30:box=1:boxcolor=black@0.75:text='%d\.%m\.%Y\. %H\:%M\:%S\nKALEM PILE - SPRAT':fontcolor=white@0.8: x=10: y=10[text]; [text][1:v]overlay=main_w-overlay_w-5:5 [filtered]" -map "[filtered]" -f image2 -vframes 1 /mnt/zoblakdata/picture.jpg;avconv -i rtsp://192.168.51.11:554//user=admin_password=_channel=1_stream=0.sdp -i /home/pi/projects/tfm/controller/zoblakLogo.png -filter_complex "[0:v]drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:fontsize=30:box=1:boxcolor=black@0.75:text='%d\.%m\.%Y\. %H\:%M\:%S\nKALEM PILE - PRIZEMLJE':fontcolor=white@0.8: x=10: y=10[text]; [text][1:v]overlay=main_w-overlay_w-5:5 [filtered]" -map "[filtered]" -f image2 -vframes 1 /mnt/zoblakdata/picture2.jpg;convert -bordercolor white -border 0x10 /mnt/zoblakdata/picture.jpg /mnt/zoblakdata/picture.jpg;convert /mnt/zoblakdata/picture.jpg /mnt/zoblakdata/picture2.jpg -append /mnt/zoblakdata/picture_output.jpg""" # filename must match PICTURE_INPUT_FILE path
|
2016-10-09 00:27:49 +02:00
|
|
|
PICTURE_URL = 'http://agrar.zoblak.com/api/v1.0/picture'
|
2016-12-28 14:14:44 +01:00
|
|
|
ONE_WIRE_THERMO_SENSORS = ['/sys/bus/w1/devices/28-000007516ef2/w1_slave','/sys/bus/w1/devices/28-00000752162e/w1_slave'] # xxx -serial
|
|
|
|
|
|