Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefansundin/temper-collectd
:snowflake: Collectd support for TEMPer USB Device.
https://github.com/stefansundin/temper-collectd
collectd linux temper
Last synced: 14 days ago
JSON representation
:snowflake: Collectd support for TEMPer USB Device.
- Host: GitHub
- URL: https://github.com/stefansundin/temper-collectd
- Owner: stefansundin
- Created: 2015-11-15T21:31:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-02T00:37:29.000Z (about 8 years ago)
- Last Synced: 2024-11-02T00:23:47.215Z (2 months ago)
- Topics: collectd, linux, temper
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install
Python 3:
```shell
sudo apt-get install python3-usb python3-pip
sudo pip3 install -r requirements.txt
sudo cp 60-temper.rules /lib/udev/rules.d/
sudo ln -s `pwd`/temper.py /usr/local/bin/temper.py
```Python 2:
```shell
sudo apt-get install python-usb python-pip
sudo pip install -r requirements.txt
sudo cp 60-temper.rules /lib/udev/rules.d/
sudo ln -s `pwd`/temper.py /usr/local/bin/temper.py
```## collectd.conf
```
LoadPlugin execInterval 60
Exec "your_username:input" "/usr/local/bin/temper.py"```
```shell
sudo service collectd restart
```## graph example
```
COLLECTD=/var/lib/collectd/rrd/raspberrypi/rrdtool graph graphs/1d_temp.png \
--start -86400 \
--end now \
-w 1200 -h 400 \
-a PNG \
--slope-mode \
--title "temp (1 day)" \
--watermark "$DATE" \
--vertical-label "Temperature (C)" \
--x-grid HOUR:1:HOUR:6:HOUR:1:0:%H \
DEF:temp1=$COLLECTD/temper-0/temperature.rrd:value:AVERAGE \
LINE1:temp1#ff0000:"temper" \
> /dev/nullrrdtool graph 1m_temp.png \
--start -2592000 \
--end now \
-w 1200 -h 400 \
-a PNG \
--slope-mode \
--title "temp (1 month)" \
--watermark "$DATE" \
--vertical-label "Temperature (C)" \
--x-grid HOUR:4:WEEK:1:DAY:1:0:%d \
DEF:temp1=$COLLECTD/temper-0/temperature.rrd:value:AVERAGE \
LINE1:temp1#ff0000:"temper" \
> /dev/null
```