Ich habe mit einer neuen Konfiguration ein ganz seltsames Problem: Ein OutputPin des PiFace2 geht in einen Oszillationsmodus.
In der Konfiguration habe ich an der entsprechenden Stelle:
Code
####################### Keyboards ##############################
[keyboards]
webservice = filesystem
...
####################### Virtual keyboard #######################
[webservice_keyboard]
base_path_input = /home/doorpi/keyboard/inputs/
base_path_output = /home/doorpi/keyboard/outputs/
reset_input=false
[webservice_InputPins]
dooropen = out:door,1,0,3
dooropendelay = sleep:0
...
#-- delayed action
[EVENT_OnKeyPressed_webservice.dooropendelay]
10 = sleep:3
20 = out:door,1,0,3
Alles anzeigen
Ziel war, eine um 3 Sekunden verzögerte Auslösung des Events zu bekommen - eben mit dem Web-Kommando "dooropendelay"
Passiert aber nicht, sondern die Kiste steigt in eine Endlosschleife ein und lässt alle paar Sekunden (kein 3-Sekunden-Intervalll, sondern auch mit längeren Pausen dazwischen) den Türöffner summen.
Im Log habe ich
Code
2016-12-05 20:57:17,746 [INFO] [doorpi.doorpi] DoorPi started successfully
2016-12-05 20:57:17,748 [INFO] [doorpi.doorpi] BasePath is /usr/local/etc/DoorPi
2016-12-05 20:57:17,749 [INFO] [doorpi.doorpi] Weburl is http://DoorPi/
2016-12-05 21:01:48,631 [ERROR] [doorpi.action.handler] [18SLEP] error while fire action OutTriggeredAction with args () and kwargs {'stop_pin': 'NoStopPinSet', 'end_value': '0', 'timeout': 3.0, 'pin': 'door', 'start_value': '1'} for event_name OnKeyPressed_webservice.dooropendelay
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 311, in fire_event_synchron
if not silent: self.db.insert_action_log(event_fire_id, action.name, start_time, result)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 171, in insert_action_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 141, in execute_sql
return self._db.execute(sql)
OperationalError: cannot start a transaction within a transaction
2016-12-05 21:01:52,689 [ERROR] [doorpi.action.handler] [7DV2RG] error while fire action OutTriggeredAction with args () and kwargs {'stop_pin': 'NoStopPinSet', 'end_value': '0', 'timeout': 3.0, 'pin': 'door', 'start_value': '1'} for event_name OnKeyPressed_webservice.dooropendelay
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 311, in fire_event_synchron
if not silent: self.db.insert_action_log(event_fire_id, action.name, start_time, result)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 171, in insert_action_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 141, in execute_sql
return self._db.execute(sql)
OperationalError: not an error
2016-12-05 21:02:12,832 [ERROR] [doorpi.action.handler] [C7EQVB] error while fire action OutTriggeredAction with args () and kwargs {'stop_pin': 'NoStopPinSet', 'end_value': '0', 'timeout': 3.0, 'pin': 'door', 'start_value': '1'} for event_name OnKeyPressed_webservice.dooropendelay
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 311, in fire_event_synchron
if not silent: self.db.insert_action_log(event_fire_id, action.name, start_time, result)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 171, in insert_action_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.0.4-py2.7.egg/doorpi/action/handler.py", line 141, in execute_sql
return self._db.execute(sql)
OperationalError: cannot start a transaction within a transaction
Alles anzeigen
Ist das schon jemand anders passiert ?
LG
pah