As showcased by Reddit user div2691, and spotted by PCGamesN, this handy app allows you to run some software on your PC to act as a. I then added this to my Sitemap, using Text item=CPUTemperature label="CPU Temp " icon="temperature"Īnd added CPUTemperatureNumber to my RRD4J. Thats where Remote System Monitor on Android comes into play. ( is the web accessible path to your HTML folder) LogInfo("EXTRA", "CPUTemperatureNumber is currently "+CPUTemperatureNum.state) Val String cpuTemp = sendHttpGetRequest(" logInfo("EXTRA", "CPU Temperature is currently "+CPUTemperature.state)ĬPUTemperatureNumber.postUpdate(Float::parseFloat(String::format("%s",CPUTemperature.state).replace(' ',''))) Time cron "0 */5 * * * ?" //Every 5 minutes Within openHAB rules, define the following rule "Get CPU Temperature data" Create a STRING item, called CPUTemperature & a NUMBER item called CPUTemperatureNumber. The result is a text file with one entry, thus only one entry for openHAB to read.Įqually, because I want to store this in persistence (rr4dj), by deleting the log files, I’m not duplicating what will possibly become a sizeable text file. 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).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |