-
-
Save isaacpalomero/35fcacc550badd5f8cbcee4d5e19b2ab to your computer and use it in GitHub Desktop.
APL 1.3 refresh image every 30 seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "APL", | |
"version": "1.3", | |
"settings": { | |
"idleTimeout": 300000 | |
}, | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": {}, | |
"onMount": [], | |
"graphics": {}, | |
"commands": {}, | |
"layouts": {}, | |
"mainTemplate": { | |
"parameters": [ | |
"payload" | |
], | |
"items": [ | |
{ | |
"type": "Container", | |
"alignItems": "center", | |
"justifyContent": "center", | |
"items": [ | |
{ | |
"type": "Image", | |
"width": 640, | |
"height": 480, | |
"source": "https://placem.at/places?w=640&h=480&random=${Time.format('YYYYMMDDHHMM', localTime)}${(Math.floor(Time.seconds(localTime) / 30) * 30) % 60}" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment