commit 10/22/2015

This commit is contained in:
2015-10-22 00:00:00 -06:00
committed by Anthony Correa
parent 41a9534867
commit df6f462cb0
17 changed files with 2731 additions and 178 deletions

19
test.py
View File

@@ -1,6 +1,8 @@
import csv, requests
from instruments import Camera_Debug as Camera
from datahandling import Datareporter_Debug2 as Datareporter
from instruments import Camera_Debug2 as Camera
from datahandling import Datareporter_Debug3 as Datareporter
import serial
import sys
REPORTIMAGETOURL = "http://10.0.1.4:5010/photo"
@@ -8,14 +10,19 @@ LOG_FILE = "log2.txt"
data = {"temp":1,"press":3,"altitude":2,"cheetas":"just enough"}
camera = Camera ()
reporter = Datareporter ()
camera = Camera(low_quality_resolution=(320, 180),
low_quality_compression_pct=50)
image = camera.capture()
response = requests.post(REPORTIMAGETOURL, files={'file': image.get('file')})
print (image)
pass
#report image
reporter.send(image.get('file'), type="image")
# reporter.send(image.get('file'), type="image")
pass