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.
Files changed (29) hide show
  1. {smallneuron-2.4.4/src/smallneuron.egg-info → smallneuron-2.4.6}/PKG-INFO +1 -1
  2. {smallneuron-2.4.4 → smallneuron-2.4.6}/pyproject.toml +1 -1
  3. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/smallneuron.py +2 -2
  4. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/snwatcher.py +4 -4
  5. {smallneuron-2.4.4 → smallneuron-2.4.6/src/smallneuron.egg-info}/PKG-INFO +1 -1
  6. {smallneuron-2.4.4 → smallneuron-2.4.6}/.gitignore +0 -0
  7. {smallneuron-2.4.4 → smallneuron-2.4.6}/LICENSE +0 -0
  8. {smallneuron-2.4.4 → smallneuron-2.4.6}/README.md +0 -0
  9. {smallneuron-2.4.4 → smallneuron-2.4.6}/example.py +0 -0
  10. {smallneuron-2.4.4 → smallneuron-2.4.6}/setup.cfg +0 -0
  11. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/__init__.py +0 -0
  12. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/build +0 -0
  13. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/gpio_h3.c +0 -0
  14. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/gpio_h3.h +0 -0
  15. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/gpio_h3.so +0 -0
  16. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/logger.py +0 -0
  17. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sndummy.py +0 -0
  18. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sngpio.py +0 -0
  19. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sninput.py +0 -0
  20. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/snmqtt.py +0 -0
  21. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/snserial.py +0 -0
  22. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron/sntimer.py +0 -0
  23. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron.egg-info/SOURCES.txt +0 -0
  24. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron.egg-info/dependency_links.txt +0 -0
  25. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron.egg-info/top_level.txt +0 -0
  26. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
  27. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
  28. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
  29. {smallneuron-2.4.4 → smallneuron-2.4.6}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: smallneuron
3
- Version: 2.4.4
3
+ Version: 2.4.6
4
4
  Summary: Small Neuron Workflow
5
5
  Author-email: Andres Artigas <andres@artigas.cl>
6
6
  Project-URL: Homepage, https://github.com/pypa/sampleproject
@@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
3
3
 
4
4
  [project]
5
5
  name = "smallneuron"
6
- version = "2.4.4"
6
+ version = "2.4.6"
7
7
  authors = [
8
8
  { name="Andres Artigas", email="andres@artigas.cl" },
9
9
  ]
@@ -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+'fillcolor="#a00000" '
172
+ style = style+' color=red penwidth=6.0 '
173
173
  elif state == self.prevState:
174
- style = style+'fillcolor="#fed104" fontcolor=black '
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 "data": respuesta
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 data
72
+ # creamos uno con la respuesta como value
73
73
  if type(resp) != dict:
74
74
  data=resp
75
- resp={"data":data}
75
+ resp={"value":data}
76
76
 
77
- if self.event_pattern == None or re.search(self.event_pattern, resp["data"]) != None:
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":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: smallneuron
3
- Version: 2.4.4
3
+ Version: 2.4.6
4
4
  Summary: Small Neuron Workflow
5
5
  Author-email: Andres Artigas <andres@artigas.cl>
6
6
  Project-URL: Homepage, https://github.com/pypa/sampleproject
File without changes
File without changes
File without changes
File without changes
File without changes