typo aber ggf. wichtig.
Die liegen aber in ..smarthome/logics/
Logic items within SmartHome.py are simple python scripts, which should be placed in /usr/local/smarthome/logic/.
['MyLogic'] filename = 'logic.py'
#!/usr/bin/env python for area in sh: print area for item in area: print item
2013-01-03 22:33:46 SmartHome.py INFO Stop Plugins 2013-01-03 22:33:46 SmartHome.py INFO SmartHome.py stopped 2013-01-03 22:33:46 SmartHome.py INFO Stop Plugins 2013-01-03 22:33:47 SmartHome.py CRITICAL Could not remove pid file: /home/lemke/software/smarthome.py/smarthome/var/run/smarthome.pid 2013-01-03 22:33:47 SmartHome.py INFO SmartHome.py stopped 2013-01-03 22:33:47 SmartHome.py INFO Stop Plugins 2013-01-03 22:33:47 SmartHome.py INFO Stop Plugins 2013-01-03 22:33:49 SmartHome.py INFO Init SmartHome.py v0.8-Beta 2013-01-03 22:33:49 SmartHome.py INFO No latitude/longitude specified => you could not use the sun and moon object. 2013-01-03 22:33:49 SmartHome.py INFO Init Scheduler 2013-01-03 22:33:49 SmartHome.py INFO Init plugins 2013-01-03 22:33:49 SmartHome.py INFO Init items 2013-01-03 22:33:49 SmartHome.py INFO Start Plugins 2013-01-03 22:33:49 SmartHome.py INFO Starting logics 2013-01-03 22:33:49 SmartHome.py WARNING MyLogic: Could not access logic file (logic.py) => ignoring. 2013-01-03 22:33:49 sh.con INFO Onewire: connected to 192.168.179.12:4304 2013-01-03 22:33:50 ow.bus INFO Found bus.2 with busmaster 81.9E392F000000 2013-01-03 22:33:51 ow.bus INFO Found bus.1 with busmaster 81.D5E62F000000 2013-01-03 22:33:51 ow.bus INFO Found bus.0 with busmaster 81.3E7C2F000000
$ gg local/smarthome bin/smarthome.py:BASE = '/usr/local/smarthome' bin/smarthome.py: def __init__(self, smarthome_conf='/usr/local/smarthome/etc/smarthome.conf'): lib/logic.py: filename = '/usr/local/smarthome/logics/' + self.filename plugins/dwd/__init__.py: _warnings_csv = '/usr/local/smarthome/plugins/dwd/warnings.csv' plugins/rrd/__init__.py: def __init__(self, smarthome, step=300, rrd_dir='/usr/local/smarthome/var/rrd/'):
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar