web_of_things:fosdem_2026
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| web_of_things:fosdem_2026 [2026/01/30 10:58] – Christian Paul | web_of_things:fosdem_2026 [2026/01/30 19:27] (current) – Christian Paul | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Web of Things at FOSDEM 2026 ====== | ====== Web of Things at FOSDEM 2026 ====== | ||
| - | Web of Things is a set of standards for Internet of Things use cases. At the Matrix Hackathon and FOSDEM 2026, I intend to let people experiment with the following hardware. I support Web of Things via HTTP and Websockets. | + | ===== Quick start ===== |
| - | ===== Receipt | + | * [[https:// |
| + | * [[https:// | ||
| - | Current status: | + | ===== Advanced: HTTP API ===== |
| + | |||
| + | Web of Things is a set of standards for Internet of Things use cases. At the Matrix Hackathon and FOSDEM 2026, I brought the following hardware. They support support Web of Things via HTTP and Websockets. | ||
| + | |||
| + | ==== Receipt printer ==== | ||
| + | |||
| + | Current status: | ||
| {{: | {{: | ||
| Line 17: | Line 24: | ||
| * Supported image formats: PNG (best results), JPG | * Supported image formats: PNG (best results), JPG | ||
| - | ==== URLs ==== | + | === URLs === |
| - | Use these URLs to prepare for the event or test your scripts. They will not print anything. | + | |
| - | * Test URL for images: https:// | + | * URL for printing |
| - | * Thing Description: https:// | + | * URL for scripts: https:// |
| - | * Test URL for text: https:// | + | * UI for printing |
| - | * Thing Description: https:// | + | * URL for scripts: https:// |
| - | The final URLs will be published at the Matrix Hackathon. | + | ==== Code examples |
| - | + | ||
| - | ==== Code examples ==== | + | |
| Bash: | Bash: | ||
| Line 55: | Line 59: | ||
| if (!response.ok) { | if (!response.ok) { | ||
| - | throw Error(`Failed to upload image. HTTP ${response.status}`); | + | throw Error(`Failed to queue print job. HTTP ${response.status}`); |
| } | } | ||
| </ | </ | ||
| - | ===== E-paper screen | + | ==== Code examples (text) ==== |
| + | |||
| + | Bash: | ||
| + | |||
| + | <code bash> | ||
| + | curl -X POST \ | ||
| + | --header " | ||
| + | --data ' | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | Or in NodeJS / Bun / Deno: | ||
| + | |||
| + | <code javascript> | ||
| + | const response = await fetch(" | ||
| + | method: " | ||
| + | headers: { | ||
| + | " | ||
| + | }, | ||
| + | body: JSON.stringify({ | ||
| + | text: "Hello World!", | ||
| + | }), | ||
| + | }); | ||
| + | |||
| + | if (!response.ok) { | ||
| + | throw Error(`Failed to queue print job. HTTP ${response.status}`); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== E-paper screen ==== | ||
| Current status: Ready at https:// | Current status: Ready at https:// | ||
| Line 77: | Line 110: | ||
| * Supported image formats: PNG (best results), JPG | * Supported image formats: PNG (best results), JPG | ||
| - | ==== URLs ==== | + | === URLs === |
| - | Use these URLs to prepare for the event or test your scripts. They will not display anything on the screen, but the Thing has a preview property. | + | Use these URLs to test your scripts. They will not display anything on the screen, but the Thing has a preview property. |
| * Test URL: https:// | * Test URL: https:// | ||
| - | * Image property: https:// | + | * Image property |
| + | |||
| + | Use this URL to HTTP PUT an image onto the screen. | ||
| * Production URL for scripts: https:// | * Production URL for scripts: https:// | ||
web_of_things/fosdem_2026.1769767136.txt.gz · Last modified: by Christian Paul
