smallneuron 2.4__tar.gz → 2.4.2__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/src/smallneuron.egg-info → smallneuron-2.4.2}/PKG-INFO +1 -1
- {smallneuron-2.4 → smallneuron-2.4.2}/pyproject.toml +1 -1
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/smallneuron.py +5 -5
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sntimer.py +1 -1
- {smallneuron-2.4 → smallneuron-2.4.2/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-2.4 → smallneuron-2.4.2}/.gitignore +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/LICENSE +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/README.md +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/example.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/setup.cfg +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/__init__.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/build +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/logger.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sninput.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/snserial.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/snwatcher.py +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -174,7 +174,7 @@ class EventManager:
|
|
|
174
174
|
if node._cmd == True:
|
|
175
175
|
style = 'fillcolor="#a0a0a0" ' + style
|
|
176
176
|
|
|
177
|
-
f.write("%s [%s]\n
|
|
177
|
+
f.write('"%s" [%s]\n' % (state, style))
|
|
178
178
|
|
|
179
179
|
# print("write ", len(self.net), "events")
|
|
180
180
|
for event in self.net:
|
|
@@ -189,11 +189,11 @@ class EventManager:
|
|
|
189
189
|
if bold_event == event and state_from == self.prevState and state_to == self.currentState:
|
|
190
190
|
args = " " + json.dumps(self.currentArgs).replace('"', '\\"')
|
|
191
191
|
f.write(
|
|
192
|
-
'%s -> %s [ label = "%s" fontcolor="red" %s ]\n'
|
|
192
|
+
'"%s" -> "%s" [ label = "%s" fontcolor="red" %s ]\n'
|
|
193
193
|
% (state_from, state_to, event + args, tooltip)
|
|
194
194
|
)
|
|
195
195
|
else:
|
|
196
|
-
f.write('%s -> %s [ label = "%s" %s ]\n' % (state_from, state_to, event, tooltip))
|
|
196
|
+
f.write('"%s" -> "%s" [ label = "%s" %s ]\n' % (state_from, state_to, event, tooltip))
|
|
197
197
|
|
|
198
198
|
# print("write ", len(self.cmds), "commands")
|
|
199
199
|
if len(self.cmds) > 0:
|
|
@@ -209,9 +209,9 @@ class EventManager:
|
|
|
209
209
|
tooltip = 'labeltooltip="' + ttfmt(desc) + '" tooltip="' + ttfmt(desc) + '"'
|
|
210
210
|
|
|
211
211
|
if bold_event == event:
|
|
212
|
-
f.write('"*" -> %s [ label = "%s" fontcolor="red" %s ]\n' % (state_to, event, tooltip))
|
|
212
|
+
f.write('"*" -> "%s" [ label = "%s" fontcolor="red" %s ]\n' % (state_to, event, tooltip))
|
|
213
213
|
else:
|
|
214
|
-
f.write('"*" -> %s [ label = "%s" %s ]\n' % (state_to, event, tooltip))
|
|
214
|
+
f.write('"*" -> "%s" [ label = "%s" %s ]\n' % (state_to, event, tooltip))
|
|
215
215
|
|
|
216
216
|
f.write("}\n")
|
|
217
217
|
|
|
@@ -24,7 +24,7 @@ class SnTimer():
|
|
|
24
24
|
|
|
25
25
|
# Los eventos agregado con timer son por defecto
|
|
26
26
|
# solo validos para el siguiente estado
|
|
27
|
-
@logger_with_method
|
|
27
|
+
@logger_with_method(log)
|
|
28
28
|
def watchEvent(self, event, event_params={}, time=1.0, valid=1):
|
|
29
29
|
until=self.eventManager.count+valid
|
|
30
30
|
log.debug(f"event:{event}, params:{event_params} time:{time}s valid:{valid} until:{until}")
|
|
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 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|