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 14:31] – Christian Paul | web_of_things:fosdem_2026 [2026/01/30 19:27] (current) – Christian Paul | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Quick start ===== | ===== Quick start ===== | ||
| - | * [[https:// | + | * [[https:// |
| * [[https:// | * [[https:// | ||
| Line 25: | Line 25: | ||
| === 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 (images) ==== | ==== Code examples (images) ==== | ||
| Line 73: | Line 70: | ||
| curl -X POST \ | curl -X POST \ | ||
| --header " | --header " | ||
| - | --data ' | + | --data ' |
| https:// | https:// | ||
| </ | </ | ||
| Line 80: | Line 77: | ||
| <code javascript> | <code javascript> | ||
| - | import { readFile } from " | ||
| - | |||
| - | const image = await readFile(" | ||
| const response = await fetch(" | const response = await fetch(" | ||
| method: " | method: " | ||
| Line 89: | Line 83: | ||
| }, | }, | ||
| body: JSON.stringify({ | body: JSON.stringify({ | ||
| - | | + | |
| }), | }), | ||
| }); | }); | ||
| Line 117: | Line 111: | ||
| === 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.1769779868.txt.gz · Last modified: by Christian Paul
