resin-io/resin-electronjs

Name: resin-electronjs

Owner: Resin.io

Description: electronJS-based resin application template

Created: 2016-01-13 18:24:04.0

Updated: 2018-01-11 08:10:26.0

Pushed: 2017-12-14 13:19:46.0

Homepage: http://resin.io

Size: 1727

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

resin-electronjs

a boilerplate for developing kiosks, digital signage or other human-machine interaction projects based on ElectronJS and resin.io

Warning regarding armv6

This project does not currently support the armv6 architecture (ie Raspberry Pi 0 and 1) due to electron limitations. If the issue is fixed on the electron side, we will include it in this project. More on this here

Getting started
Configure via environment variables

Variable Name | Value | Description | Device-specific ———— | ————- | ————- | ————- RESIN_HOST_CONFIG_gpu_mem | a value from 64 to 160 | 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 devices like the raspberrypi is hard. This project aims to provide a quickstart template.

URL LAUNCHER config via ENV VARS

!!! Please note that since 0.1.0 the bool-based env vars dropped true / false strings in favour of 0 / 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 0 or 1 values.

Related

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.