FlowFuse / device-agent

An agent to run FlowFuse managed instances of Node-RED on devices
Apache License 2.0
15 stars 8 forks source link

Implement quick connect in device agent #226

Closed Steve-Mcl closed 7 months ago

Steve-Mcl commented 7 months ago

Description

Examples

flowfuse-device-agent -o free-pond-grouse -u https:app.my-ff.org

[AGENT] 29/01/2024 15:51:56 [info] Entering Device setup...
[AGENT] 29/01/2024 15:51:56 [info] Device setup was successful
[AGENT] 29/01/2024 15:51:56 [info] To start the Device Agent with the new configuration run the following command:
[AGENT] 29/01/2024 15:51:56 [info] flowfuse-device-agent

2nd run: flowfuse-device-agent -o free-pond-grouse -u https:app.my-ff.org

[AGENT] 30/01/2024 09:00:50 [info] Entering Device setup...
[AGENT] 30/01/2024 09:00:50 [warn] Problem encountered during provisioning: HTTPError: Response code 401 (Unauthorized)
[AGENT] 30/01/2024 09:00:50 [warn] Device setup was unsuccessful

flowfuse-device-agent -o red-horse-velvet -u https:app.my-ff.org -d c:/opt/dev1

[AGENT] 29/01/2024 15:51:56 [info] Entering Device setup...
[AGENT] 29/01/2024 15:51:56 [info] Device setup was successful
[AGENT] 29/01/2024 15:51:56 [info] To start the Device Agent with the new configuration run the following command:
[AGENT] 29/01/2024 15:51:56 [info] flowfuse-device-agent -d c:/opt/dev1

flowfuse-device-agent -u https:app.my-ff.org -d c:/opt/dev1

[AGENT] 30/01/2024 09:01:53 [warn] Device setup requires parameter --otc to be 8 or more characters

flowfuse-device-agent -o free-pond-grouse

[AGENT] 30/01/2024 09:02:54 [warn] Device setup requires parameter --ff-url to be set
Prior to redesign 29-001-2024 * Support new args for Quick Connect * `-q/--qc` - boolean flag to init Quick Connect * `-o/--otc` - One Time Code * `-u/--ff-url` - URL of FlowFuse platform to connect and spend the OTC * Updates to README.md to document new args * Adds test "Agent Manager should request config from FlowFuse when started in Quick Connect mode"

Related Issue(s)

#3256

Checklist

Labels

Steve-Mcl commented 7 months ago

Converted to draft while requested redesign is carried out