@@ -94,6 +94,13 @@ bot.set_verbosity(2)
94
94
| `1 ` A description of the action will be output with any additional results data. | `Emergency stopping device` |
95
95
| `2 ` The name of the function and the timestamp will be output. | `' e_stop()' called at: 2024 - 08 - 21 11 :16 :18.547813 ` |
96
96
97
+ # ## Configure timeouts
98
+
99
+ If you expect movements to take longer than the default timeout duration of 120 seconds, you can increase the movement timeout via:
100
+ ```python
101
+ bot.set_timeout(240 , " movements" )
102
+ ```
103
+
97
104
# ## Test 1: Add a new plant to your garden
98
105
99
106
This test will help familiarize you with sending commands via the [API ](https:// developer.farm.bot/ docs/ rest- api).
@@ -147,13 +154,12 @@ sidecar-starter-pack/
147
154
148
155
# ## api.py
149
156
150
- | class `ApiConnect()` | Description |
151
- | :-- - | :-- - |
152
- | `get_token()` | Get FarmBot authorization token. Server is " https://my.farm.bot" by default. |
153
- | `set_token()` | Set FarmBot authorization token. |
154
- | `check_token()` | Ensure the token persists throughout sidecar. |
155
- | `request_handling()` | Handle errors associated with different endpoint errors. |
156
- | `request()` | Make requests to API endpoints using different methods. |
157
+ | `main` | class `ApiConnect()` | Description |
158
+ | :-- - :| :-- - | :-- - |
159
+ | * | `get_token()` | Get FarmBot authorization token. Server is " https://my.farm.bot" by default. |
160
+ | | `check_token()` | Ensure the token persists throughout sidecar. |
161
+ | | `request_handling()` | Handle errors associated with different endpoint errors. |
162
+ | | `request()` | Make requests to API endpoints using different methods. |
157
163
158
164
# ## basic_commands.py
159
165
@@ -167,14 +173,14 @@ sidecar-starter-pack/
167
173
168
174
# ## broker.py
169
175
170
- | class `BrokerConnect()` | Description |
171
- | :-- - | :-- - |
172
- | `connect()` | Establish a persistent connection to send messages via the message broker. |
173
- | `disconnect()` | Disconnect from the message broker. |
174
- | `publish()` | Publish messages containing CeleryScript via the message broker. |
175
- | `start_listen()` | Establish persistent subscription to message broker channels. |
176
- | `stop_listen()` | End subscription to all message broker channels. |
177
- | `listen()` | Listen to a message broker channel for the provided duration in seconds. |
176
+ | `main` | class `BrokerConnect()` | Description |
177
+ | :-- - : | :-- - | : -- - |
178
+ | * | `connect()` | Establish a persistent connection to send messages via the message broker. |
179
+ | * | `disconnect()` | Disconnect from the message broker. |
180
+ | * | `publish()` | Publish messages containing CeleryScript via the message broker. |
181
+ | | `start_listen()` | Establish persistent subscription to message broker channels. |
182
+ | | `stop_listen()` | End subscription to all message broker channels. |
183
+ | * | `listen()` | Listen to a message broker channel for the provided duration in seconds. |
178
184
179
185
# ## camera.py
180
186
0 commit comments