Files
OpenEPaperLink/ESP32_AP-Flasher/wwwroot/content_cards.json
2023-08-21 01:05:43 +02:00

636 lines
14 KiB
JSON

[
{
"id": 0,
"name": "Static image",
"desc": "Shows a static image, from file system, painter or external source",
"hwtype": [
0,
1,
2,
5,
51,
17
],
"param": [
{
"key": "filename",
"name": "Filename",
"desc": "Local filename on the littlefs drive",
"type": "text"
},
{
"key": "timetolive",
"name": "TimeToLive",
"desc": "Amount (minutes) that this image will stay valid. The tag might not respond meanwhile",
"type": "int"
},
{
"key": "dither",
"name": "Dithering",
"desc": "Turn halftone dithering on or off. Turn it on when displaying photos. For texts, you better leave if off",
"type": "select",
"options": {
"0": "off",
"1": "on"
}
}
]
},
{
"id": 1,
"name": "Current date",
"desc": "Shows the current date",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": []
},
{
"id": 2,
"name": "Count days",
"desc": "Counts days, starting with the value below. If the count value gets higher than the threshold, the number is displayed in red, otherwise it's black",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": [
{
"key": "counter",
"name": "Counter value",
"desc": "Current value",
"type": "int"
},
{
"key": "thresholdred",
"name": "Threshold",
"desc": "Value is displayed in red if higher than the threshold",
"type": "int",
"hwtype": [
0,
1,
2,
51,
17
]
}
]
},
{
"id": 3,
"name": "Count hours",
"desc": "Counts hours, starting with the value below. If the count value gets higher than the threshold, the number is displayed in red, otherwise it's black",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": [
{
"key": "counter",
"name": "Counter",
"desc": "Current value",
"type": "int"
},
{
"key": "thresholdred",
"name": "Threshold",
"desc": "Value is displayed in red if higher than the threshold",
"type": "int",
"hwtype": [
0,
1,
2,
5,
51,
17
]
}
]
},
{
"id": 4,
"name": "Current weather",
"desc": "Current weather. Weather data by Open-Meteo.com",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": [
{
"key": "location",
"name": "Location",
"desc": "Name of the city. This is used to lookup the lat/long data, and to display as the title",
"type": "text"
},
{
"key": "#lat",
"name": "Lat",
"desc": "Latitude (set automatic when generating image)",
"type": "ro"
},
{
"key": "#lon",
"name": "Lon",
"desc": "Longitude (set automatic when generating image)",
"type": "ro"
},
{
"key": "units",
"name": "Units",
"desc": "Celcius or Fahrenheit?",
"type": "select",
"options": {
"0": "-Celcius / Beaufort / millimeters",
"1": "Fahrenheit / mph / millimeters"
}
}
]
},
{
"id": 8,
"name": "Weather forecast",
"desc": "Weather forecast for the next five days. Weather data by Open-Meteo.com",
"hwtype": [
1,
2,
5,
51,
17
],
"param": [
{
"key": "location",
"name": "Location",
"desc": "Name of the city. This is used to lookup the lat/long data, and to display as the title",
"type": "text"
},
{
"key": "#lat",
"name": "Lat",
"desc": "Latitude (set automatic when generating image)",
"type": "ro"
},
{
"key": "#lon",
"name": "Lon",
"desc": "Longitude (set automatic when generating image)",
"type": "ro"
},
{
"key": "units",
"name": "Units",
"desc": "Celcius or Fahrenheit?",
"type": "select",
"options": {
"0": "-Celcius / Beaufort / millimeters",
"1": "Fahrenheit / mph / millimeters"
}
}
]
},
{
"id": 16,
"name": "Buienradar",
"desc": "Dutch rain predictions for the next two hours. Only works for locations in the Netherlands and Belgium.",
"hwtype": [
1,
51,
17
],
"param": [
{
"key": "location",
"name": "Location",
"desc": "Name of the city. This is used to lookup the lat/long data, and to display as the title",
"type": "text"
},
{
"key": "#lat",
"name": "Lat",
"desc": "Latitude (set automatic when generating image)",
"type": "ro"
},
{
"key": "#lon",
"name": "Lon",
"desc": "Longitude (set automatic when generating image)",
"type": "ro"
}
]
},
{
"id": 9,
"name": "RSS feed",
"desc": "Gets an RSS feed, and display the first few lines of it",
"hwtype": [
1,
2,
5,
51,
17
],
"param": [
{
"key": "title",
"name": "Title",
"desc": "Displayed title",
"type": "text"
},
{
"key": "url",
"name": "URL",
"desc": "Full URL of the RSS feed",
"type": "text"
},
{
"key": "interval",
"name": "Interval",
"desc": "How often (in minutes) the feed is being refreshed",
"type": "int"
}
]
},
{
"id": 7,
"name": "Image URL",
"desc": "Gets an external image and displays it",
"hwtype": [
0,
1,
2,
5,
51,
17
],
"param": [
{
"key": "url",
"name": "URL",
"desc": "Full URL of the image. Image should be in jpeg format (non-progressive), and with exactly the right resolution for the screen (eg 128x296 or 152x152). Will be auto-rotated. Colors will be dithered",
"type": "text"
},
{
"key": "interval",
"name": "Interval",
"desc": "How often (in minutes) the image is being fetched. Minimum is 3 minutes.",
"type": "int"
}
]
},
{
"id": 19,
"name": "Json template",
"desc": "Gets an external json template and displays it",
"hwtype": [
0,
1,
2,
5,
51,
17
],
"param": [
{
"key": "url",
"name": "URL",
"desc": "Full URL of the json template. See OpenEpaperLink wiki for the right json format. Specify a url OR a filename",
"type": "text"
},
{
"key": "filename",
"name": "Filename",
"desc": "Filename of the json template. See OpenEpaperLink wiki for the right json format. Specify a url OR a filename",
"type": "text"
},
{
"key": "interval",
"name": "Interval",
"desc": "In case of an url, wow often (in minutes) the template is being fetched. Minimum is 3 minutes.",
"type": "int"
}
]
},
{
"id": 10,
"name": "QR code",
"desc": "Displayes a full screen QR code",
"hwtype": [
0,
1,
2,
5,
17,
51
],
"param": [
{
"key": "title",
"name": "Title",
"desc": "Displayed title",
"type": "text"
},
{
"key": "qr-content",
"name": "QR content",
"desc": "Any content that can be coded into a QR code",
"type": "text"
}
]
},
{
"id": 11,
"name": "Google calendar",
"desc": "Displays the current and upcoming appointments (next 24 hours) from a Google calendar. To let this work, you need a small Google Apps Script to interface with your calendar. See documentation on github how to do that",
"hwtype": [
1,
2,
5,
51,
17
],
"param": [
{
"key": "title",
"name": "Title",
"desc": "Displayed title",
"type": "text"
},
{
"key": "apps_script_url",
"name": "Apps Script URL",
"desc": "URL given by Google Apps Script",
"type": "text"
},
{
"key": "interval",
"name": "Interval",
"desc": "How often (in minutes) the calendar is being refreshed",
"type": "int"
}
]
},
{
"id": 5,
"name": "Firmware update",
"desc": "To update tag firmware",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": [
{
"key": "filename",
"name": "Filename",
"desc": "Local file on littlefs partition",
"type": "text"
}
]
},
{
"id": 12,
"name": "Remote content",
"desc": "Content is generated by a different Access Point",
"hwtype": []
},
{
"id": 13,
"name": "Set segments",
"desc": "Used for debugging. Work in progress",
"hwtype": [
240
],
"param": [
{
"key": "line1",
"name": "line 1",
"desc": "8888",
"type": "text"
},
{
"key": "line2",
"name": "line 2",
"desc": "88",
"type": "text"
},
{
"key": "line3",
"name": "line 3",
"desc": "8888",
"type": "text"
}
]
},
{
"id": 14,
"name": "Set NFC URL",
"desc": "Send the URL to the NFC chip. The URL is transmitted to a NFC reader (like your phone) if you hold it next to the tag",
"hwtype": [
0,
17
],
"capabilities": 64,
"param": [
{
"key": "url",
"name": "URL",
"desc": "Full URL",
"type": "text"
}
]
},
{
"id": 15,
"name": "Send custom LUT",
"desc": "EXPERIMENTAL. Don't use. YOU RISK DAMAGING YOUR SCREEN.",
"hwtype": [
1
],
"capabilities": 4,
"param": [
{
"key": "bytes",
"name": "bytes",
"desc": "76 bytes, formatted as 0x00,0x00,...",
"type": "text"
}
]
},
{
"id": 17,
"name": "Send Command",
"desc": "Send a command to a tag to execute; only to be used for tests during development",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": [
{
"key": "cmd",
"name": "CMD id",
"desc": "Action",
"type": "int"
}
]
},
{
"id": 18,
"name": "Set Tag Config",
"desc": "Sets tag options. The options you see below are the default options. This may or may not match current tag settings",
"hwtype": [
0,
1,
2,
5,
17,
51,
240
],
"param": [
{
"key": "fastboot",
"name": "Boot method",
"desc": "How the tag should boot, fast or normal",
"type": "select",
"options": {
"0": "-Normal boot",
"1": "Fast boot"
}
},
{
"key": "rfwake",
"name": "RF Wake",
"desc": "If the tag should support RF wake or not. This adds a 0.9µA current draw",
"type": "select",
"options": {
"0": "-Disabled",
"1": "Enabled"
}
},
{
"key": "tagroaming",
"name": "Tag Roaming",
"desc": "If enabled, the tag will periodically scan for AP's and will switch to a different channel if a stronger signal is found",
"type": "select",
"options": {
"0": "-Disabled",
"1": "Enabled"
}
},
{
"key": "tagscanontimeout",
"name": "Scan for AP on timeout",
"desc": "If a tag hasn't found an AP for an hour, should it rescan the channels for another AP?",
"type": "select",
"options": {
"1": "-Enabled",
"0": "Disabled"
}
},
{
"key": "showlowbat",
"name": "Low Battery symbol",
"desc": "Should the tag display the 'low battery' symbol if the battery a voltage threshold has been reached?",
"type": "select",
"options": {
"1": "-Enabled",
"0": "Disabled"
}
},
{
"key": "shownorf",
"name": "No AP symbol",
"desc": "Should the tag display the 'No-signal/AP' symbol if it hasn't been able to contact an AP?",
"type": "select",
"options": {
"1": "-Enabled",
"0": "Disabled"
}
},
{
"key": "lowvoltage",
"name": "Low voltage threshold",
"desc": "Below what voltage should the tag display the 'low bat' symbol?",
"type": "select",
"options": {
"2600": "-2.6v",
"2500": "2.5v",
"2400": "2.4v",
"2300": "2.3v",
"2200": "2.2v"
}
},
{
"key": "fixedchannel",
"name": "Fixed Channel",
"desc": "What channel should the tag initially join?",
"type": "select",
"options": {
"0": "-Auto",
"11": "11",
"15": "15",
"20": "20",
"25": "25",
"26": "26",
"27": "27"
}
}
]
},
{
"id": 20,
"name": "Display a copy",
"desc": "Mirror the contents of a source tag to this destination tag, regardless of the content. The two tags should be of the same type. Ideally, the destination tag is local to the AP.",
"hwtype": [
0,
1,
2,
5,
51,
17
],
"param": [
{
"key": "mac",
"name": "Mac-address",
"desc": "Mac-address of the tag you want to use as content source. The source tag should either be associated with this access point, or this access point should be the content source.",
"type": "text"
}
]
},
{
"id": 21,
"name": "Access point info",
"desc": "Displays information about the currently connected access point",
"hwtype": [0, 1]
}
]