Uses 6315K of libraries. Click here for Pure Java version (4453L/22K).
1 | !7 |
2 | |
3 | cmodule CPUTemp > DynBigNumber { |
4 | int digits = 0; |
5 | switchable bool fahrenheit; |
6 | |
7 | start { |
8 | setDescription("CPU TEMP"); |
9 | doEveryAndNow(1000, r actualUpdate); |
10 | } |
11 | |
12 | void actualUpdate { |
13 | //time "CPU Temp" { // <= 5 ms |
14 | double temp = oshi_cpuTemperature(); |
15 | if (fahrenheit) temp = celsiusToFahrenheit(temp); |
16 | setValue(formatDoubleX(temp, digits) + " °" + (fahrenheit ? "F" : "C")); |
17 | //} |
18 | } |
19 | } |
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: | 389 / 44097 |
Version history: | 6 change(s) |
Referenced in: | [show references] |