This repository is designed to streamline the creation of a new application deployable to the Amiga brain.
NOTE: This assumes you already have Python3 installed
Please note, to properly utilize this template, please install the Python cookiecutter package from PyPi.
Linux / WSL:
python3 -m pip install --user cookiecutter
Mac:
brew install cookiecutter
Click on green Use this template button (top right) to create a new repository based on this repo
Fill in the details, example below:
- Owner: username
- Repository Name: hello-amiga (names should be between 4-17 characters)
- Set to Public
Once completed, click [Create repository from template]
When the repository creation process has completed, clone the repo to your local workspace
Your now ready to create your first Kivy app, please choose a name between 4 and 17 characters run the create app.sh script
./create_app.sh
- Enter your full name
- press enter
- enter your chosen app name as well.
- Press enter again
- Press enter once more to accept the formatted package name
- Or rename the package as you desire
Your kivy application has been created under the apps directory
ls apps/
Before any changes, lets see if we can run this app locally on your system.
apps/<your app name>/entry.sh
When running the above script, a virtual environment will be created under the directory and any dependencies will be installed.
If all goes well, you'll see an empty kivy application on your screen.
Configure your .ssh/config
Host amiga
HostName <intranet ip address>
Port 22
User amiga
StrictHostKeyChecking no
<intranet ip address>
can be found on the bottom right of the Amiga Brain screen.
Copy your SSH key to the Amiga
- If you do not have a key created
ssh-keygen
ssh-copy-id amiga
TODO
To publish an app to the Amiga, run the sync.sh script located in the app's folder.
apps/*<your app name>*/sync.sh -s start
To see your app on the Amiga screen, cause a refresh by tapping the settings screen then pressing the home button on the top right.
Click the app and wait for it to install and run.