Uses 6315K of libraries. Click here for Pure Java version (4453L/22K).
!7 cmodule CPUTemp > DynBigNumber { int digits = 0; switchable bool fahrenheit; start { setDescription("CPU TEMP"); doEveryAndNow(1000, r actualUpdate); } void actualUpdate { //time "CPU Temp" { // <= 5 ms double temp = oshi_cpuTemperature(); if (fahrenheit) temp = celsiusToFahrenheit(temp); setValue(formatDoubleX(temp, digits) + " °" + (fahrenheit ? "F" : "C")); //} } }
Began life as a copy of #1015915
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1018430 |
Snippet name: | CPU Temperature [Dyn Module] |
Eternal ID of this version: | #1018430/7 |
Text MD5: | d6cc45dc3dfb8f4103f921c4e8043216 |
Transpilation MD5: | 84fd832d76d57153d617be65cfc8bfd3 |
Author: | stefan |
Category: | javax / modules |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-27 00:58:43 |
Source code size: | 439 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 390 / 44097 |
Version history: | 6 change(s) |
Referenced in: | #1026878 - dm_cpuTemperature - TODO: returns null first time when module wasn't loaded #1026954 - CPU Temperature Tray Icon |