2013-09-07 14:33:08 +02:00
|
|
|
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
|
|
|
|
|
2013-09-13 02:29:55 +02:00
|
|
|
Shows the current core temperature in a textbox.
|
2013-09-07 14:07:17 +02:00
|
|
|
|
|
|
|
Reads from `/sys/class/thermal`, so value is expressed in Celsius.
|
2013-09-07 14:07:01 +02:00
|
|
|
|
|
|
|
mytemp = lain.widgets.temp()
|
|
|
|
|
2013-09-13 02:29:55 +02:00
|
|
|
### input table
|
2013-09-07 14:07:01 +02:00
|
|
|
|
|
|
|
Variable | Meaning | Type | Default
|
|
|
|
--- | --- | --- | ---
|
2013-09-11 00:02:23 +02:00
|
|
|
`timeout` | Refresh timeout seconds | int | 5
|
|
|
|
`settings` | User settings | function | empty function
|
|
|
|
|
2013-09-13 02:29:55 +02:00
|
|
|
`settings` can use the string `coretemp_now`, which means current core temperature, expressed in Celsius (linux standard).
|
|
|
|
|
|
|
|
### output
|
|
|
|
|
|
|
|
A textbox.
|