wiki:webservice

Version 5 (modified by Joachim Langenbach, 11 years ago) ( diff )

--

Webservice

Installation

Usage

Development

Features

  • Export stations / weather data in ​GeoJSON format
  • Use ​SpatiaLite extension of SQLite database for GIS information
  • May be use ​PHP SLIM to implement REST webservice

rrdtool create filename.rrd \
--step '900' \
'DS:Temp:GAUGE:1320:-100:100' \            # Temperature between -100 and +100, collected every 15 Minutes, with a heartbeat of 22 Minutes (after 22 Minutes, the value is marked as undefined, if not given within this time frame)
'DS:Humidity:GAUGE:1320:0:100' \           # Humidity between 0 and 100, collected every 15 Minutes
'DS:Pressure:GAUGE:1320:800:1200' \        # Pressure between 800 and 1200 (in hPa), collected every 15 Minutes
'RRA:AVERAGE:0.5:1:96' \                  # The base intervall (15 minutes, 1 day back - 4 x 15 = 96)
'RRA:AVERAGE:0.5:4:96' \                  # Average, max and minumum values, 1hour intervall 4 days back (1 * 96)
'RRA:MIN:0.5:4:96' \
'RRA:MAX:0.5:4:96' \
'RRA:AVERAGE:0.5:8:360' \                 # 2 hour intervall, 30 days back
'RRA:MIN:0.5:8:360' \
'RRA:MAX:0.5:8:360' \
'RRA:AVERAGE:0.5:16:2190' \               # 4 hour intervall, 1 year back
'RRA:MIN:0.5:16:2190' \
'RRA:MAX:0.5:16:2190' \
'RRA:AVERAGE:0.5:24:146000' \             # 6 hour intervall, 100 years back
'RRA:MIN:0.5:24:146000' \
'RRA:MAX:0.5:24:146000' \
'RRA:AVERAGE:0.5:48:146000' \             # 12 hour intervall, 200 years back
'RRA:MIN:0.5:24:146000' \
'RRA:MAX:0.5:24:146000'
Note: See TracWiki for help on using the wiki.