Skip to content

A small application to report temperatures from ds18b20 sensors in influx line protocol format

License

Notifications You must be signed in to change notification settings

jimmale/gosensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gosensor

A small GoLang application to read the temperatures from ds18b20 style sensors and report it to stdout in influxdb format.

This is a very good companion to Telegraf's exec input plugin.

Building

go build .

Adding to Telegraf

Copy the executable into the $PATH

cp ./gosensor /usr/local/bin/gosensor

Add this to your Telegraf configuration:

[[inputs.exec]]
  commands = [
        "gosensor"
   ]
   timeout = "60s"
   data_format = "influx"

And reload telegraf with sudo service telegraf reload

About

A small application to report temperatures from ds18b20 sensors in influx line protocol format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages