28 lines
538 B
Python
28 lines
538 B
Python
import csv, requests
|
|
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"
|
|
|
|
LOG_FILE = "log2.txt"
|
|
|
|
data = {"temp":1,"press":3,"altitude":2,"cheetas":"just enough"}
|
|
|
|
|
|
reporter = Datareporter ()
|
|
|
|
camera = Camera(low_quality_resolution=(320, 180),
|
|
low_quality_compression_pct=50)
|
|
|
|
image = camera.capture()
|
|
|
|
print (image)
|
|
|
|
pass
|
|
|
|
#report image
|
|
# reporter.send(image.get('file'), type="image")
|
|
|
|
pass |