Skip to content

neerolyte/select-live-influx

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Select.Live Influx

A utility to read performance data from a Select.Live device and send to InfluxDB.

The end goal is to render performance data in Grafana, but the storage in InfluxDB is not specific to Grafana so may be useful in other cases.

The easiest way to have Grafana render the data appears to store it in InfluxDB and the easiest way to capture data from a SP Pro is to query the Select.Live device if one is already in place - so that's what this code does.

Grafana Example

Grafana Example Screen Shot

Installing in Raspbian using Docker

This isn't best practice - it's just what I'm doing for now to get it running on a Raspberry Pi.

Install pre-requisists:

root@rasp:~# apt install git docker.io

Create a user that can run Docker:

root@rasp:~# useradd -m select-influx
root@rasp:~# usermod -aG docker select-influx

Clone the repo:

root@rasp:~# cd /opt
root@rasp:/opt# 
root@rasp:/opt# git clone https://github.com/neerolyte/select-live-influx.git

Create a .env file:

root@rasp:/opt# cp ./select-live-influx/.env{.dist,}

Edit /opt/select-live-influx/.env to suit your installation.

Create a service file at /etc/systemd/system/select-live-influx.service with contents:

[Unit]
Description=Select live influx
After=network.target

[Service]
ExecStart=/opt/select-live-influx/scripts/docker node index.js
#ExecStart=/usr/bin/node index.js
WorkingDirectory=/opt/select-live-influx
StandardOutput=inherit
StandardError=inherit
Restart=always
User=select-influx

[Install]
WantedBy=multi-user.target

Ask systemd to enable and start the service:

root@rasp:~# systemctl reenable select-live-influx
Created symlink /etc/systemd/system/multi-user.target.wants/select-live-influx.service → /etc/systemd/system/select-live-influx.service.
root@rasp:~# systemctl restart select-live-influx

Alternatives

About

Select.live influxdb integration - Display Selectronic SP Pro status in Grafana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published