first commit 10/20/2015
This commit is contained in:
21
test.py
Normal file
21
test.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import csv, requests
|
||||
from instruments import Camera_Debug as Camera
|
||||
from datahandling import Datareporter_Debug2 as Datareporter
|
||||
|
||||
REPORTIMAGETOURL = "http://10.0.1.4:5010/photo"
|
||||
|
||||
LOG_FILE = "log2.txt"
|
||||
|
||||
data = {"temp":1,"press":3,"altitude":2,"cheetas":"just enough"}
|
||||
|
||||
camera = Camera ()
|
||||
reporter = Datareporter ()
|
||||
|
||||
|
||||
|
||||
image = camera.capture()
|
||||
|
||||
response = requests.post(REPORTIMAGETOURL, files={'file': image.get('file')})
|
||||
#report image
|
||||
reporter.send(image.get('file'), type="image")
|
||||
pass
|
||||
Reference in New Issue
Block a user