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 13:45] 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 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 ====+
  
 Bash: Bash:
Line 62: 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}`); 
 +
 +</code> 
 + 
 +==== Code examples (text) ==== 
 + 
 +Bash: 
 + 
 +<code bash> 
 +curl -X POST \ 
 +  --header "Content-Type: application/json"
 +  --data '{"text":"Hello World!"}'
 +  https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text 
 +</code> 
 + 
 +Or in NodeJS / Bun / Deno: 
 + 
 +<code javascript> 
 +const response = await fetch("https://wot-why.jaller.de/receipt-printers-for-events/text/actions/print-text",
 +  method: "POST", 
 +  headers: { 
 +    "Content-Type": "application/json", 
 +  }, 
 +  body: JSON.stringify({ 
 +    text: "Hello World!", 
 +  }), 
 +}); 
 + 
 +if (!response.ok) { 
 +  throw Error(`Failed to queue print job. HTTP ${response.status}`);
 } }
 </code> </code>
Line 85: 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.1769777139.txt.gz · Last modified: by Christian Paul

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki