{"id":24811144,"url":"https://github.com/thin-edge/tedge-mapping-service","last_synced_at":"2025-03-25T13:24:13.345Z","repository":{"id":242766430,"uuid":"810290133","full_name":"thin-edge/tedge-mapping-service","owner":"thin-edge","description":"This is a sample service to map from a custom json format to tedge json format","archived":false,"fork":false,"pushed_at":"2024-06-06T15:50:42.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T12:19:41.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/thin-edge.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-04T12:08:06.000Z","updated_at":"2024-06-06T15:50:45.000Z","dependencies_parsed_at":"2024-06-04T22:39:43.668Z","dependency_job_id":"7d6d6cc7-a54b-4966-bc30-98519ce9a6e6","html_url":"https://github.com/thin-edge/tedge-mapping-service","commit_stats":null,"previous_names":["thin-edge/tedge-mapping-service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thin-edge%2Ftedge-mapping-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thin-edge%2Ftedge-mapping-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thin-edge%2Ftedge-mapping-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thin-edge%2Ftedge-mapping-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thin-edge","download_url":"https://codeload.github.com/thin-edge/tedge-mapping-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245468751,"owners_count":20620445,"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":"2025-01-30T12:19:30.238Z","updated_at":"2025-03-25T13:24:13.296Z","avatar_url":"https://github.com/thin-edge.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tedge-mapping-service\n\nThin-edge.io can be extended with plugins or operations. This is a sample how to add a custom service that performs some business logic.\nIn this case the service maps from a custom json format to tedge json format.\n\nPublish custom measurement:\n```\ntedge mqtt pub custom/signal '{\"value\":90}'\n```\n\nThis measurement is converted to:\n\n```\n{ \"temperature\": {\"value\": 180  } }\n```\n\nand published on the topic: `te/device/main///m/c8y_Temperature`\n\n## Requirements\n\n- Ubuntu \u003e= 22.04 or Debian \u003e= 11.0\n- Python \u003e= 3.8, including [paho-mqtt](https://pypi.org/project/paho-mqtt/)\n- systemd\n- for operations support: thin-edge.io \u003e= 1.1.0\n\n## Build\n\nA package of the service, can be build with nfpm. To build the packages locally, make sure to install nfpm first.\nThe package requires a python3 installation on your device.\n\nTo create the packages, you need to install nfpm first:\n\n[Install nfpm](https://nfpm.goreleaser.com/install/)\n\n\n### Debian package\n\nAfter installing, you can build the Debian package with:\n\n     nfpm pkg --packager deb --target /tmp/\n\n## Deployment\n\n### As deb file\n\nRun `sudo dpkg -i tedge-mapping-service-\u003cversion\u003e-\u003carch\u003e.deb`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthin-edge%2Ftedge-mapping-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthin-edge%2Ftedge-mapping-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthin-edge%2Ftedge-mapping-service/lists"}