A piece of software to fetch, parse and store data from APRS weather stations into RRD files, MySQL database and on generated HTML website. Currently the software supports communication with APRS-IS servers using standard text-based protocol (it can monitor two different stations at once), communication directly with the APRS radio network using KISS TNC modem connected to the serial port and communication with the Holfuy cloud API to download data collected by stations manufactured by this company.
Value of each monitored parameter could come from different source, so for instance temperature could be fetched from primary APRS-IS station, pressure could come from secondary APRS-IS station and the rest could be collected from Holfuy cloud API. Data processing chain involves such steps:
- Parsing data incoming from APRS-IS connection and Serial port.
- Downloading data from Holfuy cloud API if it is enabled.
- Merging data from differenct sources into one dataset.
- Applying the slew limitation to rub out any peaking measurement noise.
- Applying the wind direction correction if it is enabled, to remove known offset coming from wind sensor misalignment.
- Calculating differences for the same parameters between different data sources according to a user configuration.
- Storing results in RRD files and optionally in MySQL database.
- Generating set of plots from RRD files with a simple HTML file.
The most recent release version of APRS2RRD is 1.3.2, which should be coosen from git repository using command 'git checkout 1.3.2'. Please be aware that master branch is used to daily development and 'mainline' source coud even not compile in certain situations.
APRS2RRD is intended to be used in Linux environment and it is developed and tested using this operating system. APRS2RRD uses Boost C++ library instead of platform specific calls hence compilation under Windows environment should be theoretically possible, unless apropriate binary version of Boost C++ will be avaliable.
- g++ and make
- libboost and libboost-dev, version 1.58 or newer (pakages: asio, thread, date-time, regex, system)
- libconfig++ and libconfig++-dev, version 1.5
- libmysql++ and libmysql++-dev, version 3.2.2
- libxerces-c and libxerces-c-dev
- libcurl and libcurl-dev
If system has xerces-c in version 9.1 installed (like Debian 9 or Ubuntu 16.04/16.10) please use configuration Debug or Relese. If You are using xerces-c 9.2 (like Ubuntu 20.xx) please build using Debug_xerces_3_2 or Release_xerces_3_2
Actually the APRS2RRD cannot run in background as a daemon so 'screen' command must be used to start it in background. Please look into 'doc' directory where example rc.aprs2rrd and rc.skrzyczne startup scripts are placed, along with example configuration files. It is strongly advised to run APRS2RRD as a separate non-root user with minial privileges required. Please remember that APRS2RRD executable must have a read-write access to all RRD files and directory where they are stored and also to directory where it will generate HTML and PNG files with plots.
Mateusz Lubecki email: email@example.com
Bielsko-Biała 2019, 2020