Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eprev/wirejs
Service for monitoring 1-Wire devices connected to Raspberry Pi
https://github.com/eprev/wirejs
1-wire diy graphite raspberry-pi temperature-monitoring temperature-sensor
Last synced: 22 days ago
JSON representation
Service for monitoring 1-Wire devices connected to Raspberry Pi
- Host: GitHub
- URL: https://github.com/eprev/wirejs
- Owner: eprev
- License: mit
- Created: 2016-05-15T15:39:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-18T19:44:59.000Z (over 8 years ago)
- Last Synced: 2024-10-24T23:30:35.116Z (2 months ago)
- Topics: 1-wire, diy, graphite, raspberry-pi, temperature-monitoring, temperature-sensor
- Language: JavaScript
- Size: 641 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wire.js
Tiny service for Raspberry Pi, that monitors 1-Wire devices connected to the board and writes its data to Graphite.
![Grafana](grafana.png)
Tested on the original Raspberry Pi B board (running Debian 8.0) with DS18B20 temperature sensors.
## Installation
Wire.js runs on Node.js 6+.
### Using a pre-build package
```
$ wget https://github.com/eprev/wirejs/releases/download/v1.0.0/wirejs_1.0.0_armhf.deb
$ sudo dpkg --install wirejs_1.0.0_armhf.deb
```This will install Wire.js to `/opt/wirejs`.
### Bulding from the sources
```
$ git clone [email protected]:eprev/wirejs.git
$ cd wirejs
$ make release
```## Configutation
Copy `/opt/wirejs/etc/wire.sample.json` to `/opt/wirejs/etc/wire.json`.
Edit `/opt/wirejs/etc/wire.json`:
```js
{
"carbon": {
"host": "localhost",
"port": "2003"
},
"path": "/sys/bus/w1/devices", /* This is default path to 1-Wire devices */
"devices": [{
"id": "28-0000049a0f4a", /* Device ID */
"type": "temperature", /* Device Type (only `temperature` is supported for the time being) */
"name": "home.temp.inside", /* Graphite metric's name */
"interval": "60" /* How often read from the device (in seconds) */
}/*, ...*/]
}
```## Running the service
```
# systemctl enable wirejs
# systemctl start wirejs
```To see the log:
```
# journalctl -f -u wirejs
```