No changes between revisions
/Designs/Measuring_instruments/AWS03A/AWS03A_Small.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/DOC/src/img/20160725_154235.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/DOC/src/img/20160725_154244.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/DOC/src/img/20160725_154301.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/DOC/src/img/20160725_160341.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/DOC/src/img/Block_schematic.dia
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/DOC/src/img/Block_schematic.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/AWS03A/PrjInfo.txt
0,0 → 1,13
[InfoShortDescription.en]
Automatic weather station
 
[InfoShortDescription.cs]
Automatická meteorologická stanice
 
[InfoLongDescription.en]
Meteorologická stanice s vnitřní jednotlou obsahující ODROID s Linuxem. Koncept je velmi variabilní a je možné využít hotových programů s možností úprav, nebo je možné napsání vlastního programu. Aktuální MLAB senzory umožňují měřit teplotu, vlhkost, směr a rychlost větru a intenzitu osvětlení. V zásadě není omezen počet, nebo je možné přidat nové vlastní.
 
[InfoLongDescription.cs]
Weather station with indoor Dials containing ODROID with Linux. The concept is very flexible and can use ready-made programs with modifications, or you can write your own program. MLAB sensors allow you to measure temperature, humidity, wind speed and direction and intensity of light. In principle there is no limit to the number, or you can add new own typ.
 
[End]
/Designs/Measuring_instruments/AWS03A/SW/Python/AWS_read.py
0,0 → 1,86
#!/usr/bin/python
 
# Python driver for MLAB MAG01A module with HMC5888L Magnetometer sensor wrapper class
 
import time
import datetime
import sys
 
from pymlab import config
 
#uncomment for debbug purposes
import logging
logging.basicConfig(level=logging.DEBUG)
 
 
#### Script Arguments ###############################################
 
if len(sys.argv) != 2:
sys.stderr.write("Invalid number of arguments.\n")
sys.stderr.write("Usage: %s #I2CPORT\n" % (sys.argv[0], ))
sys.exit(1)
 
port = eval(sys.argv[1])
 
 
#### Sensor Configuration ###########################################
 
cfg = config.Config(
i2c = {
"port": port,
},
 
bus = [
{
"type": "i2chub",
"address": 0x72,
"children": [
{
"type": "i2chub",
"address": 0x70,
"channel": 0,
"children": [
{"name": "barometer", "type": "altimet01" , "channel": 0, },
{"name": "hum_temp", "type": "sht25" , "channel": 1, },
# {"name": "wind_direction", "type": "mag01" , "channel": 1, },
# {"name": "thermometer", "type": "lts01" , "channel": 2, },
],
},
# {"name": "barometer2", "type": "altimet01" , "channel": 6, },
],
},
],
)
 
cfg.initialize()
 
barometer = cfg.get_device("barometer")
hum_temp = cfg.get_device("hum_temp")
#wind_direction = cfg.get_device("wind_direction")
#thermometer = cfg.get_device("thermometer")
time.sleep(0.5)
 
#### Data Logging ###################################################
 
filename = datetime.datetime.now().isoformat()
 
 
try:
with open(filename+".log", "a") as f:
while True:
barometer.route()
(t1, p1) = barometer.get_tp()
hum_temp.route()
t2 = hum_temp.get_temp()
# t3 = thermometer.get_temp()
t3 = -200
h1 = hum_temp.get_hum()
 
sys.stdout.write(" Temperature: %.2f Pressure: %d TempSHT: %.2f HumSHT: %.1f TempLTS: %.2f" % (t1, p1, t2, h1, t3))
f.write("%d\t%.2f\t%d\t%.2f\t%.1f\t%.2f\n" % (time.time(),t1, p1, t2, h1, t3))
sys.stdout.flush()
time.sleep(10)
except KeyboardInterrupt:
sys.exit(0)