Updated temp (markdown)

This commit is contained in:
Luke Bonham 2013-09-12 17:29:55 -07:00
parent 4c5a81537a
commit 547487e730

10
temp.md
View file

@ -1,16 +1,20 @@
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
Show the current core temperature in a textbox.
Shows the current core temperature in a textbox.
Reads from `/sys/class/thermal`, so value is expressed in Celsius.
mytemp = lain.widgets.temp()
The function takes a table as optional argument, which can contain:
### input table
Variable | Meaning | Type | Default
--- | --- | --- | ---
`timeout` | Refresh timeout seconds | int | 5
`settings` | User settings | function | empty function
`settings` can use the string `coretemp_now`, which means current core temperature, expressed in Celsius (linux standard).
`settings` can use the string `coretemp_now`, which means current core temperature, expressed in Celsius (linux standard).
### output
A textbox.