- Sign up on resin.io
- go throught the getting started guide and create a new application
- clone this repository to your local workspace
- add the resin remote to your local workspace using the useful shortcut in the dashboard UI
git push resin master
- see the magic happening, your device is getting updated Over-The-Air!
||a value from
||the amount of RAM dedicated to the GPU||Raspberry Pi (all revs)|
Apply the above settings in the "Fleet Configuration" panel (if applying it for the all devices withing your application), or "Device Configuration" panel (if applying it for a single device).
WHY THIS TEMPLATE
Achieving kinda-smooth desktop application display on a devices like the raspberrypi is hard. This project aims to provide a quickstart template.
We did a lot of researches and tests with several window managers. Fluxbox ended up being the most balanced between minimum footprint and features
URL LAUNCHER config via ENV VARS
!!! Please note that since
bool-based env vars dropped
false strings in favour of
1 ones. !!!
simply set these environment varables in your app via "Environment Variables" panel in the resin dashboard to configure the behaviour of your devices.
Please note that the
bool type definition in the table is meant to accept to either
URL_LAUNCHER_URLstring - the URL to be loaded. use
file:////usr/src/app/data/index.htmlto load a local electronJS (or any website) app - defaults to
URL_LAUNCHER_KIOSKbool (converted from string) - whether or not enter KIOSK mode - defaults to
URL_LAUNCHER_TITLEstring - the title of the window. Seen only with
true- defaults to
URL_LAUNCHER_FRAMEbool (converted from string) - set to "true" to display the window frame. Seen only with
false- defaults to
URL_LAUNCHER_WIDTHint (converted from string) - - defaults to
URL_LAUNCHER_HEIGHTint (converted from string) - - defaults to
URL_LAUNCHER_TOUCHbool (converted from string) - enables touch events if your device supports them - defaults to
URL_LAUNCHER_TOUCH_SIMULATEbool (converted from string) - simulates touch events - might be useful for touchscreen with partial driver support - be aware this could be a performance hog - defaults to
URL_LAUNCHER_ZOOMfloat (converted from string) - The default zoom factor of the page, 3.0 represents 300% - defaults to
# install dependencies yarn install # serve with hot reload at localhost:9080 yarn run dev # build electron application for production yarn run build # lint all JS/Vue component files in `src/` yarn run lint