Subject: w1 stuff
From: Étienne Wodey <[email-masked]>
To: [email-masked]
Date: Wed, 20 Jun 2018 15:21:37 +0200

https://collectd.org/

====================================================
/etc/collectd.conf
====================================================

LoadPlugin python

<Plugin python>
     ModulePath "the path to the python modules"

     Import w1_therm_monitor

     <Module w1_therm_monitor>
         Master "w1_bus_master1"
         MaxTemp 100
     </Module>
</Plugin>

# write to influxdb
<Plugin network>
     <Server "server.iqo.uni-hannover.de" "25826">
         SecurityLevel "None"
         Username "the username"
         Password "the password"
     </Server>
</Plugin>

====================================================

====================================================
/etc/influxdb/influxdb.conf
====================================================
[[collectd]]
   enabled = true
   bind-address = ":25826"
   database = "the name of the database"
   # retention-policy = ""
   # typesdb = "/usr/share/collectd/types.db"

   # These next lines control how batching works. You should have this enabled
   # otherwise you could get dropped metrics or poor performance. Batching
   # will buffer points in memory if you have many coming in.

   # Flush if this many points get buffered
   batch-size = 3000

   # Number of batches that may be pending in memory
   batch-pending = 5

   # Flush at least this often even if we haven't hit buffer limit
   # batch-timeout = "10s"

   # UDP Read buffer size, 0 means OS default. UDP listener will fail  
if set above OS max.
   # read-buffer = 0
====================================================

====================================================
w1 stuff
====================================================

Go to /sys/devices, there are folders called "w1_bus_master<N>". The  
collectd module reads "w1_master_slaves", takes all the serial numbers  
starting with "28" (DS18B20 family) or "3b" (MAX31850 family) and  
reads the corresponding slave files (i.e. the temperatures).

Important: it gets automatically new slaves but doesn't support  
removing slaves while running.
-- 
Étienne Wodey
Institut für Quantenoptik
Leibniz Universität Hannover
Welfengarten 1
D-30167 Hannover
Tel.: +49 (0) 511 / 762 4107