You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@click.command(name="my_script", help=__plugin_summary__) # the name field is used in the invocation `pio run X`
133
+
@run.command(name="my_script", help=__plugin_summary__) # the name field is used in the invocation `pio run X`
125
134
defclick_my_script():
126
135
127
136
led_intensity({"B": 50})
@@ -135,14 +144,11 @@ def click_my_script():
135
144
136
145
stirrer.block_until_disconnected()
137
146
147
+
138
148
```
139
149
140
150
You should be able to execute the following from the command line now: `pio run my_script`. (The `my_script` is from the `@click.command` line, you can change it there).
141
151
142
-
:::important
143
-
The function that `click.command` wraps should have it's name prepended by `click_`. Ex: `def click_my_script` is okay, but `def my_script` is not.
144
-
:::
145
-
146
152
:::info
147
153
How do you add this to your /pioreactors page in the UI? See [here](/developer-guide/adding-plugins-to-ui).
Copy file name to clipboardExpand all lines: user-guide/30-Advanced/02-networking/00-connecting-without-network.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,9 @@ hide_table_of_contents: true
5
5
---
6
6
7
7
8
-
info
9
-
:::
10
8
9
+
:::info
11
10
This is still a bit experimental and may not work on all systems
12
-
13
11
:::
14
12
15
13
@@ -25,7 +23,7 @@ This might work on Windows, too.
25
23
5. Open up your terminal, and try the following:
26
24
27
25
```
28
-
ssh pioreactor@your leaders name.local
26
+
ssh pioreactor@your_leaders_name.local
29
27
```
30
28
31
29
example:
@@ -41,7 +39,7 @@ This might work on Windows, too.
41
39
hostname -I
42
40
```
43
41
44
-
This should provide an IP address. Try that in your browser's URL bar. Example: http://169.254.189.106. Then try: http://your leaders name.local.
42
+
This should provide an IP address. Try that in your browser's URL bar. Example: http://169.254.189.106. Then try: http://your_leaders_name.local.
45
43
46
44
47
45
6. You can disconnect your Mac from the Pi's ethernet whenever and things will keep running on it, but note, when you reconnect, it may take a minute again to establish a connection. You should be able then view the UI and also SSH in.
0 commit comments