mirror of
https://github.com/gryf/pywmtemp.git
synced 2026-02-02 22:25:45 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7295d8123d | |||
| 6f805d8bdc |
@@ -230,6 +230,12 @@ class SensorDockApp(wmdocklib.DockApp):
|
||||
temp = None
|
||||
temps = psutil.sensors_temperatures()
|
||||
for shw in temps.get(item.get('sensor'), []):
|
||||
# if there is no label configured, take the first sensor
|
||||
# temperature.
|
||||
if not item.get('label'):
|
||||
temp = shw
|
||||
break
|
||||
|
||||
if shw.label == item.get('label'):
|
||||
temp = shw
|
||||
break
|
||||
|
||||
@@ -19,18 +19,12 @@ classifier =
|
||||
Programming Language :: Python :: 3.10
|
||||
Topic :: System :: Networking
|
||||
|
||||
[install]
|
||||
record = install.log
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
pywmtemp = pywmtemp.pywmtemp:main
|
||||
|
||||
[files]
|
||||
packages =
|
||||
pywmtemp
|
||||
|
||||
[options]
|
||||
packages = pywmtemp
|
||||
install_requires =
|
||||
wmdocklib
|
||||
pyyaml
|
||||
|
||||
Reference in New Issue
Block a user