From 6a3743c046575b654460203c4133233cac2eb6a1 Mon Sep 17 00:00:00 2001 From: blackcoffeexbt <87530449+blackcoffeexbt@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:22:01 +0100 Subject: [PATCH] Added kind 5107 --- kinds/5107.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ ranges/5107.md | 20 ++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 kinds/5107.md create mode 100644 ranges/5107.md diff --git a/kinds/5107.md b/kinds/5107.md new file mode 100644 index 0000000..4d17ca7 --- /dev/null +++ b/kinds/5107.md @@ -0,0 +1,50 @@ +--- +layout: default +title: Internet of Things (IoT) +description: Job request to interact with the Internet of Things +--- + +# Input + +Clients provide a stringifed JSON RPC style list of commands that an IoT device can trigger + +Example + +```jsonc +[ + { + "method": "setTimezone", + "params": ["Europe/London"] + }, + { + "method": "setLanguage", + "params": ["en-GB"] + }, + { + "method": "getTime", + "params": [] + }, + { + "method": "getTemperature", + "params": ["unit", "celcius"] + } +] +``` + +# Output + +The input stringifed JSON RPC list with set values or errors + +# Example + +This example sets the timezone to Europe/London, the language to en-GB, gets the current time, and gets the current temperature in celcius + +```json +{ + "content": "", + "kind": 5201, + "tags": [ + [ "i", "[{\"method\":\"setTimezone\",\"params\":[\"Europe/London\"]},{\"method\":\"setLanguage\",\"params\":[\"en-GB\"]},{\"method\":\"getTime\",\"params\":[]},{\"method\":\"setTemperature\",\"params\":[\"unit\",\"celcius\"]}]" ] + ] +} +``` diff --git a/ranges/5107.md b/ranges/5107.md new file mode 100644 index 0000000..f77d68d --- /dev/null +++ b/ranges/5107.md @@ -0,0 +1,20 @@ +--- +# Page settings +layout: homepage +keywords: nostr + +# Hero section +title: Internet of Things +buttons: + - content: Back + url: '/' + external_url: false + + +# Grid navigation +grid_navigation: + - title: Internet of Things + excerpt: "Kind 5107" + cta: View + url: '/kinds/5107' +---