Skip to content

NOISSUE - Add blog post: How to Save JSON Messages in Magistrala - #175

Open
ianmuchyri wants to merge 2 commits into
mainfrom
add-json-messages-blog-post
Open

NOISSUE - Add blog post: How to Save JSON Messages in Magistrala#175
ianmuchyri wants to merge 2 commits into
mainfrom
add-json-messages-blog-post

Conversation

@ianmuchyri

@ianmuchyri ianmuchyri commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New tutorial post at src/content/blogs/how-to-save-json-messages-magistrala.md, category: tutorial, modeled on the existing Custom Nodes tutorial's structure (Prerequisites -> walkthrough -> Verification -> Troubleshooting -> Next steps).
  • Covers the Rules Engine's new Internal DB (JSON) output: wiring it into a rule, how it differs from the SenML output (no validation, automatic json-table routing), the writer-deployment prerequisite, and verifying a saved message shows up in a JSON-format Message View.
  • Companion to the backing implementation (absmach/magistrala-ee#9, absmach/magistrala-ee#12, absmach/magistrala-ui#1509, NOISSUE - Add save_json output type to Rules Engine SDK magistrala-sdk-ts#291) and docs (NOISSUE - Document the new Internal DB (JSON) rule output and JSON writer setup magistrala-docs#166, Add Message Views user-guide docs magistrala-docs#165).
  • coverImage/ogImage and four in-context screenshots (Add Output dialog, completed rule canvas, populated JSON Message View, JSON payload viewer), all captured against a real deployment now that the writer-deployment gap is fixed (magistrala-ee#12).
  • Fixed the mosquitto_pub verification example, which used a topic format and auth method that don't match how Magistrala actually expects a client to publish.

Test plan

  • pnpm run build - full Astro build succeeds, post renders at /blog/how-to-save-json-messages-magistrala/ with all four images resolving
  • prettier --check passes on the changed file
  • Frontmatter validates against the Zod content schema (build would fail otherwise)

Tutorial covering the Rules Engine's new Internal DB (JSON) output:
wiring it into a rule, what it does differently from the SenML
output, why a JSON-capable writer must also be deployed for messages
to actually persist, and verifying a saved message shows up in a
JSON-format Message View.

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
absmach-website 512f9f4 Commit Preview URL

Branch Preview URL
Aug 05 2026, 10:26 AM

- coverImage/ogImage plus in-context screenshots for the Add Output
  dialog, completed rule canvas, populated JSON Message View, and the
  JSON payload viewer - all captured against a real deployment now
  that the writer-deployment gap (magistrala-ee#12) is fixed. Closes
  the known gap called out in the PR description.
- mosquitto_pub example used channels/<channel-id>/messages with
  cert-only auth, neither of which matches how Magistrala actually
  expects a client to publish. Corrected to m/<domain_id>/c/<channel_id>
  with client id/secret auth, matching every other mosquitto_pub
  example in the docs.
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.

1 participant