The Arexxd daemon has been written by Martin Mares <mj@ucw.cz>
Requirements:
- A Linux box (may be a RaspberryPI)
- Arexx Base Station (available on www.conrad.com) and sensors
- RRDTool
- Perl
- FastCGI (optional)
For graphs:
- A web server (typically lighttpd)
- The Highcharts library (www.highcharts.com)
- The JQuery and JQuery-UI libraries (www.jquery.com)
Compiling the daemon:
- Enter the arexx/ directory and type 'make'
Installation on a system using Systemd (typically Archlinux):
- Create a user 'arexx' with home directory /var/lib/arexx
- Install lighttpd and configure it:
- Look at lighttpd/lighttpd.conf for an example (uses FastCGI)
- Look at systemd/arexxd-lighttpd.service for running a dedicated lighttpd
- Untar the web_libraries.tar.gz file to the root of the web server
- Copy the web directory content to the web server
- If using FastCGI, copy bin/fastcgi.pl to the web server (outside its root!)
- Install the UDev rule udev/bs510.rules to /etc/udev/rules.d/50-arexxd.rules
- Install the arexxd service:
- Copy arexx/arexxd to /var/lib/arexx/sbin/
- Copy lighttpd/arexxd.service to /etc/systemd/system/
- Run "systemctl enable arexxd.service"
For Arduino ESP8266+DS18B20:xi
- Create the database using the following command (replace "NAME"):
rrdtool create esp8266-NAME.rrd --step 60 DS:temp:GAUGE:300:-200:200 RRA:AVERAGE:0.25:1:20160 RRA:AVERAGE:0.25:60:88800 RRA:MIN:0.25:60:88800 RRA:MAX:0.25:60:88800