links:smarthome:homey:openepaperlink
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
links:smarthome:homey:openepaperlink [2024-08-09 05:35] – [OpenEpaperLink-appen] anders_admin | links:smarthome:homey:openepaperlink [2024-12-22 11:30] (current) – [Graphics] anders_admin | ||
---|---|---|---|
Line 15: | Line 15: | ||
- Ev. behöver man starta om OpenEpaperLink-appen. | - Ev. behöver man starta om OpenEpaperLink-appen. | ||
- | ==== Local-API-appen (rekommenderas) ==== | + | ==== Alt 2. Local-API-appen (rekommenderas) ==== |
- Installera appen i Homey. | - Installera appen i Homey. | ||
- Skapa ett flow som triggas med Local-API-kortet "GET request received on url". Hitta på ett namn på taggen. | - Skapa ett flow som triggas med Local-API-kortet "GET request received on url". Hitta på ett namn på taggen. | ||
- Svara med JSON-strängen i respons-kortet för Local-API. | - Svara med JSON-strängen i respons-kortet för Local-API. | ||
- | - Ställ in dispaly-taggen i ePaper-AP' | + | - Ställ in dispaly-taggen i ePaper-AP' |
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Exempel ==== | ||
+ | Example json file: | ||
+ | < | ||
+ | [ | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | ==== Text ==== | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | |||
+ | ==== Paragraph Text ==== | ||
+ | A text, bounded by a box. The text flows to the next lines (breaking on spaces, hyphen and CR). Only works for .vlw bitmap fonts. Available from release 2.06 | ||
+ | |||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | Default line height = 1. Try values like 1.25 for a slightly bigger line spacing. | ||
+ | |||
+ | ==== Graphics ==== | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | { " | ||
+ | |||
+ | ==== Image ==== | ||
+ | { " | ||
+ | Places a JPG image (RGB, so no grayscale (can be tricky in some graphic software), baseline (non progressive)), | ||
+ | |||
+ | ==== Parameters ==== | ||
+ | x: X pixel coordinate (x1, x2 and x3 being multiple positions) | ||
+ | y: Y pixel coordinate (y1, y2 and y3 being multiple positions) | ||
+ | width: Width in pixels | ||
+ | height: Height in pixels | ||
+ | " | ||
+ | " | ||
+ | size: Font size | ||
+ | color: see below | ||
+ | bordercolor, | ||
+ | alignment: One of 0 (left), 1 (center) and 2 (right) (note that the x,y coordinates are also from the top left/ | ||
+ | When entering coordinates, | ||
+ | |||
+ | ==== Color parameter ==== | ||
+ | 0 or " | ||
+ | 1 or " | ||
+ | 2 or " | ||
+ | 3 or " | ||
+ | 4 or " | ||
+ | 5 or " | ||
+ | 6 or " | ||
+ | 7 or " | ||
+ | 8 or " | ||
+ | 9 or " | ||
+ | 10 or " | ||
+ | "# | ||
+ | |||
+ | ==== Fonts ==== | ||
+ | === Bitmap fonts === | ||
+ | any fonts in the /fonts folder: | ||
+ | |||
+ | bahnschrift20.vlw upper case, lower case, numbers, and äöüßÄÖÜåÅ!\"# | ||
+ | bahnschrift30.vlw upper case, lower case, numbers, and äöüßÄÖÜåÅ!\"# | ||
+ | bahnschrift70.vlw only 0123456789. | ||
+ | calibrib30.vlw upper case, lower case, numbers, and äöüßÄÖÜåÅ!\"# | ||
+ | twcondensed20.vlw Only SUMOTWEHFRAZDIV0123456789. Use for weekday names and numbers. | ||
+ | If you want to add extra fonts to this list, you can convert them from Truetype by using Processing (https:// | ||
+ | |||
+ | === Truetype fonts === | ||
+ | { " | ||
+ | |||
+ | Put the truetype font in the /fonts folder. Make sure you select your truetype font file carefully: some are very big, and that will not fit in the file system. | ||
+ | |||
+ | example: { " | ||
+ | |||
+ | Tip: if you want icons and symbols, the Font Awesome font works quite well. | ||
+ | |||
+ | ==== Rotate Screen ==== | ||
+ | It is possible to rotate the complete display: | ||
+ | |||
+ | { " | ||
+ | |||
+ | The possible Values are 0 for default orientation, | ||
- | {{: | ||
links/smarthome/homey/openepaperlink.1723181751.txt.gz · Last modified: 2024-08-09 05:35 by anders_admin