The binary is pre-compiled for x86.  Should work out of the box on debian:

./panelmonitor --help

Code currently assumes you are using a postgres databse. I'm an arrogant old
bastard and I don't care much for mysql. If you are going to all this trouble
then I'm guessing hacking the code up for MySQL is not going to be a
challenge.

I started out with python and CSV files. I thing adding a CSV option might be
a good idea, along with the ability to not use posgres. Not there yet, the
current code is working and logging as desired.

Steps to build:

LIBAX:
======

The libax library is pretty dirt simple, doesn't use any of the libtool cruft,
just compile. It creates a non-shared library of functions at /usr/lib/libax.a
and dumps a local.h header file in /usr/include.

apt-get install build-essential
cd libax && make && sudo make install

LIBMODBUS:
==========

I just downloaded a snapshot from github, but I included the one I'm using in
case something changes along the way that breaks sh*t.

sudo apt-get install libtool
cd libmodbus-master && ./configure && make && sudo make install
sudo ldconfig

HIDRELAY:
=========

Look at the readme in the folder.  This is work in progress, functions to
allow me to work with a relay device to actuate some of the switches.

cd hidrelay && make

panelmonitor:
===========
sudo apt-get install postgresql
sudo apt-get install libpq-dev

This will install a service 'panelmonitor'
make && make install
systemctl enable panelmonitor
edit /etc/panelmonitor/panelmonitor.cfg
- Salt and Pepper to taste
systemctl start panelmonitor

DOCS:
=====
Documetation folder has the manual for the sensor such that it is.
