A web version of laboite.
Design your tiles on https://lenuage.redgick.com/, display them on: https://magopian.github.io/laboite-web/
A web version of laboite.cc
A web version of laboite.
Design your tiles on https://lenuage.redgick.com/, display them on: https://magopian.github.io/laboite-web/
Instead of going through the "nuage" (backend server) to make the requests to the various services, experiment requesting the values straight from the client.
The slides (tiles) and items (values displayed on a part of a slide/tile) could be stored in kinto.
Brain dump:
{
"id": "id of the tile",
"last_modified": 123456, // timestamp of last modification of the tile (or its items)
"display_time": 5, // how long to display the tile in seconds
"items": [
{
"refresh_every": 60, // delay between requests in seconds
"type": "clock", // one of clock, icon, text, json, html, ...
"x": 0, // position in "led pixel" along the x axis
"y": 0, // position in "led pixel" along the y axis
},
{
"type": "icon", // one of clock, icon, text, json, html, ...
"x": 0, // position in "led pixel" along the x axis
"y": 0, // position in "led pixel" along the y axis
"content": "01101...",
"width": 8 // number of leds for the width
},
{
"type": "text", // one of clock, icon, text, json, html, ...
"x": 0, // position in "led pixel" along the x axis
"y": 0, // position in "led pixel" along the y axis
"text": "Hello world !"
},
{
"refresh_every": 180, // delay between requests in seconds
"type": "json", // one of clock, icon, text, json, html, ...
"x": 0, // position in "led pixel" along the x axis
"y": 0, // position in "led pixel" along the y axis
"url": "http://....",
"login": "username", // optional login for the service
"password": "password", // optional password for the service
"cors-proxy": "https://....", // optional CORS proxy
"path": "data.foo[2].bar", // path to access the value in the json
},
{
"refresh_every": 300, // delay between requests in seconds
"type": "html", // one of clock, icon, text, json, html, ...
"x": 0, // position in "led pixel" along the x axis
"y": 0, // position in "led pixel" along the y axis
"url": "http://....",
"login": "username", // optional login for the service
"password": "password", // optional password for the service
"cors-proxy": "https://....", // optional CORS proxy
"selector": ".content #foo[itemprop=datePublished]", // dom selector to get the node
"attribute": "src" // attribute of the node to get for the value (eg src, innerHTML...)
}
]
}
When removing a slide/tile from the "nuage" (the backend server), it needs to be removed from the frontend also.
Using something like https://github.com/richtr/NoSleep.js/blob/master/src/media.js
It this a good idea? Is it needed, or could it be done on the device itself (tweaking the power management maybe?)
Maybe a viable solution for the device itself: https://play.google.com/store/apps/details?id=com.synetics.stay.alive
It seems it's also possible to disable the lockscreen entirely in the settings.
Currently any text that doesn't fit on a slide is truncated. It should instead scroll
For example trying to display the message "Merci laboîte pour ces bons moments!" will break at the î
, and nothing else that follows will be displayed.
We should instead display either a space or a ?
.
Currently, the tiles are loaded once and for all at the start. They should be reloaded every so often (each time they've been displayed? Do we want to add another info like refresh_delay
?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.