Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions kinds/5107.md
Original file line number Diff line number Diff line change
@@ -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\"]}]" ]
]
}
```
20 changes: 20 additions & 0 deletions ranges/5107.md
Original file line number Diff line number Diff line change
@@ -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'
---