easycoder 250920.1__tar.gz → 250926.1__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.
Potentially problematic release.
This version of easycoder might be problematic. Click here for more details.
- {easycoder-250920.1 → easycoder-250926.1}/PKG-INFO +1 -1
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/__init__.py +1 -1
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_core.py +10 -8
- easycoder-250920.1/scripts/config.ecg +0 -196
- {easycoder-250920.1 → easycoder-250926.1}/.gitignore +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/LICENSE +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/README.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/backdrop.jpg +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/README.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/README.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/boolean.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/empty.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/ends.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/even.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/exists.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/greater.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/hasProperty.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/includes.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/is.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/less.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/list.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/none.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/not.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/numeric.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/object.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/odd.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/starts.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/conditions/string.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/add.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/append.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/assert.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/begin.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/clear.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/close.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/create.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/debug.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/decrement.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/delete.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/divide.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/exit.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/file.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/fork.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/get.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/go.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/gosub.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/if.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/import.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/increment.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/index.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/init.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/input.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/load.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/lock.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/log.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/module.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/multiply.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/negate.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/on.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/open.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/pop.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/post.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/print.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/push.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/put.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/read.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/release.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/replace.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/return.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/run.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/save.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/script.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/send.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/set.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/shuffle.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/split.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/stack.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/stop.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/system.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/take.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/toggle.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/truncate.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/unlock.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/use.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/variable.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/wait.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/while.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/keywords/write.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/arg.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/args.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/cos.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/datime.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/decode.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/element.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/elements.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/empty.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/encode.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/error.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/files.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/float.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/from.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/hash.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/index.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/integer.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/json.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/keys.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/left.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/length.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/lowercase.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/memory.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/modification.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/modulo.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/newline.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/now.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/position.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/property.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/random.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/right.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/sin.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/stringify.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/tab.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/tan.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/timestamp.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/today.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/trim.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/type.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/uppercase.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/value.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/core/values/weekday.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/README.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/attach.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/close.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/create.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/ellipse.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/image.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/move.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/on.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/rectangle.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/render.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/run.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/set.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/keywords/text.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/values/attribute.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/doc/graphics/values/window.md +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/close.png +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_border.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_classes.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_compiler.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_condition.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_handler.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_keyboard.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_program.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_pyside.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_timestamp.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/ec_value.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/easycoder/tick.png +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/images/Semoigo Dawn.jpg +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/json/graphics-demo.json +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/plugins/ec_keyboard.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/plugins/ec_p100.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/plugins/ec_pyside6.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/plugins/points.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/plugins/sql.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/pyproject.toml +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/benchmark.ecs +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/ec_keyboard.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/fizzbuzz.ecs +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/hello.ecs +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/points.ecs +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/test.ecs +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/scripts/tests.ecs +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/test.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/testrc.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/testsql.py +0 -0
- {easycoder-250920.1 → easycoder-250926.1}/testui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250926.1
|
|
4
4
|
Summary: Rapid scripting in English
|
|
5
5
|
Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
|
|
6
6
|
Author-email: Graham Trott <gtanyware@gmail.com>
|
|
@@ -160,23 +160,25 @@ class Core(Handler):
|
|
|
160
160
|
else:
|
|
161
161
|
return self.compileFromHere(['end'])
|
|
162
162
|
|
|
163
|
-
# Clear (set false)
|
|
164
163
|
# clear {variable}
|
|
165
164
|
def k_clear(self, command):
|
|
166
165
|
if self.nextIsSymbol():
|
|
167
166
|
target = self.getSymbolRecord()
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
command['target'] = target['name']
|
|
168
|
+
if target['hasValue'] or target['keyword'] == 'ssh':
|
|
170
169
|
self.add(command)
|
|
171
170
|
return True
|
|
172
171
|
return False
|
|
173
172
|
|
|
174
173
|
def r_clear(self, command):
|
|
175
174
|
target = self.getVariable(command['target'])
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
if target['keyword'] == 'ssh':
|
|
176
|
+
target['ssh'] = None
|
|
177
|
+
else:
|
|
178
|
+
val = {}
|
|
179
|
+
val['type'] = 'boolean'
|
|
180
|
+
val['content'] = False
|
|
181
|
+
self.putSymbolValue(target, val)
|
|
180
182
|
return self.nextPC()
|
|
181
183
|
|
|
182
184
|
# Close a file
|
|
@@ -2528,7 +2530,7 @@ class Core(Handler):
|
|
|
2528
2530
|
elif keyword == 'ssh':
|
|
2529
2531
|
v = {}
|
|
2530
2532
|
v['type'] = 'boolean'
|
|
2531
|
-
v['content'] = True if 'ssh' in symbolRecord else False
|
|
2533
|
+
v['content'] = True if 'ssh' in symbolRecord and symbolRecord['ssh'] != None else False
|
|
2532
2534
|
return v
|
|
2533
2535
|
else:
|
|
2534
2536
|
return None
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
! RBR XR Configurator
|
|
2
|
-
|
|
3
|
-
script Config
|
|
4
|
-
|
|
5
|
-
layout Layout
|
|
6
|
-
layout Row
|
|
7
|
-
column Column
|
|
8
|
-
window Window
|
|
9
|
-
module Connect
|
|
10
|
-
variable Value
|
|
11
|
-
variable Connected
|
|
12
|
-
variable HostName
|
|
13
|
-
variable HostSSID
|
|
14
|
-
variable HostPassword
|
|
15
|
-
variable DevicePassword
|
|
16
|
-
variable List
|
|
17
|
-
variable SSID
|
|
18
|
-
variable AccessPoints
|
|
19
|
-
variable N
|
|
20
|
-
variable P
|
|
21
|
-
|
|
22
|
-
! debug step
|
|
23
|
-
|
|
24
|
-
clear Connected
|
|
25
|
-
put empty into HostName
|
|
26
|
-
put empty into HostSSID
|
|
27
|
-
put empty into HostPassword
|
|
28
|
-
put empty into DevicePassword
|
|
29
|
-
fork to APScan
|
|
30
|
-
|
|
31
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
! Create the main window
|
|
33
|
-
init Layout
|
|
34
|
-
|
|
35
|
-
! The top row is the room name
|
|
36
|
-
init Row
|
|
37
|
-
add Text text `Host Name` and expand_x true to Row
|
|
38
|
-
add Input default_text HostName and key `-NAME-` and size `40 1` to Row
|
|
39
|
-
add Button button_text `Set host name` and size `20 1` to Row
|
|
40
|
-
add Row to Layout
|
|
41
|
-
|
|
42
|
-
! The second row is the host SSID
|
|
43
|
-
init Row
|
|
44
|
-
add Text text `Host SSID` and expand_x true to Row
|
|
45
|
-
add Input default_text HostSSID and key `-SSID-` and size `40 1` to Row
|
|
46
|
-
add Button button_text `Set host SSID` and size `20 1` to Row
|
|
47
|
-
add Row to Layout
|
|
48
|
-
|
|
49
|
-
! The third row is the host password
|
|
50
|
-
init Row
|
|
51
|
-
add Text text `Host Password` and expand_x true to Row
|
|
52
|
-
add Input default_text HostPassword and key `-HPASS-` and size `40 1` to Row
|
|
53
|
-
add Button button_text `Set host password` and size `20 1` to Row
|
|
54
|
-
add Row to Layout
|
|
55
|
-
|
|
56
|
-
! The fourth row is the device password
|
|
57
|
-
init Row
|
|
58
|
-
add Text text `Device Password` and expand_x true to Row
|
|
59
|
-
add Input default_text DevicePassword and key `-DPASS-` and size `40 1` to Row
|
|
60
|
-
add Button button_text `Set device password` and size `20 1` to Row
|
|
61
|
-
add Row to Layout
|
|
62
|
-
|
|
63
|
-
! The fifth row deals with the LED
|
|
64
|
-
init Column
|
|
65
|
-
init Row
|
|
66
|
-
add Text text `Pin #` to Row
|
|
67
|
-
add Input key `-LED_PIN-` and size `4 1` to Row
|
|
68
|
-
add Text text ` ` to Row
|
|
69
|
-
add Checkbox text `Invert the pin logic` and key `-LED_INVERT-` to Row
|
|
70
|
-
add Text text ` ` to Row
|
|
71
|
-
add Row to Column
|
|
72
|
-
init Row
|
|
73
|
-
add Text text `LED` and size `40 1` and expand_x true to Row
|
|
74
|
-
add Column expand_x true to Row
|
|
75
|
-
add Button button_text `Set LED Params` and size `20 1` to Row
|
|
76
|
-
add Row to Layout
|
|
77
|
-
|
|
78
|
-
! The sixth row deals with the relay
|
|
79
|
-
init Column
|
|
80
|
-
init Row
|
|
81
|
-
add Text text `Pin #` to Row
|
|
82
|
-
add Input key `-RELAY_PIN-` and size `4 1` to Row
|
|
83
|
-
add Text text ` ` to Row
|
|
84
|
-
add Checkbox text `Invert the pin logic` and key `-RELAY_INVERT-` to Row
|
|
85
|
-
add Text text ` ` to Row
|
|
86
|
-
add Row to Column
|
|
87
|
-
init Row
|
|
88
|
-
add Text text `Relay` and size `40 1` and expand_x true to Row
|
|
89
|
-
add Column expand_x true to Row
|
|
90
|
-
add Button button_text `Set Relay Params` and size `20 1` to Row
|
|
91
|
-
add Row to Layout
|
|
92
|
-
|
|
93
|
-
! The final row is the various buttons
|
|
94
|
-
init Row
|
|
95
|
-
add Button button_text `Connect` and disabled true to Row
|
|
96
|
-
add Button button_text `Set All` to Row
|
|
97
|
-
add Button button_text `Exit` to Row
|
|
98
|
-
add Row to Layout
|
|
99
|
-
|
|
100
|
-
create Window `RBR XR Config`
|
|
101
|
-
set the layout of Window to Layout
|
|
102
|
-
|
|
103
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
104
|
-
! Event handlers for the main window
|
|
105
|
-
|
|
106
|
-
on event `Set Name` in Window go to SetName
|
|
107
|
-
on event `Set Host SSID` in Window go to SetHostSSID
|
|
108
|
-
on event `Set Host Password` in Window go to SetHostPassword
|
|
109
|
-
on event `Set Device Password` in Window go to SetDevicePassword
|
|
110
|
-
on event `Set LED Params` in Window go to SetLEDParams
|
|
111
|
-
on event `Set Relay Params` in Window go to SetRelayParams
|
|
112
|
-
on event `Connect` in Window run `scripts/connect.ecg` as Connect
|
|
113
|
-
on event `Set All` in Window go to SetAll
|
|
114
|
-
on event `Exit` in Window
|
|
115
|
-
begin
|
|
116
|
-
close Window
|
|
117
|
-
exit
|
|
118
|
-
end
|
|
119
|
-
stop
|
|
120
|
-
|
|
121
|
-
SetName:
|
|
122
|
-
put property `-NAME-` of the event into Value
|
|
123
|
-
print `Name: ` cat Value
|
|
124
|
-
stop
|
|
125
|
-
|
|
126
|
-
SetHostSSID:
|
|
127
|
-
put property `-SSID-` of the event into Value
|
|
128
|
-
print `Host SSID: ` cat Value
|
|
129
|
-
stop
|
|
130
|
-
|
|
131
|
-
SetHostPassword:
|
|
132
|
-
put property `-HPASS-` of the event into Value
|
|
133
|
-
print `Host Password: ` cat Value
|
|
134
|
-
stop
|
|
135
|
-
|
|
136
|
-
SetDevicePassword:
|
|
137
|
-
put property `-DPASS-` of the event into Value
|
|
138
|
-
print `Device Password: ` cat Value
|
|
139
|
-
stop
|
|
140
|
-
|
|
141
|
-
SetLEDParams:
|
|
142
|
-
put property `-LED_PIN-` of the event into Value
|
|
143
|
-
print `LED Pin: ` cat Value
|
|
144
|
-
put property `-LED_INVERT-` of the event into Value
|
|
145
|
-
print `LED Invert: ` cat Value
|
|
146
|
-
stop
|
|
147
|
-
|
|
148
|
-
SetRelayParams:
|
|
149
|
-
put property `-RELAY_PIN-` of the event into Value
|
|
150
|
-
print `Relay Pin: ` cat Value
|
|
151
|
-
put property `-RELAY_INVERT-` of the event into Value
|
|
152
|
-
print `Relay Invert: ` cat Value
|
|
153
|
-
stop
|
|
154
|
-
|
|
155
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
156
|
-
! Set all parameters
|
|
157
|
-
SetAll:
|
|
158
|
-
fork to SetName
|
|
159
|
-
fork to SetHostSSID
|
|
160
|
-
fork to SetHostPassword
|
|
161
|
-
fork to SetDevicePassword
|
|
162
|
-
fork to SetLEDParams
|
|
163
|
-
fork to SetRelayParams
|
|
164
|
-
stop
|
|
165
|
-
|
|
166
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
167
|
-
! San for access points
|
|
168
|
-
APScan:
|
|
169
|
-
wait 10 ticks
|
|
170
|
-
put system `nmcli device wifi list` into List
|
|
171
|
-
split List
|
|
172
|
-
put json `[]` into AccessPoints
|
|
173
|
-
put 1 into N
|
|
174
|
-
while N is less than the elements of List
|
|
175
|
-
begin
|
|
176
|
-
index List to N
|
|
177
|
-
put List into SSID
|
|
178
|
-
if left 1 of SSID is `*`
|
|
179
|
-
begin
|
|
180
|
-
end
|
|
181
|
-
else
|
|
182
|
-
begin
|
|
183
|
-
put trim SSID into SSID
|
|
184
|
-
put the position of ` ` in SSID into P
|
|
185
|
-
put from P of SSID into SSID
|
|
186
|
-
put trim SSID into SSID
|
|
187
|
-
put the position of ` ` in SSID into P
|
|
188
|
-
put left P of SSID into SSID
|
|
189
|
-
print SSID
|
|
190
|
-
append SSID to AccessPoints
|
|
191
|
-
end
|
|
192
|
-
increment N
|
|
193
|
-
end
|
|
194
|
-
set property `disabled` of `Connect` in Window to false
|
|
195
|
-
|
|
196
|
-
stop
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|