{"repo":"dietah/nut-http","free":true,"listed":false,"github":"https://github.com/dietah/nut-http","clone":"git clone https://github.com/dietah/nut-http.git","description":"An API wrapper that outputs the upsc command as a JSON output","language":"JavaScript","stars":28,"topics":["nut","upsc","api","telegraf","javascript","influxdb","grafana"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"nut-http A HTTP API that wraps output of the upsc command as a JSON output and serves it on an endpoint. Meant to be used in a Docker environment and dependent on nut-upsd to serve as data input. Backstory Everybody knows what it feels like to set up a server or a Pi or a configuration for that matter with a tutorial, but once it crashes or you need to look into a problem later on you don't know what you did anymore. I'm used to working with a microservice based architecture at work, including Docker and Kubernetes and see the benefits of having something similar at home. I have a UPS (Uninterruptible Power Supply) and would like to have geeky metrics on that without using a lot of custom stuff so I started to look into solutions that I could manage on the long term. My NAS is too old to support it and I didn't want to tincker with it. My setup includes a Raspberry Pi 4B (4GB) with an SSD and I manage everything through GitOps. For deployment I use Docker Compose. I already have InfluxDB and Grafana running with Telegraf to collect metrics so I figured it should be easy to add my UPS metrics ... NUT NUT, or Network UPS Tools is a project that provides control and monitoring features with a uniform control and management interface compatible with up to several thousand models. I found a NUT server container for arm: https://hub.docker.com/r/instantlinux/nut-upsd-arm32 which takes off the load of manual configuring the services. With only needing to map the device and a descrip","default_branch":null,"files":null,"tree":[],"storefront":"/r/dietah","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dietah/nut-http/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}