Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/system/read_serial_temperature | ||
|---|---|---|
| 2 | 2 |
""" |
| 3 | 3 |
Paul Wiegmans (p.wiegmans@bonhoeffer.nl) |
| 4 | 4 |
2009 dec 18 |
| 5 |
This munin-node plugin reads a temperature value from a serial port,
|
|
| 5 |
This munin-node plugin reads a temperature value from a serial port, |
|
| 6 | 6 |
provided by a Arduino with temperature sensor. |
| 7 | 7 |
For details see: http://amber.bonhoeffer.nl/temperatuur/ |
| 8 | 8 |
|
| ... | ... | |
| 29 | 29 |
t += 1 |
| 30 | 30 |
ser.close() |
| 31 | 31 |
|
| 32 |
# shamelessly copied from weather_temp_
|
|
| 32 |
# shamelessly copied from weather_temp_ |
|
| 33 | 33 |
|
| 34 | 34 |
if len(sys.argv) == 2 and sys.argv[1] == "autoconf": |
| 35 | 35 |
|
| ... | ... | |
| 50 | 50 |
|
| 51 | 51 |
print 'temperature.value %s' % gettemperature() |
| 52 | 52 |
|
| 53 |
|
|
| 53 |
|
|
Formats disponibles : Unified diff