https://github.com/thin-edge/python-tedge-agent
thin-edge.io example python agent which uses the local thin-edge.io services
https://github.com/thin-edge/python-tedge-agent
community thin-edge
Last synced: about 1 year ago
JSON representation
thin-edge.io example python agent which uses the local thin-edge.io services
- Host: GitHub
- URL: https://github.com/thin-edge/python-tedge-agent
- Owner: thin-edge
- License: apache-2.0
- Created: 2024-01-08T17:06:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T22:51:34.000Z (over 2 years ago)
- Last Synced: 2025-01-30T12:19:49.520Z (over 1 year ago)
- Topics: community, thin-edge
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-tedge-agent
The goal of this repository is to provide an example of how to implement your own custom child device agent (or connector). The agent makes use of the thin-edge.io services such as MQTT and HTTP to enable a cloud agnostic implementation.
Note: The official thin-edge.io (Rust) `tedge-agent` service can also be run on child devices, so you should check if you can utilize the out-of-the-box functionality first before using adapting the python agent contained in this repository.
## Getting started
Before getting started, you need to install the following tooling:
* [just](https://just.systems/man/en/chapter_5.html)
* [go-c8y-cli](https://goc8ycli.netlify.app/docs/installation/shell-installation/)
* [go-c8y-cli tedge extension](https://github.com/thin-edge/c8y-tedge)
1. Start the demo setup
```sh
just up
```
2. Set your target Cumulocity IoT Tenant
```sh
set-session
```
3. Bootstrap thin-edge.io
```sh
just bootstrap
```
4. Navigate the child device in the Cumulocity IoT Device Management page this is launched by the previous step