So I just decided to delete the previous “log” and write again. The argument here deletes the previously written “CPU_Temperature.txt” and then echo’s the current CPU temp into “CPU_Temperature.txt”… Why? Honest truth, I couldn’t find how to have openHAB read the last line/latest CPU temp from an array. Define your own time/frequency (mine is set to 5 minutes).Add argument – /c del “\fqdn\path\to\openhab2\config\html\CPU_Temperature.txt” /f /s /q & echo %v > “\fqdn\path\to\openhab2\config\html\CPU_Temperature.txt”.Right click on it, and select Alert Settings. Find the sensor you wish to “record”/display in openHAB – assuming here this is CPU Temp (I’ve opted for the CPU temp being read via the Motherboard, another option would have been CPU Package – an average combination of all cores, read from the CPU itself). As I’ve no doubt I’ll forget how I’ve gone about doing this in the days/weeks/months down the line.Īlso, I’m by no means an expert at coding/programming, so my methodology may suck… But, it works, for me! If nothing else, this “tutorial” is being written by me, for me. Explained below, is how I have configured HWinfo to record (and write) my CPU temp, and display this in openHAB. Upon running you’ll get a few prompts/windows. Installing and running HWinfo, is simple, it’s a portable app, so simply download, unzip, and run. Just as I was about to give up, I found HWinfo - which is not only free, but actually seems to get updated still! I installed most “CPU Monitoring” programs during this trial and error period, as above, most products are old/discontinued. I started off exploring SNMP as a possibility, but the Windows & SNMP route for monitoring CPU temps all seemed to rely on an ageing version of SpeedFan and a 3rd party plugin/overlay to connect to SNMP. I run openHAB on a Pi3, which is all well and good until you wish to remotely probe a Windows device, for say CPU temp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |