Git Product home page Git Product logo

led-simple-monitoring's Introduction

LED-Simple-Monitoring

Installation

Requires a supported release of Go. built using go 1.12.7

go get -u github.com/alonchis/LED-Simple-Monitoring

Usage

Edit led-simple-monitoring.go pinsIndex to match your setup sites to define which sites to monitor, and period to set the interval in which to check the sites

Once those are defined, run

sudo go run led-simple-monitoring.go > /var/log/led.log 2>&1 & 

logs will be written to /var/log/led.log and run in the background.

Running as system service

All commands below run as user pi build executable and add to system bin

$> sudo go build led-simple-monitorig.go
$> sudo cp ./led-simple-monitoring /usr/bin
    

copy ledmonitoring.service to /etc/systemd/system

$> sudo cp ledmonitorin.service /etc/systemd/system
$> sudo systemctl enable ledmonitoring.service
$> sudo systemctl start ledmonitoring.service

after this, led-monitoring should run automatically even after restart

stopping services

if need to stop service run sudo systemctl status

if run as background process, run ps aux | grep -i led to find PID to kill via sudo kill -0 PID

led-simple-monitoring's People

Contributors

alonchis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.