GithubHelp home page GithubHelp logo

isabella232 / ditto-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eclipse-ditto/ditto-examples

0.0 0.0 0.0 14.72 MB

Ditto Examples

License: Eclipse Public License 2.0

Python 3.69% HTML 6.61% JavaScript 15.76% CSS 0.61% C++ 6.68% C 0.40% Vue 3.83% Java 58.96% SCSS 0.12% TypeScript 3.33%

ditto-examples's Introduction

Eclipse Ditto :: Examples

Join the chat at https://gitter.im/eclipse/ditto

This repository contains examples and demonstrations of how to use Eclipse Ditto.

Projects

grove control

The grove control project shows the different communication possibilities using Eclipse Ditto on your local machine and a Rasperry Pi with GrovePi+ board as IoT device. This project uses Python for the Raspberry Pi code and jQuery for the Web UI.

Rest to WebSocket demo

This example shows how to combine the REST and WebSocket API of Eclipse Ditto. This is demonstrated using a Frontend that sends REST requests and a Thing that has a WebSocket connection to Ditto and uses it to receive and respond to Messages. This project requires a running Eclipse Ditto instance and a modern web browser.

Octopus via Hono to Ditto

Arduino based example on a ESP8266 board publishing read out sensor values in Ditto Protocol via the MQTT endpoint of Eclipse Hono to a digital twin in Ditto:

  • BME680 sensor
    • temperature
    • humidity
    • barometer
  • BNO055 sensor
    • temperature
    • linear acceleration
    • angular velocity
    • gravity
    • absolute orientation
    • accelerometer
    • magnetometer
  • power voltage

IoT-Device connected directly to Ditto via MQTT - controlled by a custom solution

This example demonstrates how to connect an Arduino based device to Eclipse Ditto and how payload mapping can be utilized to transform its telemetry data into a valid digital twin representation. Furthermore a simple front-end allows manipulating the digital twin and receives twin updates via SSE (Server Sent Events).

Parts of this example

  • Arduino
    • How to establish a network connection
    • How to establish a MQTT connection
    • How to receive and publish valid JSON data
  • Front-end
    • How to use Ditto's HTTP API for
      • Create policy and things
      • Create a connection (MQTT)
      • Send live messages to device
      • Listen to server sent events
  • Eclipse Ditto
    • How to set up Eclipse Ditto with Docker (alternatively use Ditto's Sandbox)
    • How to apply payload mapping on incoming messages from a connection

Samples for Microsoft Azure users

Samples to leverage Eclipse Ditto capabilities with Microsoft Azure services.

kata

A code kata is a way of learning new things and consolidating what has been learned. The presented katas serve to understand specific features of ditto better.

ditto-examples's People

Contributors

damian-gallo avatar derschwilk avatar dguggemos avatar ffendt avatar geglock avatar ihsansensoy avatar jokraehe avatar julianfeinauer avatar kaizimmerm avatar stmaute avatar thjaeckle avatar vadimgue avatar yannic92 avatar yufei-cai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.