Skip to content

Garmin Tools - Connect IQ SDK and Eclipse IDE plugins as a Docker container

License

Notifications You must be signed in to change notification settings

kalemena/docker-connectiq

Repository files navigation

docker-connectiq

GitHub Build
Docker Hub
Docker Hub
Docker Hub

Installation of Garmin Tools Connect IQ SDK and Eclipse IDE plugins as a Docker container.

Docker image is available through docker hub as kalemena/connectiq

Usage

Docker Image pull / build / run

$ make pull
or
$ make build
or
$ make console
💡

Command lines make console, or make eclipse will map folders:

  • CIQ_WORKSPACE=./eclipse-workspace

  • CIQ_BINARIES=./.Garmin

  • EXAMPLES_FOLDER=./examples

For persistence reasons, files created in eclipse or console should be done in these folders.

Connect IQ certificate

Certificate is generated automatically if it does not exists under home folder ${CIQ_WORKSPACE}/developer_key.pem.
This logic is part of ./run.sh.

Building app in Console

$ make console
$$ cd ${CIQ_HOME}/samples/Drawable/
$$ monkeyc -d vivoactive3 -f ./monkey.jungle -o drawable.prg -y ~/eclipse-workspace/developer_key.der
$$ connectiq &
$$ monkeydo drawable.prg vivoactive3
Result of above commands

Sample app Drawable

Preparing Eclipse IDE

$ make eclipse
Menu Connect IQ ⇒ Open SDK Manager ⇒ Login to Garmin Connect IQ to allow downloads of device(s)

eclipse connectiq sdk manager Login

Menu Connect IQ ⇒ Open SDK Manager ⇒ Download your SDK version(s)

eclipse connectiq sdk manager SDK

Menu Connect IQ ⇒ Open SDK Manager ⇒ Download your prefered Device(s)

eclipse connectiq sdk manager Devices

Building app in Eclipse IDE

$ make eclipse
Menu File ⇒ Import ⇒ Existing Projects into Workspace

eclipse import project

Imported Project

eclipse Drawable project

Launch Configuration

eclipse launch config

Result of above commands

Sample app Drawable

Authoring app in Eclipse IDE

$ make eclipse
  • In Eclipse, Menu File ⇒ New ⇒ Project ⇒ Connect IQ Project

  • Make sure to create project under /workspace/…​ hierarchy

  • Then select Widget and Next

  • Then for example, Vivoactive 3 as target

  • Then for example, Sensor or Sensor History as features

  • Once project is loaded, you can run like previous example to see the monkey default app display

Upload to Watch

  • On Ubuntu OS

  • Connect the watch using original cable

  • Wait for about 30s

  • Watch screen should show it is mounted and charging

  • In File explorer, see GARMIN device and browse to GARMIN/APPS

  • Copy PRG file built into this folder

  • Unmount GARMIN icon on watch

  • Watch should be showing Verifying Connect IQ Apps

  • Swipe up or down, the app should be visible

Integrations

About

Garmin Tools - Connect IQ SDK and Eclipse IDE plugins as a Docker container

Resources

License

Stars

Watchers

Forks

Packages

No packages published