Follow this getting started guide to get your device connected to resin.io
- make sure you have node and git install
- make sure you have ssh client set-up.
- add you id_rsa.pub key to [email protected] account
- set up a git user by Running
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
$ git clone https://github.com/resin-io-projects/resin-demonstrator
$ cd resin-demonstrator
$ npm install
Make sure you have these environment variables in a file named env.json
in /resin-demonstrator
{
"REMOTE": "resin app endpoint",
"SDK_EMAIL": "resin app email",
"SDK_PW": "resin pw",
"APP_NAME": "resin app name",
"LOGO": "Branding"
"PICTURE_DEMO": Boolean (If you are using picture demo or app selection)
"APPS": "array of repositories",
"IMAGES": "array of images (must have png and raw file in /images folder)",
"HEADING": For configuring certain strings in the app
}
Add new images to src/images
folder. They must be in .png format, with dimensions (WxH) 300x400.
Make sure you have FFmpeg installed and run the following:
$ cd src/images
$ ./png2fb.sh new-image.png
This will create a .raw image in the src/images
folder.
Append the new files to the IMAGES
array in the env.json file:
"IMAGES": [
"...",
"new-image"
],
...
Finally, commit and push your changes with:
$ git commit -am 'Added new images'
$ git push origin master
node start
Note: currently if you change the REMOTE
after running node start
you'll need to delete the applications repositories rerun the start command.
**Windows users**
git checkout no-tty
more info coming soon