Skip to content

Instantly share code, notes, and snippets.

@darrenparkinson
Created January 24, 2023 15:50
Show Gist options
  • Save darrenparkinson/bd3864175e0e80a5a6ab5825fe6687f0 to your computer and use it in GitHub Desktop.
Save darrenparkinson/bd3864175e0e80a5a6ab5825fe6687f0 to your computer and use it in GitHub Desktop.
PixelIt Postman Collection
{
"info": {
"_postman_id": "08f0fa1e-48d6-4f39-bf07-d7579b3ceb24",
"name": "PixelIt",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "749469"
},
"item": [
{
"name": "0. Example - Fade Animation / Image / Text",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"switchAnimation\": {\n \"aktiv\": true,\n \"animation\": \"fade\"\n },\n \"bitmap\": {\n \"data\": [\n 0, 0, 0, 21855, 0, 0, 0, 0, 0, 0, 0, 21855, 0, 0, 0, 0, 0, 0, 21855,\n 21855, 21855, 0, 0, 0, 0, 0, 21855, 21855, 21855, 0, 0, 0, 0, 693, 1055,\n 1055, 65535, 44735, 0, 0, 0, 693, 1055, 65535, 65535, 44735, 0, 0, 0, 693,\n 1055, 1055, 65535, 21855, 0, 0, 0, 0, 693, 1055, 21855, 0, 0, 0\n ],\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"size\": {\n \"width\": 8,\n \"height\": 8\n }\n },\n \"text\": {\n \"textString\": \"59%\",\n \"bigFont\": false,\n \"scrollText\": false,\n \"scrollTextDelay\": 0,\n \"centerText\": true,\n \"position\": {\n \"x\": 7,\n \"y\": 1\n },\n \"hexColor\": \"#1E00FF\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "1. Text",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"text\": {\n \"textString\": \"Test It :D € ← ↑ → ↓ ★ ♥ ↧ 🚗 😀 📁 📄\",\n \"bigFont\": false,\n \"scrollText\": \"auto\",\n \"scrollTextDelay\": 120,\n \"centerText\": false,\n \"position\": {\n \"x\": 8,\n \"y\": 1\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n}\n ",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "2. Sleep Mode",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"sleepMode\": false\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "3. Brightness",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"brightness\": 127\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "4. Switch Animation",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"switchAnimation\": {\n \"aktiv\": true,\n \"animation\": \"fade\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "4b. Switch Animation Bitmap Wipe",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"switchAnimation\": {\n \"aktiv\": true,\n \"animation\": \"fade\",\n \"data\": [0, 0, 0, 0, 0, 0],\n \"width\": 8\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "5. Clock",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"clock\": {\n \"show\": true,\n \"switchAktiv\": true,\n \"withSeconds\": false,\n \"switchSec\": 21,\n \"drawWeekDays\": true,\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "6. Bitmap",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "\n{\n \"bitmap\": {\n \"data\": [63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,65535,65535,65535,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,63488,63488,65535,65535,63488,63488,63488,65535,63488,63488,65535,65535,65535,63488,63488,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,65535,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,63488,65535,63488,65535,63488,63488,63488,65535,65535,65535,65535,63488,63488,65535,63488,63488,65535,65535,65535,63488,63488,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,63488,63488,65535,65535,63488,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,63488,63488,63488,65535,65535,65535,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,65535,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488,63488],\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"size\": {\n \"width\": 32,\n \"height\": 8\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "7. Bitmaps",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bitmaps\": [\n {\n \"data\": [0,14783,25023,37375,37375,49598,49598,0,35294,35294,65535,65535,65535,65535,63999,63928,53791,65535,63928,63928,63928,65535,65535,63928,61983,65535,63928,65535,65535,63928,65535,63928,59885,65535,59885,65535,65535,63928,65535,63928,64518,65535,64518,64518,64518,59885,65535,63928,64901,65260,65535,65535,65535,65535,59885,63928,0,65461,65461,65166,64967,62502,64166,0],\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"size\": {\n \"width\": 8,\n \"height\": 8\n }\n },\n {\n \"data\":[21,21,21,21,21,65535,65535,65535,21,21,21,21,65535,65535,65535,65535,21,21,21,21,65535,65535,21,21,21,21,21,65535,65535,65535,65535,21,21,21,21,65535,65535,65535,65535,21,21,21,21,21,65535,65535,21,21,21855,21855,21855,21855,65535,65535,21855,21855,21855,21855,21855,21855,65535,65535,21855,21855],\n \"position\": {\n \"x\": 8,\n \"y\": 0\n },\n \"size\": {\n \"width\": 8,\n \"height\": 8\n }\n },\n {\n \"data\": [0,0,0,0,2047,63488,0,0,0,0,0,0,2047,65535,63488,0,0,0,0,0,2047,65535,65535,63488,0,2047,2047,0,2047,63488,0,0,2047,65535,65535,0,2047,63488,0,0,2047,65535,0,0,2047,63488,0,0,2047,65535,65535,65535,65535,63488,0,0,0,2047,65535,65535,63488,0,0,0],\n \"position\": {\n \"x\": 16,\n \"y\": 0\n },\n \"size\": {\n \"width\": 8,\n \"height\": 8\n }\n },\n {\n \"data\": [1055,1055,1055,1055,1055,1055,1055,1055,1055,1055,1055,1055,65535,65535,1055,1055,1055,65535,1055,1055,65535,65535,65535,1055,1055,65535,65535,1055,65535,65535,1055,1055,1055,65535,65535,65535,65535,65535,1055,1055,1055,1055,65535,65535,65535,65535,1055,1055,1055,1055,1055,65535,65535,1055,1055,1055,1055,1055,1055,1055,1055,1055,1055,1055],\n \"position\": {\n \"x\": 24,\n \"y\": 0\n },\n \"size\": {\n \"width\": 8,\n \"height\": 8\n }\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "8. Bitmap Animation",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bitmapAnimation\": {\n \"data\": [\n [65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535],\n [65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],\n [63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504],\n [65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535],\n [65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535],\n [65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,63504,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],\n [63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504],\n [65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535,65535,65535,65535,63504,63504,65535,65535,65535]\n ],\n \"animationDelay\": 100,\n \"rubberbanding\": false,\n \"limitLoops\": 0\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "9. Bar",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bar\": {\n \"position\": {\n \"x\": 0,\n \"y\": 4,\n \"x2\": 8,\n \"y2\": 4\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "10. Bars",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bars\": [\n {\n \"position\": {\n \"x\": 0,\n \"y\": 0,\n \"x2\": 7,\n \"y2\": 7\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n },{\n \"position\": {\n \"x\": 7,\n \"y\": 0,\n \"x2\": 0,\n \"y2\": 7\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "Extra: Bitmap with Text",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bitmap\": {\n \"id\": 2,\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"size\": {\n \"width\": 8,\n \"height\": 8\n }\n },\n \"text\": {\n \"textString\": \"Test It :D € ← ↑ → ↓ ★ ♥ ↧ 🚗 😀 📁 📄\",\n \"bigFont\": false,\n \"scrollText\": \"auto\",\n \"scrollTextDelay\": 120,\n \"centerText\": false,\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{host}}/api/screen",
"protocol": "http",
"host": [
"{{host}}"
],
"path": [
"api",
"screen"
]
}
},
"response": []
},
{
"name": "Extra: Bitmap ID API",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://pixelit.bastelbunker.de/api/GetBMPByID/878",
"protocol": "https",
"host": [
"pixelit",
"bastelbunker",
"de"
],
"path": [
"api",
"GetBMPByID",
"878"
]
}
},
"response": []
},
{
"name": "Extra: Get Newest Bitmap",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"text\": {\n \"textString\": \"Test It :D € ← ↑ → ↓ ★ ♥ ↧ 🚗 😀 📁 📄\",\n \"bigFont\": false,\n \"scrollText\": \"auto\",\n \"scrollTextDelay\": 120,\n \"centerText\": false,\n \"position\": {\n \"x\": 8,\n \"y\": 1\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n}\n ",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://pixelit.bastelbunker.de/api/GetBMPNewst",
"protocol": "https",
"host": [
"pixelit",
"bastelbunker",
"de"
],
"path": [
"api",
"GetBMPNewst"
]
}
},
"response": []
},
{
"name": "Extra: Get Releases",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"text\": {\n \"textString\": \"Test It :D € ← ↑ → ↓ ★ ♥ ↧ 🚗 😀 📁 📄\",\n \"bigFont\": false,\n \"scrollText\": \"auto\",\n \"scrollTextDelay\": 120,\n \"centerText\": false,\n \"position\": {\n \"x\": 8,\n \"y\": 1\n },\n \"color\": {\n \"r\": 255,\n \"g\": 255,\n \"b\": 255\n },\n \"hexColor\": \"#FFFFFF\"\n }\n}\n ",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://pixelit.bastelbunker.de/api/Releases",
"protocol": "https",
"host": [
"pixelit",
"bastelbunker",
"de"
],
"path": [
"api",
"Releases"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "host",
"value": "192.168.86.21",
"type": "string"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment