{"id":20118497,"url":"https://github.com/flowfuse/balena-device-agent","last_synced_at":"2025-03-02T19:42:54.719Z","repository":{"id":209021935,"uuid":"722974565","full_name":"FlowFuse/balena-device-agent","owner":"FlowFuse","description":"Deploy the FlowFuse Device Agent as a Balena Block","archived":false,"fork":false,"pushed_at":"2023-11-24T15:26:28.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-13T06:45:21.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlowFuse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-24T11:37:07.000Z","updated_at":"2024-01-27T08:13:28.000Z","dependencies_parsed_at":"2023-11-24T15:50:28.459Z","dependency_job_id":null,"html_url":"https://github.com/FlowFuse/balena-device-agent","commit_stats":null,"previous_names":["flowfuse/balena-device-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fbalena-device-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fbalena-device-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fbalena-device-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fbalena-device-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlowFuse","download_url":"https://codeload.github.com/FlowFuse/balena-device-agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241564446,"owners_count":19982958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T19:11:15.638Z","updated_at":"2025-03-02T19:42:54.701Z","avatar_url":"https://github.com/FlowFuse.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy Flowfuse Device Agent with Balena\n\n[![balena deploy button](https://www.balena.io/deploy.svg)](https://dashboard.balena-cloud.com/deploy?repoUrl=https://github.com/flowfuse/balena-device-agent)\n\nThe documentation for the FlowFuse Device Agent can be found [here](https://flowfuse.com/docs/device-agent/introduction/)\n\n## Configure\n\nThe FlowFuse Device Agent can be configured in 2 ways:\n\n 1.  Using a \"Device Configuration\": A Device Configuration is provided when a Device is created in the FlowFuse platform. This configuration can be set in the Belena device using the `FF_DEVICE_YML` environment variable (see below)\n 2. Using a \"Device Provisioning Configuration\". A Device Provisioning Configuration is provided when a Provisioning Token is generated on the FlowFuse platform. This can be used to permit the Device Agent to connect to the FlowFuse platform and auto register itself as a new device. It will then download and store it's own unique Device Configuration. This Provisioning Configuration can be set in the Belena device using the `FF_DEVICE_YML` environment variable (see below). Provisioning tokens are created on the FlowFuse platform in \"Team Settings\" under the \"Devices\" tab.\n    When using a Provisioning Token the Belena Device name will match the FlowFuse Device name.\n\n### Passing configuration via Environment variable\n\nDownload either a Device configuration file or a Provisioning token and then Base64 encode this (with no line breaks) using the following command:\n\n```\nbase64 -w 0 device.yml\n```\n\nIn the Balena Fleet config set a Variable called `FF_DEVICE_YML` to the output of the base64 command, this can either be on a per device basis for option 1 or fleet wide variable for option 2.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowfuse%2Fbalena-device-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowfuse%2Fbalena-device-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowfuse%2Fbalena-device-agent/lists"}