{"id":28406738,"url":"https://github.com/eclipse-ditto/ditto-examples","last_synced_at":"2025-06-29T09:32:14.903Z","repository":{"id":29853327,"uuid":"108886991","full_name":"eclipse-ditto/ditto-examples","owner":"eclipse-ditto","description":"Eclipse Ditto™: Digital Twin framework - Examples","archived":false,"fork":false,"pushed_at":"2024-07-05T09:57:44.000Z","size":10695,"stargazers_count":119,"open_issues_count":10,"forks_count":49,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-02T07:36:56.849Z","etag":null,"topics":["eclipse-ditto","examples","hacktoberfest","java"],"latest_commit_sha":null,"homepage":"https://eclipse.org/ditto","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-ditto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2017-10-30T17:47:24.000Z","updated_at":"2025-05-05T23:22:26.000Z","dependencies_parsed_at":"2023-11-30T13:41:10.717Z","dependency_job_id":null,"html_url":"https://github.com/eclipse-ditto/ditto-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eclipse-ditto/ditto-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-ditto%2Fditto-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-ditto%2Fditto-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-ditto%2Fditto-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-ditto%2Fditto-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-ditto","download_url":"https://codeload.github.com/eclipse-ditto/ditto-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-ditto%2Fditto-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262569685,"owners_count":23330260,"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":["eclipse-ditto","examples","hacktoberfest","java"],"created_at":"2025-06-01T22:36:44.638Z","updated_at":"2025-06-29T09:32:14.890Z","avatar_url":"https://github.com/eclipse-ditto.png","language":"Java","readme":"# Eclipse Ditto :: Examples\n\n[![Join the chat at https://gitter.im/eclipse/ditto](https://badges.gitter.im/eclipse/ditto.svg)](https://gitter.im/eclipse/ditto?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nThis repository contains examples and demonstrations of how to use [Eclipse Ditto](https://github.com/eclipse/ditto).\n\n# Projects\n\n## [grove control](grove-ctrl/)\n\nThe grove control project shows the different communication possibilities\nusing Eclipse Ditto on your local machine and a Rasperry Pi with GrovePi+ board\nas IoT device. This project uses Python for the Raspberry Pi code and jQuery for the Web UI.\n\n## [Rest to WebSocket demo](rest-to-websocket/)\n\nThis example shows how to combine the REST and WebSocket API of Eclipse Ditto.\nThis is demonstrated using a Frontend that sends REST requests and\na Thing that has a WebSocket connection to Ditto and uses it to receive\nand respond to Messages. This project requires a running Eclipse Ditto\ninstance and a modern web browser.\n\n## [Octopus via Hono to Ditto](octopus-via-hono/)\n\nArduino based example on a ESP8266 board publishing read out sensor values in Ditto Protocol via\nthe MQTT endpoint of [Eclipse Hono](https://www.eclipse.org/hono/) to a digital twin in Ditto:\n\n- BME680 sensor\n  - temperature\n  - humidity\n  - barometer\n- BNO055 sensor\n  - temperature\n  - linear acceleration\n  - angular velocity\n  - gravity\n  - absolute orientation\n  - accelerometer\n  - magnetometer\n- power voltage\n\n## [IoT-Device connected directly to Ditto via MQTT - controlled by a custom solution](mqtt-bidirectional/)\n\nThis example demonstrates how to connect an Arduino based device to Eclipse Ditto and how\npayload mapping can be utilized to transform its telemetry data into a valid digital twin representation.\nFurthermore a simple front-end allows manipulating the digital twin and receives twin updates\nvia SSE (Server Sent Events).\n\n### Parts of this example\n\n- Arduino\n  - How to establish a network connection\n  - How to establish a MQTT connection\n  - How to receive and publish valid JSON data\n- Front-end\n  - How to use Ditto's HTTP API for\n    - Create policy and things\n    - Create a connection (MQTT)\n    - Send live messages to device\n    - Listen to server sent events\n- Eclipse Ditto\n  - How to set up Eclipse Ditto with Docker (alternatively use Ditto's Sandbox)\n  - How to apply payload mapping on incoming messages from a connection\n\n## [Quick introduction to MQTT in Ditto](mqtt-quick-introduction/)\n\nThis example demonstrates how to setup step by step MQTT connection in Ditto.\nIt presents how to updates things in Ditto and how to receive notifications that something was changed.\n\n## [Samples for Microsoft Azure users](azure/)\n\nSamples to leverage Eclipse Ditto capabilities with Microsoft Azure services.\n\n## [kata](kata/)\n\nA code kata is a way of learning new things and consolidating what has been learned. The presented katas serve to \nunderstand specific features of ditto better.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-ditto%2Fditto-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-ditto%2Fditto-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-ditto%2Fditto-examples/lists"}