Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.14 KB

Prerequisites

  • xmlstarlet - bash XML parsing
  • rrdtool - bash RRD processing
  • apache2 - for serving the app via HTTP

Modules

Weather Forecast

The script bin/weather-forecast.sh retrieves a 4 day forecast from the Google weather API. It downloads the XML and the referenced images and puts all into the sub-folder tmp/weather. The XML and the images are used by the klimalogger-ui to display a 4 day forecast.

RRD

The script bin/rrd.sh takes a CSV file with a klimalogger dump as provided by the klimalogger tools (tfa_dump) and creates RRD files from it as well as PNG images. The files can be found in the sub-folder tmp/data.

Installation

Crontab

Wheather Forecast

KLIMALOGGER_HOME=/home/pi/workspaces/klimalogger/klimalogger-ui
0 0 * * *   $KLIMALOGGER_HOME/bin/weather-forecast.sh

Temperature

KLIMALOGGER_HOME=/home/pi/workspaces/klimalogger/klimalogger-ui
*/5 * * * * $KLIMALOGGER_HOME/bin/dump....

Libraries

The following libraries are used by the klimalogger-ui application: