smallneuron 2.4.4__tar.gz → 2.4.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {smallneuron-2.4.4/src/smallneuron.egg-info → smallneuron-2.4.6}/PKG-INFO +1 -1
- {smallneuron-2.4.4 → smallneuron-2.4.6}/pyproject.toml +1 -1
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/smallneuron.py +2 -2
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/snwatcher.py +4 -4
- {smallneuron-2.4.4 → smallneuron-2.4.6/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-2.4.4 → smallneuron-2.4.6}/.gitignore +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/LICENSE +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/README.md +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/example.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/setup.cfg +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/__init__.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/build +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/logger.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sninput.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/snserial.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -169,9 +169,9 @@ class EventManager:
|
|
|
169
169
|
if node.desc != "":
|
|
170
170
|
style = 'tooltip="' + ttfmt(node.desc) + '" ' + style
|
|
171
171
|
if state == self.currentState:
|
|
172
|
-
style = style+'
|
|
172
|
+
style = style+' color=red penwidth=6.0 '
|
|
173
173
|
elif state == self.prevState:
|
|
174
|
-
style = style+'
|
|
174
|
+
style = style+' color=red penwidth=2.0 '
|
|
175
175
|
if node._cmd == True:
|
|
176
176
|
style = style+'fillcolor="#a0a0a0" '
|
|
177
177
|
|
|
@@ -11,7 +11,7 @@ log= Logger("smallneuron.snwatcher")
|
|
|
11
11
|
class SnWatcher():
|
|
12
12
|
'''
|
|
13
13
|
Cada instancia de esta clase monitorea la funcion callback() del bridge, con bridge_args como parametros,
|
|
14
|
-
Si la respuesta contiene el bridge_pattern se dispara el evento con event_params que se le agrega "
|
|
14
|
+
Si la respuesta contiene el bridge_pattern se dispara el evento con event_params que se le agrega "value": respuesta
|
|
15
15
|
|
|
16
16
|
Consideraciones importantes de la funcion callback:
|
|
17
17
|
1. Debe recibir como parametros los mismo elementos del dict bridge_args de enter()
|
|
@@ -69,12 +69,12 @@ class SnWatcher():
|
|
|
69
69
|
continue
|
|
70
70
|
|
|
71
71
|
# Si la respuesta no es un dict
|
|
72
|
-
# creamos uno con la respuesta como
|
|
72
|
+
# creamos uno con la respuesta como value
|
|
73
73
|
if type(resp) != dict:
|
|
74
74
|
data=resp
|
|
75
|
-
resp={"
|
|
75
|
+
resp={"value":data}
|
|
76
76
|
|
|
77
|
-
if self.event_pattern == None or re.search(self.event_pattern, resp["
|
|
77
|
+
if self.event_pattern == None or re.search(self.event_pattern, resp["value"]) != None:
|
|
78
78
|
self.em.putEvent(self.event, dict(self.event_params,**resp),self.event_valid_until)
|
|
79
79
|
log.info("trigger", self.event_params)
|
|
80
80
|
if mode=="match":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|