User Tools

Site Tools


web_of_things:fosdem_2026

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
web_of_things:fosdem_2026 [2026/01/30 14:31] Christian Paulweb_of_things:fosdem_2026 [2026/01/30 19:27] (current) Christian Paul
Line 3: Line 3:
 ===== Quick start ===== ===== Quick start =====
  
-  * [[https://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/LDN3dJE3vu|Print photos on the receipt printer]] (select a photo then click "Invoke")+  * [[https://wot-wrench.chrpaul.de/#try=https://wot-why.jaller.de/receipt-printers-for-events/photo|Print photos on the receipt printer]] (select a photo then click "Invoke")
   * [[https://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/LDN3dJE3vu|Display images on the e-paper screen]]   * [[https://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/LDN3dJE3vu|Display images on the e-paper screen]]
  
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://wot-wrench.chrpaul.de/#try=https://wot-why.jaller.de/receipt-printers-for-events/photo +  * URL for printing images: https://wot-wrench.chrpaul.de/#try=https://wot-why.jaller.de/receipt-printers-for-events/photo 
-    * Thing Description: https://wot-why.jaller.de/receipt-printers-for-events/photo +    * URL for scripts: https://wot-why.jaller.de/receipt-printers-for-events/photo/actions/print-photo 
-  * Test URL for text: https://wot-wrench.chrpaul.de/#try=https://wot-why.jaller.de/receipt-printers-for-events/text +  * UI for printing text: https://wot-wrench.chrpaul.de/#try=https://wot-why.jaller.de/receipt-printers-for-events/text 
-    * Thing Description: https://wot-why.jaller.de/receipt-printers-for-events/text +    * URL for scripts: https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text
- +
-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 "Content-Type: application/json" \   --header "Content-Type: application/json" \
-  --data '{"text":"Hello World"}' \+  --data '{"text":"Hello World!"}' \
   https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text   https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text
 </code> </code>
Line 80: Line 77:
  
 <code javascript> <code javascript>
-import { readFile } from "node:fs/promise"; 
- 
-const image = await readFile("image.png"); 
 const response = await fetch("https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text", { const response = await fetch("https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text", {
   method: "POST",   method: "POST",
Line 89: Line 83:
   },   },
   body: JSON.stringify({   body: JSON.stringify({
-    image: "Hello World!",+    text: "Hello World!",
   }),   }),
 }); });
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://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/fosdem   * Test URL: https://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/fosdem
-    * Image property: https://wot.chrpaul.de/image-storage/fosdem+    * Image property for scripts: https://wot.chrpaul.de/image-storage/fosdem/properties/image 
 + 
 +Use this URL to HTTP PUT an image onto the screen.
  
   * Production URL for scripts: https://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/LDN3dJE3vu   * Production URL for scripts: https://wot-wrench.chrpaul.de/#try=https://wot.chrpaul.de/image-storage/LDN3dJE3vu
web_of_things/fosdem_2026.1769779868.txt.gz · Last modified: by Christian Paul

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki