Skip to content

Conversation

@Mallets
Copy link

@Mallets Mallets commented Jun 12, 2025

This is a no frills Rust app that mimics the periodic update and observation of sensor data.

The goal is to focus the app on the basic usage of the Ditto SDK without all the noise usually introduced by integrating the Distto SDK with external frameworks. This would allow new users to focus directly on how to use the Ditto SDK.

The app needs to be configured in the same way as https://docs.ditto.live/sdk/latest/quickstarts/rust-console w.r.t. Ditto Credentials. So the same doc applies.

To see the app in action is sufficient to run multiple instances of the app in different terminals, e.g.:

cargo run -- --id kitchen
cargo run -- --id bedroom

This is a no frills Rust app that mimics the periodic update and observation
of sensor data. The goal is to focus the app on the basic usage of the Ditto
SDK without all the noise usually introduced by integrating the Distto
SDK with external frameworks. This would allow new users to focus directly on
how to use the Ditto SDK.

Run multiple instances of the app in different terminals, e.g.:
$ cargo run -- --id kitchen
$ cargo run -- --id bedroom"
@Mallets Mallets requested a review from a team as a code owner June 12, 2025 09:55
@Mallets Mallets requested review from nickrobinson and removed request for a team June 12, 2025 09:55
@Mallets Mallets self-assigned this Jun 12, 2025
@phatblat
Copy link
Member

@Mallets This looks handy, but I'm not sure this quickstart repo is the best home for this app. These apps go along with companion docs which help users get Ditto up and running quickly with real code and see Ditto in action.

All the apps share the same data model and have similar UI - although these vary between native GUI, TUI and web interfaces.

This app uses a sensors collection with Sample documents inserted as the sensor produces measurements. This seems like it might be better in its own repo with some explanation on how to set it up an connect a sensor.

Was this built to show a customer or just something you came up with?

@Mallets
Copy link
Author

Mallets commented Jul 31, 2025

This is the result of the discussion in https://dittolive.slack.com/archives/CND00ECK0/p1749647553863099 and https://dittolive.slack.com/archives/CGDF7RN3C/p1749736216102929.

TL;DR:

  • As part of my on-boarding I went through the exercise of building a simple app as a quickstart (not building a full demo app)
  • I provided feedback to #docs and was asked to contribute it
  • @cameron1024 seems to have have ported the app to the new data model (see slack) but I'm not sure where it is.

I don't have anything against closing this PR as it is.
It was really part of a feedback cycle and contribution request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants