Garmin : Forerunner 645

Pour recevoir des notifications, activer « Notifcations accès » sous Android à l’application Garmin IC Connect.

Pour un arrêt de la montre passer par le menu si elle est bloquée maintenir 15s le bouton light. Pour la rallumer, appuyer sur le bouton light.

Nous avons installé l’environnement sur un PC sous Windows 10 en mode administrateur.

A) Installation du SDK :

Suivre les instructions : https://developer.garmin.com/connect-iq/connect-iq-basics/getting-started/

Pour installer adb : set PATH=%PATH%;%LOCALAPPDATA%\Android\sdk\platform-tools (%LOCALAPPDATA% doit être remplacé par C:\Users\<nom_utilisateur>\AppData\local si on est en mode administrateur).

Car déjà installé avec android studio

B) Utilisation :

Sous Visual studio en mode administrateur

  1. Monkey.c commandes : https://developer.garmin.com/connect-iq/reference-guides/visual-studio-code-extension/
  2. Présentation du langage Monkey.c : https://developer.garmin.com/connect-iq/monkey-c/
  3. Références Monkey.c : https://developer.garmin.com/connect-iq/reference-guides/monkey-c-reference/#monkeyclanguagereference

Pour afficher une info dans la console :   System.println(« toto »);

TUTORIALS :

https://developer.garmin.com/connect-iq/connect-iq-basics/your-first-app/

https://dev.to/jenhsuan/day-55-of-100daysofcode-learn-monkey-c-garmin-connect-iq-retrieve-common-data-d5o

https://developer.here.com/blog/build-your-own-sightseeing-app-with-garmin-connect-iq-and-the-here-location-apis

https://forums.garmin.com/developer/connect-iq/f/discussion/251161/tutorials-for-creating-an-watch-app

Importing an Example

To try one of the Connect IQ sample apps load it into Visual Studio Code:

  1. Click the File menu
  2. Select Open Folder…
  3. Browse in the downloaded SDK samples folder and select the root directory of the sample to import: Les exemples du SDK sont ici : C:\Users\xxxx\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.0.7-2021-11-29-437ff4cc4\samples

Running the Program

Before running the program, make sure you have one of your source files (In the source folder with the .mc extension) open and selected in the editor.

  1. Select Run > Run Without Debugging (Command + F5 on Mac, Ctrl + F5 on other platforms)
  2. You will be prompted with the list of products your application supports. Select one from the list.

If all goes well the simulator will start up

Télécharger un cadran sur la montre :

The Monkey C extension provides a wizard to help developers side load an application. The wizard will create an executable (PRG) of the selected project. Here’s how to use it:

  1. Plug your device into your computer
  2. Use Ctrl + Shift + P (Command + Shift + P on the Mac) to summon the command palette
  3. In the command palette type “Build for Device” and select Monkey C: Build for Device
  4. Select the product you wish to build for. If you are unable to choose a device for which to build (the menu appears empty), it means that there are no valid devices configured for your project. See Editing the Supported Products for instructions.
  5. Choose a directory for the output and click Select Folder
  6. In your file manager, go to the directory selected in step 4
  7. Copy the generated PRG files to your device’s, volume « Primary » répertoire : GARMIN/APPS directory
Articles récents
Commentaires récents
fatima dans Bienvenue !
AdminDroid dans Bienvenue !
fatima dans Bienvenue !
Archives
Catégories