screenlets-dev team mailing list archive
-
screenlets-dev team
-
Mailing list archive
-
Message #00519
[Bug 694857] Re: [Sensors] sensors.py flaws
i wish to draw a slot where the user can select wich custom sensor to
show and all of these values must be an integer numeric value.
by default the monitors of temperature are not installed or enabled, so
should return an empty list...
if sensors.sensors_get_sensors_list():
for i in sensors.sensors_get_sensors_list():
self.sensor_list.append(str(i))
print self.sensor_list
['temp1: -127.0\xc2\xb0C (crit = +60.0\xc2\xb0C)', 'acpi temperature
THRM: -127C']
but these comes added anyway, if value is negative can be excluded in
easy way?
now with the cpu and hddtemp sensors turned on...
['coretemp-isa-0000', 'Core 0: +51.0\xc2\xb0C (high = +86.0\xc2\xb0C,
crit = +100.0\xc2\xb0C)', 'coretemp-isa-0001', 'Core 1: +52.0\xc2\xb0C
(high = +86.0\xc2\xb0C, crit = +100.0\xc2\xb0C)']
comes added 'coretemp-isa-0000' and 'coretemp-isa-0001', are used by
someone?
the hddtemp does not appear in this list?!? (for test i launched conky,
the temp was readable)
now the hard work, if the strings change every time, how i can split to
obtain a value to show on screenlet?!?
thanks for all :D
--
You received this bug notification because you are a member of
Screenlets Dev Team, which is subscribed to Screenlets.
https://bugs.launchpad.net/bugs/694857
Title:
[Sensors] sensors.py flaws
References