Code Monkey home page Code Monkey logo

garmin-connect-iq's Introduction

GARMIN CONNECT IQ

My Garmin Connect IQ Project in one single repository

Download apps

Download my apps from Connect IQ Store using Garmin Express.

Build apps on your own

Follow Programmer's Guide to setup your Windows or Mac.

  • Download Garmin Connect IQ SDK Manager

  • Use the SDK manager to download the latest Connect IQ SDK and devices

  • Once the download completes, click Yes when prompted to use the new SDK version as your active SDK

  • Close the SDK Manager

  • Install Visual Studio Code Monkey C Extension

  • In VS Code, click Ctrl + Shift + P (Command + Shift + P on Mac) and select "Monkey C: Verify Installation"

Upload apps on Connect IQ Store

https://apps.garmin.com/en-US/developer/dashboard

Batch compiling via command line

Check MONKEYC path in compile-batch.sh file, then launch ./compile-batch.sh

Command line guide

# Launch the simulator:
connectiq

# Compile the executable:
monkeyc -d fenix6pro \
    -f KeepCalmAndTriathlon/monkey.jungle \
    -o KeepCalmAndTriathlon.prg \
    -y $HOME/Downloads/developer_key.der

# Run in the simulator
monkeydo KeepCalmAndTriathlon.prg fenix6pro

# Compile for Publishing
monkeyc -e \
    -o KeepCalmAndTriathlon.iq \
    -w -f KeepCalmAndTriathlon/monkey.jungle \
    -y $HOME/Downloads/developer_key.der

Cleanup

  • Remove Garmin ConnectIQ directory, usually in ~/Library/Application Support/Garmin/ConnectIQ

  • Delete Visual Studio Code Monkey C Extension

garmin-connect-iq's People

Contributors

dennybiasiolli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

garmin-connect-iq's Issues

12 Hour Support

Watch faces do not honor 12 Hour setting from watch; they always show digital time as 24 hour.

Being a Software Developer, I got curious and looked at the source code, and I believe that adding 12 Hour support could be done similar to the following. I do not have the setup to test, but this is at least a start. Hope this is helpful.

var is24Hour = true;
function initialize() { //to replace your existing initialize() function
	//Get 24 Setting from watch
	var settings = Sys.getDeviceSettings();
	is24Hour = settings.is24Hour;		
	WatchFace.initialize();
}

function drawDigitalTime(dc, text_color, clockTime)
{ //to replace your existing drawDigitalTime function
	var hour = clockTime.hour;
	var ampm = "";
	if (!is24Hour) 
	{		
                //handle midnight and noon, which return as 0
		hour = clockTime.hour % 12 == 0 ? 12 : clockTime.hour % 12 ;
		ampm = clockTime.hour >= 12 && clockTime.hour < 24 ? " PM" : " AM";
	}
	//var timeString = Lang.format("$1$:$2$:$3$", [clockTime.hour.format("%2d"), clockTime.min.format("%2d"), clockTime.sec.format("%2d")]);	
	var timeString = Lang.format("$1$:$2$$3$", [hour.format("%02d"), clockTime.min.format("%02d"), ampm]);
	dc.setColor(text_color, Gfx.COLOR_TRANSPARENT);
	dc.drawText(width_screen/2, (height_screen/32)*24, Gfx.FONT_NUMBER_HOT, timeString, Gfx.TEXT_JUSTIFY_CENTER + Gfx.TEXT_JUSTIFY_VCENTER);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.