Skip to content

thisdougb/SinceStopped

Repository files navigation

Since Stopped

View this data field here on the Garmin Connect IQ app store.

Motivation for ultra-cycling, this data field shows the hours:minutes you have been moving since you last stopped. The field resets to 00:00 if you are stationary for 5 minutes.

Info

Garmin Docs

Build my first app

API Device Reference

My Developer ID

https://apps.garmin.com/developer/cc7db9c9-7700-4ee2-a83a-74925bf4aad6/apps

VSCode Setup

Garmin data fields are written in Monkey C, and VSCode is the supported IDE.

SDK

API Reference :https://developer.garmin.com/connect-iq/api-docs/

Get the latest SDK: here

Get the url of the download and use curl (it doesn't download via a browser):

$ curl https://developer.garmin.com/downloads/connect-iq/sdk-manager/connectiq-sdk-manager.dmg --output ./Downloads/connectiq-sdk-manager.dmg

Then open the .dmg and install, and select to set it as the current SDK.

$ ls -1 /Users/dougb/Library/Application\ Support/Garmin/ConnectIQ/Sdks
connectiq-sdk-mac-3.1.8-2020-05-01-5a72d0ab2
connectiq-sdk-mac-3.1.9-2020-06-24-1cc9d3a70
connectiq-sdk-mac-3.2.1-2020-08-20-56ff593b7
connectiq-sdk-mac-3.2.2-2020-08-28-a50584d55
connectiq-sdk-mac-3.2.3-2020-10-13-c14e609bd
connectiq-sdk-mac-4.1.4-2022-06-07-f86da2dee
connectiq-sdk-mac-4.2.4-2023-04-05-5830cc591
connectiq-sdk-mac-8.1.1-2025-03-27-66dae750f

Next go to the Devices tab, and ensure new devices are downloaded.

Also use:

Command + Shift + P , Monkey C: Open SDK Manager

Add Supported Devices

Now add new devices to the app manifest, using the UI:

Command + Shift + P , Monkey C: Edit Products

Run Tests

Command + Shift + P , Monkey C: Run Tests

Run In Simulator

Menu: Run > Run Without Debugging

Side Loading

Side loading the app binary onto device lets you test it.

Command + Shift + P , Monkey C: Build for Device

Then copy the .prg file onto the device /Garmin/Apps.

Build For Submission

Command + Shift + P , Monkey C: Export Project

Build into /Users/dougb/dev/SinceStopped/exports/

(py3.9) dougb $ ls -l exports 
total 520
-rw-r--r--  1 dougb  staff  261838 12 Apr 09:56 SinceStopped.iq

Upload Submission

Developer Dashboard

Uploads the .iq file, and allows (in the UI) to set the app version number.