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