aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Converter
diff options
context:
space:
mode:
authorthedoc <thedoc@atom.(none)>2009-12-07 22:38:20 +0100
committerthedoc <thedoc@atom.(none)>2009-12-07 22:38:20 +0100
commit67858ed10ece500b2cf68dafb39886a0b873ec4c (patch)
tree70ce402d1a310eaf5299aaba929c0c9ddde2d0f7 /lib/python/Components/Converter
parent7950c2de2dbfd5bfee3650faaf45301187f7184a (diff)
downloadenigma2-67858ed10ece500b2cf68dafb39886a0b873ec4c.tar.gz
enigma2-67858ed10ece500b2cf68dafb39886a0b873ec4c.zip
first working version of TempFanControl plugin with Sensors and FanControl component
Diffstat (limited to 'lib/python/Components/Converter')
-rw-r--r--lib/python/Components/Converter/Makefile.am2
-rw-r--r--lib/python/Components/Converter/SensorToText.py12
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/python/Components/Converter/Makefile.am b/lib/python/Components/Converter/Makefile.am
index 75c8a08e..3b6fd3e8 100644
--- a/lib/python/Components/Converter/Makefile.am
+++ b/lib/python/Components/Converter/Makefile.am
@@ -6,4 +6,4 @@ install_PYTHON = \
ConditionalShowHide.py ServicePosition.py ValueRange.py RdsInfo.py Streaming.py \
StaticMultiList.py ServiceTime.py MovieInfo.py MenuEntryCompare.py StringListSelection.py \
ValueBitTest.py TunerInfo.py ConfigEntryTest.py TemplatedMultiContent.py ProgressToText.py \
- Combine.py
+ Combine.py SensorToText.py
diff --git a/lib/python/Components/Converter/SensorToText.py b/lib/python/Components/Converter/SensorToText.py
new file mode 100644
index 00000000..ab87ee2e
--- /dev/null
+++ b/lib/python/Components/Converter/SensorToText.py
@@ -0,0 +1,12 @@
+from Components.Converter.Converter import Converter
+
+class SensorToText(Converter, object):
+ def __init__(self, arguments):
+ Converter.__init__(self, arguments)
+
+ def getText(self):
+ return "%d %s" % (self.source.getValue(), self.source.getUnit())
+
+ text = property(getText)
+
+ \ No newline at end of file