Luftsruck hinzugefügt
alle Dateien daran angepasst (dygraph, export.sh, Gnuplot)
This commit is contained in:
parent
7e0edb6906
commit
c838547a61
11 changed files with 483 additions and 464 deletions
|
@ -8,7 +8,7 @@ set format x "%d.%m %H:%M"
|
|||
set grid #Gitter anzeigen
|
||||
set title "Raspberry Pi" #Überschrift
|
||||
set ylabel 'Temperatur (°C)'
|
||||
set ylabel 'relative Luftfeuchtigkeit (%)'
|
||||
set y2label 'relative Luftfeuchtigkeit (%)'
|
||||
#set xlabel 'Zeit'
|
||||
set y2tics # Zahlen auch auf 2. y-Achse
|
||||
|
||||
|
@ -17,10 +17,21 @@ plot "/var/www/gnuplot/daten_gnuplot.txt" using 1:3 title 'Innentemperatur 1' w
|
|||
"/var/www/gnuplot/daten_gnuplot.txt" using 1:5 title 'Außentemperatur' with lines axes x1y1, \
|
||||
"/var/www/gnuplot/daten_gnuplot.txt" using 1:6 title 'Temperatur Luft' with lines axes x1y1, \
|
||||
"/var/www/gnuplot/daten_gnuplot.txt" using 1:7 title 'Luftfeuchtigkeit' with lines axes x1y2, \
|
||||
"/var/www/gnuplot/daten_gnuplot.txt" using 1:8 title 'Prozessor' with lines axes x1y1
|
||||
"/var/www/gnuplot/daten_gnuplot.txt" using 1:9 title 'Temperatur (Druck)' with lines axes x1y1
|
||||
set terminal svg size 1200,800
|
||||
set output "/var/www/gnuplot/gnuplot.svg"
|
||||
replot
|
||||
set terminal png size 1200,800
|
||||
set output "/var/www/gnuplot/gnuplot.png"
|
||||
replot
|
||||
|
||||
set ylabel 'Luftdruck (hPa)'
|
||||
set y2label 'Temperatur (°C)'
|
||||
plot "/var/www/gnuplot/daten_gnuplot.txt" using 1:8 title 'Luftdruck' with lines axes x1y1, \
|
||||
"/var/www/gnuplot/daten_gnuplot.txt" using 1:10 title 'Prozessor' with lines axes x1y2
|
||||
set terminal svg size 1200,800
|
||||
set output "/var/www/gnuplot/druck.svg"
|
||||
replot
|
||||
set terminal png size 1200,800
|
||||
set output "/var/www/gnuplot/druck.png"
|
||||
replot
|
||||
|
|
259
Fremddateien/Adafruit_BMP085.py
Executable file
259
Fremddateien/Adafruit_BMP085.py
Executable file
|
@ -0,0 +1,259 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import time
|
||||
from Adafruit_I2C import Adafruit_I2C
|
||||
|
||||
# ===========================================================================
|
||||
# BMP085 Class
|
||||
# ===========================================================================
|
||||
|
||||
class BMP085 :
|
||||
i2c = None
|
||||
|
||||
# Operating Modes
|
||||
__BMP085_ULTRALOWPOWER = 0
|
||||
__BMP085_STANDARD = 1
|
||||
__BMP085_HIGHRES = 2
|
||||
__BMP085_ULTRAHIGHRES = 3
|
||||
|
||||
# BMP085 Registers
|
||||
__BMP085_CAL_AC1 = 0xAA # R Calibration data (16 bits)
|
||||
__BMP085_CAL_AC2 = 0xAC # R Calibration data (16 bits)
|
||||
__BMP085_CAL_AC3 = 0xAE # R Calibration data (16 bits)
|
||||
__BMP085_CAL_AC4 = 0xB0 # R Calibration data (16 bits)
|
||||
__BMP085_CAL_AC5 = 0xB2 # R Calibration data (16 bits)
|
||||
__BMP085_CAL_AC6 = 0xB4 # R Calibration data (16 bits)
|
||||
__BMP085_CAL_B1 = 0xB6 # R Calibration data (16 bits)
|
||||
__BMP085_CAL_B2 = 0xB8 # R Calibration data (16 bits)
|
||||
__BMP085_CAL_MB = 0xBA # R Calibration data (16 bits)
|
||||
__BMP085_CAL_MC = 0xBC # R Calibration data (16 bits)
|
||||
__BMP085_CAL_MD = 0xBE # R Calibration data (16 bits)
|
||||
__BMP085_CONTROL = 0xF4
|
||||
__BMP085_TEMPDATA = 0xF6
|
||||
__BMP085_PRESSUREDATA = 0xF6
|
||||
__BMP085_READTEMPCMD = 0x2E
|
||||
__BMP085_READPRESSURECMD = 0x34
|
||||
|
||||
# Private Fields
|
||||
_cal_AC1 = 0
|
||||
_cal_AC2 = 0
|
||||
_cal_AC3 = 0
|
||||
_cal_AC4 = 0
|
||||
_cal_AC5 = 0
|
||||
_cal_AC6 = 0
|
||||
_cal_B1 = 0
|
||||
_cal_B2 = 0
|
||||
_cal_MB = 0
|
||||
_cal_MC = 0
|
||||
_cal_MD = 0
|
||||
|
||||
# Constructor
|
||||
def __init__(self, address=0x77, mode=1, debug=False):
|
||||
self.i2c = Adafruit_I2C(address)
|
||||
|
||||
self.address = address
|
||||
self.debug = debug
|
||||
# Make sure the specified mode is in the appropriate range
|
||||
if ((mode < 0) | (mode > 3)):
|
||||
if (self.debug):
|
||||
print "Invalid Mode: Using STANDARD by default"
|
||||
self.mode = self.__BMP085_STANDARD
|
||||
else:
|
||||
self.mode = mode
|
||||
# Read the calibration data
|
||||
self.readCalibrationData()
|
||||
|
||||
def readS16(self, register):
|
||||
"Reads a signed 16-bit value"
|
||||
hi = self.i2c.readS8(register)
|
||||
lo = self.i2c.readU8(register+1)
|
||||
return (hi << 8) + lo
|
||||
|
||||
def readU16(self, register):
|
||||
"Reads an unsigned 16-bit value"
|
||||
hi = self.i2c.readU8(register)
|
||||
lo = self.i2c.readU8(register+1)
|
||||
return (hi << 8) + lo
|
||||
|
||||
def readCalibrationData(self):
|
||||
"Reads the calibration data from the IC"
|
||||
self._cal_AC1 = self.readS16(self.__BMP085_CAL_AC1) # INT16
|
||||
self._cal_AC2 = self.readS16(self.__BMP085_CAL_AC2) # INT16
|
||||
self._cal_AC3 = self.readS16(self.__BMP085_CAL_AC3) # INT16
|
||||
self._cal_AC4 = self.readU16(self.__BMP085_CAL_AC4) # UINT16
|
||||
self._cal_AC5 = self.readU16(self.__BMP085_CAL_AC5) # UINT16
|
||||
self._cal_AC6 = self.readU16(self.__BMP085_CAL_AC6) # UINT16
|
||||
self._cal_B1 = self.readS16(self.__BMP085_CAL_B1) # INT16
|
||||
self._cal_B2 = self.readS16(self.__BMP085_CAL_B2) # INT16
|
||||
self._cal_MB = self.readS16(self.__BMP085_CAL_MB) # INT16
|
||||
self._cal_MC = self.readS16(self.__BMP085_CAL_MC) # INT16
|
||||
self._cal_MD = self.readS16(self.__BMP085_CAL_MD) # INT16
|
||||
if (self.debug):
|
||||
self.showCalibrationData()
|
||||
|
||||
def showCalibrationData(self):
|
||||
"Displays the calibration values for debugging purposes"
|
||||
print "DBG: AC1 = %6d" % (self._cal_AC1)
|
||||
print "DBG: AC2 = %6d" % (self._cal_AC2)
|
||||
print "DBG: AC3 = %6d" % (self._cal_AC3)
|
||||
print "DBG: AC4 = %6d" % (self._cal_AC4)
|
||||
print "DBG: AC5 = %6d" % (self._cal_AC5)
|
||||
print "DBG: AC6 = %6d" % (self._cal_AC6)
|
||||
print "DBG: B1 = %6d" % (self._cal_B1)
|
||||
print "DBG: B2 = %6d" % (self._cal_B2)
|
||||
print "DBG: MB = %6d" % (self._cal_MB)
|
||||
print "DBG: MC = %6d" % (self._cal_MC)
|
||||
print "DBG: MD = %6d" % (self._cal_MD)
|
||||
|
||||
def readRawTemp(self):
|
||||
"Reads the raw (uncompensated) temperature from the sensor"
|
||||
self.i2c.write8(self.__BMP085_CONTROL, self.__BMP085_READTEMPCMD)
|
||||
time.sleep(0.005) # Wait 5ms
|
||||
raw = self.readU16(self.__BMP085_TEMPDATA)
|
||||
if (self.debug):
|
||||
print "DBG: Raw Temp: 0x%04X (%d)" % (raw & 0xFFFF, raw)
|
||||
return raw
|
||||
|
||||
def readRawPressure(self):
|
||||
"Reads the raw (uncompensated) pressure level from the sensor"
|
||||
self.i2c.write8(self.__BMP085_CONTROL, self.__BMP085_READPRESSURECMD + (self.mode << 6))
|
||||
if (self.mode == self.__BMP085_ULTRALOWPOWER):
|
||||
time.sleep(0.005)
|
||||
elif (self.mode == self.__BMP085_HIGHRES):
|
||||
time.sleep(0.014)
|
||||
elif (self.mode == self.__BMP085_ULTRAHIGHRES):
|
||||
time.sleep(0.026)
|
||||
else:
|
||||
time.sleep(0.008)
|
||||
msb = self.i2c.readU8(self.__BMP085_PRESSUREDATA)
|
||||
lsb = self.i2c.readU8(self.__BMP085_PRESSUREDATA+1)
|
||||
xlsb = self.i2c.readU8(self.__BMP085_PRESSUREDATA+2)
|
||||
raw = ((msb << 16) + (lsb << 8) + xlsb) >> (8 - self.mode)
|
||||
if (self.debug):
|
||||
print "DBG: Raw Pressure: 0x%04X (%d)" % (raw & 0xFFFF, raw)
|
||||
return raw
|
||||
|
||||
def readTemperature(self):
|
||||
"Gets the compensated temperature in degrees celcius"
|
||||
UT = 0
|
||||
X1 = 0
|
||||
X2 = 0
|
||||
B5 = 0
|
||||
temp = 0.0
|
||||
|
||||
# Read raw temp before aligning it with the calibration values
|
||||
UT = self.readRawTemp()
|
||||
X1 = ((UT - self._cal_AC6) * self._cal_AC5) >> 15
|
||||
X2 = (self._cal_MC << 11) / (X1 + self._cal_MD)
|
||||
B5 = X1 + X2
|
||||
temp = ((B5 + 8) >> 4) / 10.0
|
||||
if (self.debug):
|
||||
print "DBG: Calibrated temperature = %f C" % temp
|
||||
return temp
|
||||
|
||||
def readPressure(self):
|
||||
"Gets the compensated pressure in pascal"
|
||||
UT = 0
|
||||
UP = 0
|
||||
B3 = 0
|
||||
B5 = 0
|
||||
B6 = 0
|
||||
X1 = 0
|
||||
X2 = 0
|
||||
X3 = 0
|
||||
p = 0
|
||||
B4 = 0
|
||||
B7 = 0
|
||||
|
||||
UT = self.readRawTemp()
|
||||
UP = self.readRawPressure()
|
||||
|
||||
# You can use the datasheet values to test the conversion results
|
||||
# dsValues = True
|
||||
dsValues = False
|
||||
|
||||
if (dsValues):
|
||||
UT = 27898
|
||||
UP = 23843
|
||||
self._cal_AC6 = 23153
|
||||
self._cal_AC5 = 32757
|
||||
self._cal_MB = -32768;
|
||||
self._cal_MC = -8711
|
||||
self._cal_MD = 2868
|
||||
self._cal_B1 = 6190
|
||||
self._cal_B2 = 4
|
||||
self._cal_AC3 = -14383
|
||||
self._cal_AC2 = -72
|
||||
self._cal_AC1 = 408
|
||||
self._cal_AC4 = 32741
|
||||
self.mode = self.__BMP085_ULTRALOWPOWER
|
||||
if (self.debug):
|
||||
self.showCalibrationData()
|
||||
|
||||
# True Temperature Calculations
|
||||
X1 = ((UT - self._cal_AC6) * self._cal_AC5) >> 15
|
||||
X2 = (self._cal_MC << 11) / (X1 + self._cal_MD)
|
||||
B5 = X1 + X2
|
||||
if (self.debug):
|
||||
print "DBG: X1 = %d" % (X1)
|
||||
print "DBG: X2 = %d" % (X2)
|
||||
print "DBG: B5 = %d" % (B5)
|
||||
print "DBG: True Temperature = %.2f C" % (((B5 + 8) >> 4) / 10.0)
|
||||
|
||||
# Pressure Calculations
|
||||
B6 = B5 - 4000
|
||||
X1 = (self._cal_B2 * (B6 * B6) >> 12) >> 11
|
||||
X2 = (self._cal_AC2 * B6) >> 11
|
||||
X3 = X1 + X2
|
||||
B3 = (((self._cal_AC1 * 4 + X3) << self.mode) + 2) / 4
|
||||
if (self.debug):
|
||||
print "DBG: B6 = %d" % (B6)
|
||||
print "DBG: X1 = %d" % (X1)
|
||||
print "DBG: X2 = %d" % (X2)
|
||||
print "DBG: X3 = %d" % (X3)
|
||||
print "DBG: B3 = %d" % (B3)
|
||||
|
||||
X1 = (self._cal_AC3 * B6) >> 13
|
||||
X2 = (self._cal_B1 * ((B6 * B6) >> 12)) >> 16
|
||||
X3 = ((X1 + X2) + 2) >> 2
|
||||
B4 = (self._cal_AC4 * (X3 + 32768)) >> 15
|
||||
B7 = (UP - B3) * (50000 >> self.mode)
|
||||
if (self.debug):
|
||||
print "DBG: X1 = %d" % (X1)
|
||||
print "DBG: X2 = %d" % (X2)
|
||||
print "DBG: X3 = %d" % (X3)
|
||||
print "DBG: B4 = %d" % (B4)
|
||||
print "DBG: B7 = %d" % (B7)
|
||||
|
||||
if (B7 < 0x80000000):
|
||||
p = (B7 * 2) / B4
|
||||
else:
|
||||
p = (B7 / B4) * 2
|
||||
|
||||
if (self.debug):
|
||||
print "DBG: X1 = %d" % (X1)
|
||||
|
||||
X1 = (p >> 8) * (p >> 8)
|
||||
X1 = (X1 * 3038) >> 16
|
||||
X2 = (-7357 * p) >> 16
|
||||
if (self.debug):
|
||||
print "DBG: p = %d" % (p)
|
||||
print "DBG: X1 = %d" % (X1)
|
||||
print "DBG: X2 = %d" % (X2)
|
||||
|
||||
p = p + ((X1 + X2 + 3791) >> 4)
|
||||
if (self.debug):
|
||||
print "DBG: Pressure = %d Pa" % (p)
|
||||
|
||||
return p
|
||||
|
||||
def readAltitude(self, seaLevelPressure=101325):
|
||||
"Calculates the altitude in meters"
|
||||
altitude = 0.0
|
||||
pressure = float(self.readPressure())
|
||||
altitude = 44330.0 * (1.0 - pow(pressure / seaLevelPressure, 0.1903))
|
||||
if (self.debug):
|
||||
print "DBG: Altitude = %d" % (altitude)
|
||||
return altitude
|
||||
|
||||
return 0
|
35
Fremddateien/Adafruit_BMP085_auswertung.py
Executable file
35
Fremddateien/Adafruit_BMP085_auswertung.py
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from Adafruit_BMP085 import BMP085
|
||||
|
||||
# ===========================================================================
|
||||
# Example Code
|
||||
# ===========================================================================
|
||||
|
||||
# Initialise the BMP085 and use STANDARD mode (default value)
|
||||
# bmp = BMP085(0x77, debug=True)
|
||||
bmp = BMP085(0x77)
|
||||
|
||||
# To specify a different operating mode, uncomment one of the following:
|
||||
# bmp = BMP085(0x77, 0) # ULTRALOWPOWER Mode
|
||||
# bmp = BMP085(0x77, 1) # STANDARD Mode
|
||||
# bmp = BMP085(0x77, 2) # HIRES Mode
|
||||
# bmp = BMP085(0x77, 3) # ULTRAHIRES Mode
|
||||
|
||||
temp = bmp.readTemperature()
|
||||
|
||||
# Read the current barometric pressure level
|
||||
pressure = bmp.readPressure()
|
||||
|
||||
# To calculate altitude based on an estimated mean sea level pressure
|
||||
# (1013.25 hPa) call the function as follows, but this won't be very accurate
|
||||
#altitude = bmp.readAltitude()
|
||||
|
||||
# To specify a more accurate altitude, enter the correct mean sea level
|
||||
# pressure level. For example, if the current pressure level is 1023.50 hPa
|
||||
# enter 102350 since we include two decimal places in the integer value
|
||||
# altitude = bmp.readAltitude(102350)
|
||||
|
||||
print "%.2f; %.2f" % (temp, (pressure / 100.0)) # Temperatur und Luftdruck mit Komma getrennt anzeigen
|
||||
|
||||
#print "Altitude: %.2f" % altitude
|
142
Fremddateien/Adafruit_I2C.py
Executable file
142
Fremddateien/Adafruit_I2C.py
Executable file
|
@ -0,0 +1,142 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import smbus
|
||||
|
||||
# ===========================================================================
|
||||
# Adafruit_I2C Class
|
||||
# ===========================================================================
|
||||
|
||||
class Adafruit_I2C :
|
||||
|
||||
@staticmethod
|
||||
def getPiRevision():
|
||||
"Gets the version number of the Raspberry Pi board"
|
||||
# Courtesy quick2wire-python-api
|
||||
# https://github.com/quick2wire/quick2wire-python-api
|
||||
try:
|
||||
with open('/proc/cpuinfo','r') as f:
|
||||
for line in f:
|
||||
if line.startswith('Revision'):
|
||||
return 1 if line.rstrip()[-1] in ['1','2'] else 2
|
||||
except:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
def getPiI2CBusNumber():
|
||||
# Gets the I2C bus number /dev/i2c#
|
||||
return 1 if Adafruit_I2C.getPiRevision() > 1 else 0
|
||||
|
||||
def __init__(self, address, busnum=-1, debug=False):
|
||||
self.address = address
|
||||
# By default, the correct I2C bus is auto-detected using /proc/cpuinfo
|
||||
# Alternatively, you can hard-code the bus version below:
|
||||
# self.bus = smbus.SMBus(0); # Force I2C0 (early 256MB Pi's)
|
||||
# self.bus = smbus.SMBus(1); # Force I2C1 (512MB Pi's)
|
||||
self.bus = smbus.SMBus(
|
||||
busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
|
||||
self.debug = debug
|
||||
|
||||
def reverseByteOrder(self, data):
|
||||
"Reverses the byte order of an int (16-bit) or long (32-bit) value"
|
||||
# Courtesy Vishal Sapre
|
||||
byteCount = len(hex(data)[2:].replace('L','')[::2])
|
||||
val = 0
|
||||
for i in range(byteCount):
|
||||
val = (val << 8) | (data & 0xff)
|
||||
data >>= 8
|
||||
return val
|
||||
|
||||
def errMsg(self):
|
||||
print "Error accessing 0x%02X: Check your I2C address" % self.address
|
||||
return -1
|
||||
|
||||
def write8(self, reg, value):
|
||||
"Writes an 8-bit value to the specified register/address"
|
||||
try:
|
||||
self.bus.write_byte_data(self.address, reg, value)
|
||||
if self.debug:
|
||||
print "I2C: Wrote 0x%02X to register 0x%02X" % (value, reg)
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def write16(self, reg, value):
|
||||
"Writes a 16-bit value to the specified register/address pair"
|
||||
try:
|
||||
self.bus.write_word_data(self.address, reg, value)
|
||||
if self.debug:
|
||||
print ("I2C: Wrote 0x%02X to register pair 0x%02X,0x%02X" %
|
||||
(value, reg, reg+1))
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def writeList(self, reg, list):
|
||||
"Writes an array of bytes using I2C format"
|
||||
try:
|
||||
if self.debug:
|
||||
print "I2C: Writing list to register 0x%02X:" % reg
|
||||
print list
|
||||
self.bus.write_i2c_block_data(self.address, reg, list)
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def readList(self, reg, length):
|
||||
"Read a list of bytes from the I2C device"
|
||||
try:
|
||||
results = self.bus.read_i2c_block_data(self.address, reg, length)
|
||||
if self.debug:
|
||||
print ("I2C: Device 0x%02X returned the following from reg 0x%02X" %
|
||||
(self.address, reg))
|
||||
print results
|
||||
return results
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def readU8(self, reg):
|
||||
"Read an unsigned byte from the I2C device"
|
||||
try:
|
||||
result = self.bus.read_byte_data(self.address, reg)
|
||||
if self.debug:
|
||||
print ("I2C: Device 0x%02X returned 0x%02X from reg 0x%02X" %
|
||||
(self.address, result & 0xFF, reg))
|
||||
return result
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def readS8(self, reg):
|
||||
"Reads a signed byte from the I2C device"
|
||||
try:
|
||||
result = self.bus.read_byte_data(self.address, reg)
|
||||
if result > 127: result -= 256
|
||||
if self.debug:
|
||||
print ("I2C: Device 0x%02X returned 0x%02X from reg 0x%02X" %
|
||||
(self.address, result & 0xFF, reg))
|
||||
return result
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def readU16(self, reg):
|
||||
"Reads an unsigned 16-bit value from the I2C device"
|
||||
try:
|
||||
result = self.bus.read_word_data(self.address,reg)
|
||||
if (self.debug):
|
||||
print "I2C: Device 0x%02X returned 0x%04X from reg 0x%02X" % (self.address, result & 0xFFFF, reg)
|
||||
return result
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
def readS16(self, reg):
|
||||
"Reads a signed 16-bit value from the I2C device"
|
||||
try:
|
||||
result = self.bus.read_word_data(self.address,reg)
|
||||
if (self.debug):
|
||||
print "I2C: Device 0x%02X returned 0x%04X from reg 0x%02X" % (self.address, result & 0xFFFF, reg)
|
||||
return result
|
||||
except IOError, err:
|
||||
return self.errMsg()
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
bus = Adafruit_I2C(address=0)
|
||||
print "Default I2C bus is accessible"
|
||||
except:
|
||||
print "Error accessing default I2C bus"
|
|
@ -23,11 +23,15 @@
|
|||
{ showRoller: true, //Möglichkeit zum Runden anzeigen
|
||||
animatedZooms: true,
|
||||
// dateWindow: [ Date.parse("2012/09/29 12:00:00"),Date.parse("2013/11/10 12:00:00") ], //Start- und Endzeitraum
|
||||
labels: ["Zeit", "Innentemperatur 1", "Innentemperatur 2", "Außentemperatur", "Temperatur Luft", "Luftfeuchtigkeit", "Prozessor"],
|
||||
labels: ["Zeit", "Innentemperatur 1", "Innentemperatur 2", "Außentemperatur", "Temperatur (Luft)", "Luftfeuchtigkeit", "Luftdruck", "Temperatur (Druck)", "Prozessor"],
|
||||
labelsDiv: document.getElementById("Legende"), //Legende in einem bestimmten DIV anzeigen
|
||||
'Luftfeuchtigkeit': { //eigene y-Achse für Luftfeuchtigkeit
|
||||
axis: { valueRange: [1, 99],
|
||||
independentTicks: true
|
||||
// 'Luftfeuchtigkeit': { //eigene y-Achse für Luftfeuchtigkeit
|
||||
// axis: { valueRange: [1, 99],
|
||||
// independentTicks: true
|
||||
// }
|
||||
// },
|
||||
'Luftdruck': { //eigene y-Achse für Luftfeuchtigkeit
|
||||
axis: { independentTicks: true
|
||||
}
|
||||
},
|
||||
ylabel: 'Temperatur (°C)',
|
||||
|
|
|
@ -1,142 +0,0 @@
|
|||
|
||||
19:25:06 24.812 24.750
|
||||
19:25:20 24.812 24.750
|
||||
19:25:31 24.812 24.750
|
||||
19:25:43 24.812 24.750
|
||||
19:25:55 24.812 24.750
|
||||
19:26:06 24.812 24.812
|
||||
19:26:18 24.812 24.812
|
||||
19:26:29 24.812 24.812
|
||||
19:26:42 24.812 24.750
|
||||
19:26:53 24.812 24.750
|
||||
19:27:05 24.812 24.750
|
||||
19:27:17 24.750 24.750
|
||||
19:27:29 24.812 24.750
|
||||
19:27:41 24.812 24.750
|
||||
19:27:53 24.812 24.750
|
||||
19:28:04 24.812 24.812
|
||||
19:28:16 24.812 24.812
|
||||
19:28:28 24.812 24.750
|
||||
19:28:40 24.812 24.750
|
||||
19:28:51 24.750 24.750
|
||||
19:29:03 24.750 24.750
|
||||
19:29:15 24.750 24.750
|
||||
19:29:27 24.750 24.750
|
||||
19:29:38 24.750 24.750
|
||||
19:29:51 24.750 24.750
|
||||
19:30:02 24.750 24.750
|
||||
19:30:15 24.750 24.750
|
||||
19:30:26 24.750 24.750
|
||||
19:30:38 24.750 24.750
|
||||
19:30:50 24.750 24.750
|
||||
19:31:01 24.750 24.750
|
||||
19:31:13 24.750 24.687
|
||||
19:31:25 24.750 24.687
|
||||
19:31:37 24.687 24.687
|
||||
19:31:48 24.687 24.750
|
||||
19:32:00 24.687 24.687
|
||||
19:32:12 24.687 24.687
|
||||
19:32:23 24.687 24.687
|
||||
19:32:35 24.687 24.687
|
||||
19:32:47 24.687 24.687
|
||||
19:33:00 24.687 24.687
|
||||
19:33:11 24.687 24.687
|
||||
19:33:23 24.687 24.687
|
||||
19:33:35 24.687 24.687
|
||||
19:33:47 24.687 24.687
|
||||
19:33:59 24.687 24.687
|
||||
19:34:11 24.687 24.687
|
||||
19:34:22 24.687 24.687
|
||||
19:34:34 24.625 24.625
|
||||
19:34:45 24.625 24.625
|
||||
19:34:58 24.625 24.687
|
||||
19:35:09 24.625 24.687
|
||||
19:35:21 24.625 24.687
|
||||
19:35:33 24.625 24.687
|
||||
19:35:45 24.625 24.687
|
||||
19:35:57 24.625 24.625
|
||||
19:36:09 24.625 24.625
|
||||
19:36:20 24.625 24.625
|
||||
19:36:32 24.625 24.625
|
||||
19:36:45 24.625 24.625
|
||||
19:36:57 24.625 24.625
|
||||
19:37:08 24.625 24.625
|
||||
19:37:20 24.625 24.625
|
||||
19:37:32 24.625 24.625
|
||||
19:37:44 24.625 24.625
|
||||
19:37:56 24.625 24.625
|
||||
19:38:07 24.562 24.625
|
||||
19:38:19 24.625 24.625
|
||||
19:38:30 24.625 24.625
|
||||
19:38:42 24.625 24.625
|
||||
19:38:53 24.625 24.625
|
||||
19:39:05 24.625 24.625
|
||||
19:39:17 24.625 24.625
|
||||
19:39:28 24.625 24.625
|
||||
19:39:40 24.625 24.625
|
||||
19:39:51 24.750 24.687
|
||||
19:40:03 24.750 24.687
|
||||
19:40:15 24.750 24.687
|
||||
19:40:28 24.750 24.687
|
||||
19:40:40 24.812 24.687
|
||||
19:40:51 24.812 24.750
|
||||
19:41:04 24.812 24.750
|
||||
19:41:19 24.812 24.750
|
||||
19:41:43 24.875 24.750
|
||||
19:41:54 24.875 24.750
|
||||
19:42:06 24.875 24.750
|
||||
19:42:18 24.875 24.812
|
||||
19:42:30 24.875 24.812
|
||||
19:42:41 24.875 24.812
|
||||
19:42:53 24.937 24.812
|
||||
19:43:04 24.937 24.812
|
||||
19:43:18 24.937 24.812
|
||||
19:49:01 24.937 24.875
|
||||
19:49:14 24.937 24.875
|
||||
19:49:27 24.937 24.875
|
||||
19:49:40 24.937 24.875
|
||||
19:49:52 24.937 24.875
|
||||
19:50:04 24.937 24.937
|
||||
19:50:15 24.937 24.875
|
||||
20:11:01 25.062 25.000
|
||||
20:11:12 25.062 25.000
|
||||
20:11:24 25.062 25.000
|
||||
20:11:36 25.062 25.000
|
||||
20:11:48 25.062 25.062
|
||||
20:12:00 25.062 25.062
|
||||
20:12:11 25.062 25.000
|
||||
20:12:23 25.062 25.000
|
||||
20:12:35 25.062 25.000
|
||||
20:12:47 25.062 25.062
|
||||
20:12:58 25.062 25.000
|
||||
20:13:11 25.062 25.062
|
||||
20:13:23 25.062 25.000
|
||||
20:13:34 25.062 25.000
|
||||
20:13:46 25.062 25.062
|
||||
20:13:58 25.062 25.062
|
||||
20:14:11 25.062 25.062
|
||||
20:14:23 25.062 25.062
|
||||
20:14:35 25.062 25.000
|
||||
20:14:46 25.062 25.062
|
||||
20:14:58 25.062 25.000
|
||||
20:15:10 25.062 25.062
|
||||
20:15:21 25.062 25.062
|
||||
20:15:41 25.062 25.062
|
||||
20:15:58 25.062 25.062
|
||||
20:16:10 25.062 25.062
|
||||
20:16:23 25.062 25.062
|
||||
20:16:34 25.125 25.062
|
||||
20:16:46 25.062 25.062
|
||||
20:16:57 25.062 25.062
|
||||
20:17:09 25.062 25.062
|
||||
20:17:21 25.062 25.062
|
||||
20:17:33 25.125 25.062
|
||||
20:20:25 25.125 25.125
|
||||
20:20:36 25.125 25.125
|
||||
20:20:49 25.125 25.125
|
||||
20:21:00 25.125 25.062
|
||||
20:21:12 25.125 25.062
|
||||
20:21:24 25.125 25.125
|
||||
20:21:36 25.125 25.125
|
||||
20:21:48 25.125 25.125
|
||||
20:22:01 25.125 25.125
|
|
@ -99,7 +99,7 @@ def lcd_byte(bits, mode):
|
|||
|
||||
#Beginn der Ergaenzung
|
||||
main() # Initialisierung
|
||||
Seiten = 7 # hier kann man die Anzahl der Seiten ändern
|
||||
Seiten = 9 # hier kann man die Anzahl der Seiten ändern
|
||||
while True: # endlos wiederholen
|
||||
Seite = 1 # von Vorne zu zählen beginnen
|
||||
while Seite <= Seiten: # so lange durchlaufen bis man bei der letzten Seite angekommen ist -> dann von vorne beginnen
|
||||
|
|
141
dygraph.csv
141
dygraph.csv
|
@ -1,141 +0,0 @@
|
|||
2014/01/17 19:25:06,24.812,24.750,6.000,24.8,32.5,54.1
|
||||
2014/01/17 19:25:20,24.812,24.750,6.000,24.7,33.1,54.1
|
||||
2014/01/17 19:25:31,24.812,24.750,5.937,24.8,32.4,54.1
|
||||
2014/01/17 19:25:43,24.812,24.750,5.875,24.8,32.4,54.1
|
||||
2014/01/17 19:25:55,24.812,24.750,5.812,24.8,32.4,53.5
|
||||
2014/01/17 19:26:06,24.812,24.812,5.750,24.8,32.4,54.1
|
||||
2014/01/17 19:26:18,24.812,24.812,5.812,24.8,32.5,54.1
|
||||
2014/01/17 19:26:29,24.812,24.812,5.812,24.8,32.5,54.1
|
||||
2014/01/17 19:26:42,24.812,24.750,5.812,24.8,33.0,54.1
|
||||
2014/01/17 19:26:53,24.812,24.750,5.812,24.8,32.4,54.1
|
||||
2014/01/17 19:27:05,24.812,24.750,5.812,24.8,32.5,54.1
|
||||
2014/01/17 19:27:17,24.750,24.750,5.812,24.7,33.2,53.5
|
||||
2014/01/17 19:27:29,24.812,24.750,5.875,24.7,33.2,54.1
|
||||
2014/01/17 19:27:41,24.812,24.750,5.875,24.7,32.6,54.1
|
||||
2014/01/17 19:27:53,24.812,24.750,5.875,24.7,33.3,54.1
|
||||
2014/01/17 19:28:04,24.812,24.812,5.875,24.7,32.7,54.1
|
||||
2014/01/17 19:28:16,24.812,24.812,5.937,24.7,32.7,54.1
|
||||
2014/01/17 19:28:28,24.812,24.750,5.750,24.7,32.7,53.5
|
||||
2014/01/17 19:28:40,24.812,24.750,5.687,24.7,33.3,54.1
|
||||
2014/01/17 19:28:51,24.750,24.750,5.687,24.7,32.6,54.1
|
||||
2014/01/17 19:29:03,24.750,24.750,5.687,24.7,32.6,53.5
|
||||
2014/01/17 19:29:15,24.750,24.750,5.687,24.6,33.1,53.5
|
||||
2014/01/17 19:29:27,24.750,24.750,5.625,24.7,32.5,54.1
|
||||
2014/01/17 19:29:39,24.750,24.750,5.812,24.6,32.4,54.1
|
||||
2014/01/17 19:29:51,24.750,24.750,5.875,24.6,33.0,54.1
|
||||
2014/01/17 19:30:02,24.750,24.750,5.625,24.6,32.4,53.5
|
||||
2014/01/17 19:30:15,24.750,24.750,5.500,24.6,33.0,54.1
|
||||
2014/01/17 19:30:26,24.750,24.750,5.500,24.6,32.4,53.5
|
||||
2014/01/17 19:30:38,24.750,24.750,5.500,24.6,33.0,53.5
|
||||
2014/01/17 19:30:50,24.750,24.750,5.500,24.6,32.4,53.5
|
||||
2014/01/17 19:31:01,24.750,24.750,5.625,24.6,32.4,54.1
|
||||
2014/01/17 19:31:13,24.750,24.687,5.625,24.6,32.4,54.1
|
||||
2014/01/17 19:31:25,24.750,24.687,5.562,24.6,32.3,54.1
|
||||
2014/01/17 19:31:37,24.687,24.687,5.500,24.6,33.0,54.1
|
||||
2014/01/17 19:31:48,24.687,24.750,5.500,24.6,32.4,54.1
|
||||
2014/01/17 19:32:00,24.687,24.687,5.500,24.6,32.3,54.1
|
||||
2014/01/17 19:32:12,24.687,24.687,5.437,24.6,32.4,54.1
|
||||
2014/01/17 19:32:23,24.687,24.687,5.500,24.6,32.4,54.1
|
||||
2014/01/17 19:32:35,24.687,24.687,5.500,24.5,33.0,54.1
|
||||
2014/01/17 19:32:47,24.687,24.687,5.500,24.5,32.9,54.1
|
||||
2014/01/17 19:33:00,24.687,24.687,5.500,24.5,33.0,54.1
|
||||
2014/01/17 19:33:11,24.687,24.687,5.500,24.6,32.4,53.5
|
||||
2014/01/17 19:33:23,24.687,24.687,5.437,24.5,33.0,54.1
|
||||
2014/01/17 19:33:35,24.687,24.687,5.437,24.5,32.3,53.5
|
||||
2014/01/17 19:33:47,24.687,24.687,5.437,24.5,33.0,54.1
|
||||
2014/01/17 19:33:59,24.687,24.687,5.500,24.5,32.3,53.5
|
||||
2014/01/17 19:34:11,24.687,24.687,5.625,24.5,32.4,53.5
|
||||
2014/01/17 19:34:22,24.687,24.687,5.625,24.5,32.4,53.5
|
||||
2014/01/17 19:34:34,24.625,24.625,5.625,24.5,32.4,53.5
|
||||
2014/01/17 19:34:45,24.625,24.625,5.750,24.5,32.3,54.1
|
||||
2014/01/17 19:34:58,24.625,24.687,5.750,24.5,33.0,54.1
|
||||
2014/01/17 19:35:09,24.625,24.687,5.812,24.5,32.3,54.1
|
||||
2014/01/17 19:35:21,24.625,24.687,5.750,24.5,32.3,54.1
|
||||
2014/01/17 19:35:33,24.625,24.687,5.812,24.5,33.0,53.5
|
||||
2014/01/17 19:35:45,24.625,24.687,5.875,24.5,32.3,54.1
|
||||
2014/01/17 19:35:57,24.625,24.625,5.937,24.5,33.0,53.5
|
||||
2014/01/17 19:36:09,24.625,24.625,5.937,24.5,32.4,53.5
|
||||
2014/01/17 19:36:20,24.625,24.625,5.875,24.5,32.3,54.1
|
||||
2014/01/17 19:36:32,24.625,24.625,5.750,24.5,32.3,54.1
|
||||
2014/01/17 19:36:45,24.625,24.625,5.812,24.5,33.0,54.1
|
||||
2014/01/17 19:36:57,24.625,24.625,5.875,24.4,32.8,54.1
|
||||
2014/01/17 19:37:08,24.625,24.625,5.875,24.5,32.3,54.1
|
||||
2014/01/17 19:37:20,24.625,24.625,5.875,24.5,32.4,53.5
|
||||
2014/01/17 19:37:32,24.625,24.625,5.937,24.4,32.9,53.5
|
||||
2014/01/17 19:37:44,24.625,24.625,5.875,24.5,32.4,53.5
|
||||
2014/01/17 19:37:56,24.625,24.625,5.937,24.5,32.3,54.1
|
||||
2014/01/17 19:38:07,24.562,24.625,6.000,24.5,32.4,54.1
|
||||
2014/01/17 19:38:19,24.625,24.625,6.000,24.5,32.4,54.1
|
||||
2014/01/17 19:38:30,24.625,24.625,6.000,24.5,32.5,54.1
|
||||
2014/01/17 19:38:42,24.625,24.625,6.062,24.5,32.5,54.1
|
||||
2014/01/17 19:38:53,24.625,24.625,6.125,24.5,32.6,54.1
|
||||
2014/01/17 19:39:05,24.625,24.625,6.062,24.5,32.6,54.1
|
||||
2014/01/17 19:39:17,24.625,24.625,6.000,24.6,34.6,54.1
|
||||
2014/01/17 19:39:28,24.625,24.625,6.062,24.6,33.5,54.1
|
||||
2014/01/17 19:39:40,24.625,24.625,6.000,24.6,33.0,53.5
|
||||
2014/01/17 19:39:51,24.750,24.687,6.062,24.8,58.8,53.5
|
||||
2014/01/17 19:40:03,24.750,24.687,6.125,24.8,40.8,54.1
|
||||
2014/01/17 19:40:15,24.750,24.687,6.125,24.8,35.5,54.6
|
||||
2014/01/17 19:40:28,24.750,24.687,6.125,24.9,78.1,54.1
|
||||
2014/01/17 19:40:40,24.812,24.687,6.125,25.3,96.1,54.1
|
||||
2014/01/17 19:40:51,24.812,24.750,6.062,25.3,59.2,54.1
|
||||
2014/01/17 19:41:04,24.812,24.750,5.937,25.2,41.4,53.5
|
||||
2014/01/17 19:41:19,24.812,24.750,5.937,25.2,36.9,54.1
|
||||
2014/01/17 19:41:43,24.875,24.750,5.937,25.2,33.3,53.5
|
||||
2014/01/17 19:41:54,24.875,24.750,5.875,25.2,33.1,54.1
|
||||
2014/01/17 19:42:06,24.875,24.750,5.875,25.1,33.2,54.1
|
||||
2014/01/17 19:42:18,24.875,24.812,5.875,25.1,33.6,54.1
|
||||
2014/01/17 19:42:30,24.875,24.812,5.875,25.1,34.2,54.1
|
||||
2014/01/17 19:42:41,24.875,24.812,5.875,25.1,33.8,53.5
|
||||
2014/01/17 19:42:53,24.937,24.812,5.750,25.1,33.1,54.1
|
||||
2014/01/17 19:43:04,24.937,24.812,5.875,25.1,33.0,54.1
|
||||
2014/01/17 19:43:18,24.937,24.812,5.875,25.0,33.5,54.1
|
||||
2014/01/17 19:49:01,24.937,24.875,6.062,24.9,32.9,49.8
|
||||
2014/01/17 19:49:14,24.937,24.875,6.000,24.9,33.5,50.3
|
||||
2014/01/17 19:49:27,24.937,24.875,6.000,24.9,33.5,50.3
|
||||
2014/01/17 19:49:40,24.937,24.875,6.000,24.9,33.6,51.4
|
||||
2014/01/17 19:49:52,24.937,24.875,6.000,24.9,33.6,50.3
|
||||
2014/01/17 19:50:04,24.937,24.937,6.000,24.9,32.9,50.8
|
||||
2014/01/17 19:50:15,24.937,24.875,5.937,24.9,32.9,50.8
|
||||
2014/01/17 20:11:01,25.062,25.000,6.125,25.1,33.3,54.1
|
||||
2014/01/17 20:11:12,25.062,25.000,6.125,25.0,33.3,53.5
|
||||
2014/01/17 20:11:24,25.062,25.000,6.125,25.0,33.3,53.5
|
||||
2014/01/17 20:11:36,25.062,25.000,6.187,24.9,33.9,54.1
|
||||
2014/01/17 20:11:48,25.062,25.062,6.187,24.9,33.8,54.6
|
||||
2014/01/17 20:12:00,25.062,25.062,6.187,25.0,33.2,54.6
|
||||
2014/01/17 20:12:11,25.062,25.000,6.187,25.0,33.1,54.1
|
||||
2014/01/17 20:12:23,25.062,25.000,6.187,25.0,33.1,54.1
|
||||
2014/01/17 20:12:35,25.062,25.000,6.187,25.0,33.3,54.1
|
||||
2014/01/17 20:12:47,25.062,25.062,6.187,25.0,33.3,53.5
|
||||
2014/01/17 20:12:58,25.062,25.000,6.125,25.0,33.2,54.1
|
||||
2014/01/17 20:13:11,25.062,25.062,6.062,25.0,33.8,54.1
|
||||
2014/01/17 20:13:23,25.062,25.000,6.125,25.0,33.2,54.1
|
||||
2014/01/17 20:13:34,25.062,25.000,6.125,25.0,33.2,54.1
|
||||
2014/01/17 20:13:46,25.062,25.062,6.125,25.0,33.2,54.6
|
||||
2014/01/17 20:13:58,25.062,25.062,6.125,25.0,33.9,54.1
|
||||
2014/01/17 20:14:11,25.062,25.062,6.187,25.0,33.9,53.5
|
||||
2014/01/17 20:14:23,25.062,25.062,6.187,25.0,33.9,54.1
|
||||
2014/01/17 20:14:35,25.062,25.000,6.187,25.0,33.3,54.1
|
||||
2014/01/17 20:14:46,25.062,25.062,6.250,25.0,33.3,53.5
|
||||
2014/01/17 20:14:58,25.062,25.000,6.250,25.0,33.3,54.6
|
||||
2014/01/17 20:15:10,25.062,25.062,6.250,25.0,33.3,54.1
|
||||
2014/01/17 20:15:21,25.062,25.062,6.250,25.0,33.3,53.5
|
||||
2014/01/17 20:15:41,25.062,25.062,6.187,25.0,33.3,53.5
|
||||
2014/01/17 20:15:58,25.062,25.062,6.250,25.0,34.9,54.6
|
||||
2014/01/17 20:16:10,25.062,25.062,6.312,25.0,34.3,54.1
|
||||
2014/01/17 20:16:23,25.062,25.062,6.250,25.0,34.4,54.1
|
||||
2014/01/17 20:16:34,25.125,25.062,6.187,25.0,33.6,54.1
|
||||
2014/01/17 20:16:46,25.062,25.062,6.187,25.1,33.6,54.1
|
||||
2014/01/17 20:16:57,25.062,25.062,6.250,25.0,33.9,54.1
|
||||
2014/01/17 20:17:09,25.062,25.062,6.312,25.0,34.0,54.1
|
||||
2014/01/17 20:17:21,25.062,25.062,6.312,25.0,34.8,54.1
|
||||
2014/01/17 20:17:33,25.125,25.062,6.312,25.1,34.1,54.1
|
||||
2014/01/17 20:20:25,25.125,25.125,6.250,25.0,34.2,54.1
|
||||
2014/01/17 20:20:36,25.125,25.125,6.187,25.1,33.5,54.1
|
||||
2014/01/17 20:20:49,25.125,25.125,6.125,25.0,34.3,54.6
|
||||
2014/01/17 20:21:00,25.125,25.062,6.125,25.0,33.6,54.1
|
||||
2014/01/17 20:21:12,25.125,25.062,6.187,25.1,33.5,54.1
|
||||
2014/01/17 20:21:24,25.125,25.125,6.187,25.1,33.6,54.1
|
||||
2014/01/17 20:21:36,25.125,25.125,6.187,25.0,34.3,54.6
|
||||
2014/01/17 20:21:48,25.125,25.125,6.187,25.1,34.3,54.1
|
||||
2014/01/17 20:22:01,25.125,25.125,6.187,25.0,34.3,54.1
|
|
43
export.sh
43
export.sh
|
@ -6,6 +6,7 @@ Summe=0
|
|||
min=$(echo "scale=3; $(grep 't=' /sys/bus/w1/devices/w1_bus_master1/10-00080277abe1/w1_slave | awk -F 't=' '{print $2}') / 1000" | bc -l) # Sowohl Minimum als auch Maximum auf die aktuelle Temperatur setzen
|
||||
max=$min
|
||||
r=0 # Backup-Zahl auf Null setzen
|
||||
IFS="; " #Spezial-Variable, enthält Trennzeichen zum Trennen von Luftdruck und -temperatur
|
||||
if [ $1 ]
|
||||
then
|
||||
case "$1" in
|
||||
|
@ -54,6 +55,10 @@ do
|
|||
done
|
||||
luft_temp=$(echo $luft_roh | cut -c 8,9,10,11)
|
||||
luft_feucht=$(echo $luft_roh | cut -c 23,24,25,26)
|
||||
druck_roh=$(sudo python Fremddateien/Adafruit_BMP085_auswertung.py)
|
||||
set -- $druck_roh #Zerlegen mithilfe von IFS (siehe ganz oben)
|
||||
temp_druck=$1
|
||||
druck=$2
|
||||
uhrzeit=$(date +%H:%M:%S)
|
||||
uhrzeit_dy=$(date +%Y/%m/%d\ %H:%M:%S)
|
||||
|
||||
|
@ -72,27 +77,29 @@ do
|
|||
|
||||
#Mathematische Auswertung Ende
|
||||
ausgabe=${uhrzeit}\,${temp1}\,${temp2}
|
||||
ausgabe_dy=${uhrzeit_dy}\,${temp1}\,${temp2}\,${temp3}\,${luft_temp}\,${luft_feucht},${rasp}
|
||||
ausgabe_dy=${uhrzeit_dy}\,${temp1}\,${temp2}\,${temp3}\,${luft_temp}\,${luft_feucht}\,${druck}\,${temp_druck}\,${rasp}
|
||||
echo $ausgabe >>rohdaten.csv
|
||||
echo $ausgabe_dy >>dygraph.csv
|
||||
echo "$uhrzeit_dy ,${temp1},${temp2},${temp3},${luft_temp},${luft_feucht},${rasp} " #Ausgabe des aktuellen Wertes im Terminal
|
||||
sed "s/,/ /g" rohdaten.csv >daten_gnuplot.txt #für Gnuplot die Beistriche durch Leerzeichen ersetzen
|
||||
echo "Uhrzeit:" >text.txt #Anzeige für Display
|
||||
echo "$uhrzeit" >>text.txt #Anzeige für Display
|
||||
echo "Geraetetemp 1" >>text.txt #Anzeige für Display
|
||||
echo "$temp1" >>text.txt #Anzeige für Display
|
||||
echo "Geraetetemp 2" >>text.txt #Anzeige für Display
|
||||
echo "$temp2" >>text.txt #Anzeige für Display
|
||||
echo "Aussentemperatur" >>text.txt #Anzeige für Display
|
||||
echo "$temp3" >>text.txt #Anzeige für Display
|
||||
echo "Temperatur/Luft" >>text.txt #Anzeige für Display
|
||||
echo "$luft_temp" >>text.txt #Anzeige für Display
|
||||
echo "Luftfeuchtigkeit" >>text.txt #Anzeige für Display
|
||||
echo "$luft_feucht" >>text.txt #Anzeige für Display
|
||||
echo "Prozessor" >>text.txt #Anzeige für Display
|
||||
echo "$rasp" >>text.txt #Anzeige für Display
|
||||
echo "$uhrzeit_dy ${temp1},${temp2},${temp3},${luft_temp},${luft_feucht},${druck},${temp_druck},${rasp}" #Ausgabe des aktuellen Wertes im Terminal
|
||||
# sed "s/,/ /g" dygraph.csv >daten_gnuplot.txt #für Gnuplot die Beistriche durch Leerzeichen ersetzen
|
||||
echo "Uhrzeit:" >text.txt #Anzeigen für Display
|
||||
echo "$uhrzeit" >>text.txt
|
||||
echo "Geraetetemp 1" >>text.txt
|
||||
echo "$temp1" >>text.txt
|
||||
echo "Geraetetemp 2" >>text.txt
|
||||
echo "$temp2" >>text.txt
|
||||
echo "Aussentemperatur" >>text.txt
|
||||
echo "$temp3" >>text.txt
|
||||
echo "Temperatur/Luft" >>text.txt
|
||||
echo "$luft_temp" >>text.txt
|
||||
echo "Temp./Druck" >>text.txt
|
||||
echo "$luft_feucht" >>text.txt
|
||||
echo "Luftdruck" >>text.txt
|
||||
echo "$luft_feucht" >>text.txt
|
||||
echo "Prozessor" >>text.txt
|
||||
echo "$rasp" >>text.txt
|
||||
# ./transpose.sh #anderes Skript starten, welches die Daten für Highchart vorbereitet
|
||||
# gnuplot Einstellungen # Gnuplot starten
|
||||
# gnuplot Einstellungen.plt # Gnuplot starten
|
||||
# sudo cp gnuplot.svg ${PFAD}gnuplot.svg # das generierte Bild ...
|
||||
# sudo cp daten_transformiert.txt ${PFAD}daten_transformiert.txt # ... und die Tabelle für Highchart in den Webordner kopieren
|
||||
sudo cp dygraph.csv ${PFAD}dygraph.csv
|
||||
|
|
142
rohdaten.csv
142
rohdaten.csv
|
@ -1,142 +0,0 @@
|
|||
|
||||
19:25:06,24.812,24.750
|
||||
19:25:20,24.812,24.750
|
||||
19:25:31,24.812,24.750
|
||||
19:25:43,24.812,24.750
|
||||
19:25:55,24.812,24.750
|
||||
19:26:06,24.812,24.812
|
||||
19:26:18,24.812,24.812
|
||||
19:26:29,24.812,24.812
|
||||
19:26:42,24.812,24.750
|
||||
19:26:53,24.812,24.750
|
||||
19:27:05,24.812,24.750
|
||||
19:27:17,24.750,24.750
|
||||
19:27:29,24.812,24.750
|
||||
19:27:41,24.812,24.750
|
||||
19:27:53,24.812,24.750
|
||||
19:28:04,24.812,24.812
|
||||
19:28:16,24.812,24.812
|
||||
19:28:28,24.812,24.750
|
||||
19:28:40,24.812,24.750
|
||||
19:28:51,24.750,24.750
|
||||
19:29:03,24.750,24.750
|
||||
19:29:15,24.750,24.750
|
||||
19:29:27,24.750,24.750
|
||||
19:29:38,24.750,24.750
|
||||
19:29:51,24.750,24.750
|
||||
19:30:02,24.750,24.750
|
||||
19:30:15,24.750,24.750
|
||||
19:30:26,24.750,24.750
|
||||
19:30:38,24.750,24.750
|
||||
19:30:50,24.750,24.750
|
||||
19:31:01,24.750,24.750
|
||||
19:31:13,24.750,24.687
|
||||
19:31:25,24.750,24.687
|
||||
19:31:37,24.687,24.687
|
||||
19:31:48,24.687,24.750
|
||||
19:32:00,24.687,24.687
|
||||
19:32:12,24.687,24.687
|
||||
19:32:23,24.687,24.687
|
||||
19:32:35,24.687,24.687
|
||||
19:32:47,24.687,24.687
|
||||
19:33:00,24.687,24.687
|
||||
19:33:11,24.687,24.687
|
||||
19:33:23,24.687,24.687
|
||||
19:33:35,24.687,24.687
|
||||
19:33:47,24.687,24.687
|
||||
19:33:59,24.687,24.687
|
||||
19:34:11,24.687,24.687
|
||||
19:34:22,24.687,24.687
|
||||
19:34:34,24.625,24.625
|
||||
19:34:45,24.625,24.625
|
||||
19:34:58,24.625,24.687
|
||||
19:35:09,24.625,24.687
|
||||
19:35:21,24.625,24.687
|
||||
19:35:33,24.625,24.687
|
||||
19:35:45,24.625,24.687
|
||||
19:35:57,24.625,24.625
|
||||
19:36:09,24.625,24.625
|
||||
19:36:20,24.625,24.625
|
||||
19:36:32,24.625,24.625
|
||||
19:36:45,24.625,24.625
|
||||
19:36:57,24.625,24.625
|
||||
19:37:08,24.625,24.625
|
||||
19:37:20,24.625,24.625
|
||||
19:37:32,24.625,24.625
|
||||
19:37:44,24.625,24.625
|
||||
19:37:56,24.625,24.625
|
||||
19:38:07,24.562,24.625
|
||||
19:38:19,24.625,24.625
|
||||
19:38:30,24.625,24.625
|
||||
19:38:42,24.625,24.625
|
||||
19:38:53,24.625,24.625
|
||||
19:39:05,24.625,24.625
|
||||
19:39:17,24.625,24.625
|
||||
19:39:28,24.625,24.625
|
||||
19:39:40,24.625,24.625
|
||||
19:39:51,24.750,24.687
|
||||
19:40:03,24.750,24.687
|
||||
19:40:15,24.750,24.687
|
||||
19:40:28,24.750,24.687
|
||||
19:40:40,24.812,24.687
|
||||
19:40:51,24.812,24.750
|
||||
19:41:04,24.812,24.750
|
||||
19:41:19,24.812,24.750
|
||||
19:41:43,24.875,24.750
|
||||
19:41:54,24.875,24.750
|
||||
19:42:06,24.875,24.750
|
||||
19:42:18,24.875,24.812
|
||||
19:42:30,24.875,24.812
|
||||
19:42:41,24.875,24.812
|
||||
19:42:53,24.937,24.812
|
||||
19:43:04,24.937,24.812
|
||||
19:43:18,24.937,24.812
|
||||
19:49:01,24.937,24.875
|
||||
19:49:14,24.937,24.875
|
||||
19:49:27,24.937,24.875
|
||||
19:49:40,24.937,24.875
|
||||
19:49:52,24.937,24.875
|
||||
19:50:04,24.937,24.937
|
||||
19:50:15,24.937,24.875
|
||||
20:11:01,25.062,25.000
|
||||
20:11:12,25.062,25.000
|
||||
20:11:24,25.062,25.000
|
||||
20:11:36,25.062,25.000
|
||||
20:11:48,25.062,25.062
|
||||
20:12:00,25.062,25.062
|
||||
20:12:11,25.062,25.000
|
||||
20:12:23,25.062,25.000
|
||||
20:12:35,25.062,25.000
|
||||
20:12:47,25.062,25.062
|
||||
20:12:58,25.062,25.000
|
||||
20:13:11,25.062,25.062
|
||||
20:13:23,25.062,25.000
|
||||
20:13:34,25.062,25.000
|
||||
20:13:46,25.062,25.062
|
||||
20:13:58,25.062,25.062
|
||||
20:14:11,25.062,25.062
|
||||
20:14:23,25.062,25.062
|
||||
20:14:35,25.062,25.000
|
||||
20:14:46,25.062,25.062
|
||||
20:14:58,25.062,25.000
|
||||
20:15:10,25.062,25.062
|
||||
20:15:21,25.062,25.062
|
||||
20:15:41,25.062,25.062
|
||||
20:15:58,25.062,25.062
|
||||
20:16:10,25.062,25.062
|
||||
20:16:23,25.062,25.062
|
||||
20:16:34,25.125,25.062
|
||||
20:16:46,25.062,25.062
|
||||
20:16:57,25.062,25.062
|
||||
20:17:09,25.062,25.062
|
||||
20:17:21,25.062,25.062
|
||||
20:17:33,25.125,25.062
|
||||
20:20:25,25.125,25.125
|
||||
20:20:36,25.125,25.125
|
||||
20:20:49,25.125,25.125
|
||||
20:21:00,25.125,25.062
|
||||
20:21:12,25.125,25.062
|
||||
20:21:24,25.125,25.125
|
||||
20:21:36,25.125,25.125
|
||||
20:21:48,25.125,25.125
|
||||
20:22:01,25.125,25.125
|
|
14
text.txt
14
text.txt
|
@ -1,14 +0,0 @@
|
|||
Uhrzeit:
|
||||
20:22:01
|
||||
Geraetetemp 1
|
||||
25.125
|
||||
Geraetetemp 2
|
||||
25.125
|
||||
Aussentemperatur
|
||||
6.187
|
||||
Temperatur/Luft
|
||||
25.0
|
||||
Luftfeuchtigkeit
|
||||
34.3
|
||||
Prozessor
|
||||
54.1
|
Reference in a new issue