danbates2 / config

Emoncms emonhub.conf and emoncms configuration module for low-write raspberry pi based installations of emoncms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emonHub Config Module

Emoncms emonhub.conf and emoncms configuration module for low-write raspberry pi based installations of emoncms

config

Prerequisites

Emoncms, Emonhub (emon-pi varient) should be installed

Install

Install module

cd /var/www/emoncms/Modules
git clone https://github.com/emoncms/config

Check for database updates in Emoncms admin

Change permissions on emonhub.conf to allow web user to edit

sudo chmod 666 /home/pi/data/emonhub.conf

Install sudoers entry to allow emonhub to be restarted

sudo cp emonhub-sudoers /etc/sudoers.d/
sudo chmod 0440 /etc/sudoers.d/emonhub-sudoers

Give web user permission to read the emonhub systemd log

Emonhub service has now been swtiched to using systemd, to allow the emonhub config module to read the systemd log we need to add the following group permissions.

sudo usermod -a -G systemd-journal www-data

About

Emoncms emonhub.conf and emoncms configuration module for low-write raspberry pi based installations of emoncms


Languages

Language:JavaScript 87.5%Language:PHP 12.0%Language:CSS 0.4%Language:Shell 0.0%