Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:temper [2019/08/04 21:14]
Robbie Ferguson
hardware:temper [2020/01/31 14:28] (current)
Robbie Ferguson
Line 10: Line 10:
 For optimum accuracy, it is recommended to plug your TEMPer device into a short USB extension cord so the thermal data isn't impacted by the heat pulled from the USB port of your NEMS Server. For optimum accuracy, it is recommended to plug your TEMPer device into a short USB extension cord so the thermal data isn't impacted by the heat pulled from the USB port of your NEMS Server.
 </​WRAP>​ </​WRAP>​
 +
 +===Setting up check_temper===
 +
 +Simply add //​check_temper//​ as a service to your NEMS host, having connected the TEMPer device to your NEMS Server'​s USB port. You may specify your temperature thresholds in either degrees Celsius or Fahrenheit. NEMS will automatically determine which you are using.
  
 ===Buy TEMPer Thermal Sensor=== ===Buy TEMPer Thermal Sensor===
Line 21: Line 25:
 Support is provided via [[https://​github.com/​urwen/​temper|temper]]. Support is provided via [[https://​github.com/​urwen/​temper|temper]].
  
-In the following table "​I"​ means the sensor is internal to the USB stick and "​E"​ means the sensor is on a cable that is plugged into the USB stick.+NEMS Linux 1.5.x supports TEMPer temperature data. NEMS Linux 1.6+ also includes support for humidity sensors.
  
-^ Product ^ Id ^ Firmware ^ Temp Hum ^ Notes ^ +^ Product ^ Id ^ Firmware ^ Temperature ​Humidity ^ Sensor Location ​^ Notes ^ 
-| TEMPer | 0c45:7401 | TEMPerF1.4 | | | Metal | +| TEMPer | 0c45:7401 | TEMPerF1.4 | ✔ ✘ | Internal ​| Metal | 
-| TEMPer | 413d:2107 | TEMPerGold_V3.1 | | | Metal | +| TEMPer | 413d:2107 | TEMPerGold_V3.1 | ✔ ✘ | Internal ​| Metal | 
-| TEMPerHUM | 413d:2107 | TEMPerX_V3.1 | | White plastic | +| TEMPerHUM | 413d:2107 | TEMPerX_V3.1 | ✔ ✔ | Internal ​| White plastic | 
-| TEMPer2 | 413d:2107 | TEMPerX_V3.3 | I,E | | White plastic | +| TEMPer2 | 413d:2107 | TEMPerX_V3.3 | ✔ ✘ | Internal or External ​| White plastic | 
-| TEMPer1F | 413d:2107 | TEMPerX_V3.3 | | | White plastic | +| TEMPer1F | 413d:2107 | TEMPerX_V3.3 | ✔ ✘ | External ​| White plastic | 
-| TEMPerX232 | 1a86:5523 | TEMPerX232_V2.0 | I,E | White plastic |+| TEMPerX232 | 1a86:5523 | TEMPerX232_V2.0 | ✔ | ✔ Internal or External| White plastic |
  
 ===Terminal Output=== ===Terminal Output===
Line 40: Line 44:
   - Unknown firmware ld_V3.1 TEMPerGold_V3.1:​ b'​80800f874e200000'​   - Unknown firmware ld_V3.1 TEMPerGold_V3.1:​ b'​80800f874e200000'​
  
-To remedy this, //​nems-info//​ loops through the output multiple times until a good thermal reading is obtained. The errors are hidden and only the clean JSON output is generated. This all happens very quickly and transparently,​ resulting in good output every time, with no errors.+To remedy this, //​nems-info// ​silently ​loops through the output multiple times until a good thermal reading is obtained. The errors are hidden and only the clean JSON output is generated. This all happens very quickly and transparently,​ resulting in good output every time, with no errors.
  
 ===Adding to your NEMS NConf=== ===Adding to your NEMS NConf===
  
-//​check_temper//​ allows you to add TEMPer devices to your NEMS Server. The check has 4 thresholds: Critical Low, Warning Low, Warning High, Critical High. The number you enter may be in //either// degrees ​Celcius ​or Farhenheit. The system will automatically detect which you are using. The OK temperature will be any temperature that falls between Warning Low and Warning High. This way, you can receive alerts from your NEMS Server should the room temperature be either too cold or too hot.+//​check_temper//​ allows you to add TEMPer devices to your NEMS Server. The check has 4 thresholds: Critical Low, Warning Low, Warning High, Critical High. The number you enter may be in //either// degrees ​Celsius ​or Fahrenheit. The system will automatically detect which you are using. The OK temperature will be any temperature that falls between Warning Low and Warning High. This way, you can receive alerts from your NEMS Server should the room temperature be either too cold or too hot.
  
-The //​check_temper//​ program has been added to NEMS NConf, but requires some brief initial configuration in NEMS 1.5 (as it was issued as a patch).+===Configuring NEMS Linux 1.5=== 
 + 
 +**If you are running NEMS Linux 1.5.1 or higher, you do not need to do this.** 
 + 
 +TEMPer support was added to NEMS Linux 1.5 as a patch. If the NEMS Server ​was initialized before the rollout, some user customization is required. If you are initializing ​new server, you likely will not need to take these steps. They are here only for those who initialized their NEMS Server before the patch was released.
  
   - Edit the //​check_temper//​ checkcommand   - Edit the //​check_temper//​ checkcommand
Line 52: Line 60:
   - Change **amount of params** to: //4//   - Change **amount of params** to: //4//
   - Submit   - Submit
-  - Add //​check_temper//​ as a service to your NEMS hosthaving connected ​the TEMPer device to your NEMS Server'​s USB port.+  - Add //​check_temper//​ as normal. 
 + 
 +===Humidity Sensor Support=== 
 + 
 +As of NEMS Linux 1.6both the temperature and humidity sensors are supported. 
 + 
 +Sample command line for humidity sensor: 
 + 
 +/​usr/​lib/​nagios/​plugins/​check_temper 20 35 65 80 hum
  • hardware/temper.1564967658.txt.gz
  • Last modified: 2019/08/04 21:14
  • by Robbie Ferguson