Would Garmin devices be able to run Javascript or NodeJS

Hi,

Not sure about which part of the forum I had to post it but if you think about a better category, please let me know.

So I was wondering why Garmin uses MonkeyC, apart from pure choice. I understand it would require to rebuild most of the softwares and firmwares but hypothetically ?

Would the devices be able to run JS or Node ? With some restrictions in the language maybe ? Like MonkeyC has restrictions as well.

Would it be too heavy ? Any other issues ? Pros and cons ?

What are your thoughts ?

(Would be so easy to build apps, data fields or watchfaces)

Cheers

Top Replies

All Replies

  • As for the palette, as I said in my previous post, that page is too heavy and keeps crashing my mobile browser

    Once you get back to a pc/mac, in VSC you can also get it with "View Documentation" because it's included in the SDK, so you don't even need to pull it from the internet.

  • So there is no way to see some sample code without a pc/mac ? Is that a joke ?

    Also, I couldn't find any samples showing how to create watchface settings. Nowhere in the doc either. Do you have any sample about that by any chance ? :)

    It is really discouraging to start anything for a Garmin device. A real nightmare, I feel like they are 20 years behind...

  • The sample I pointed to that does a bunch of stuff allows both app-settings and on device settings

    In VSC, when you do a "New Project" for a watch face, you can pick if you want one with app-settings.

    I pointed to samples here in the forum that are zip files, and you can find others on github, or in the sticky at the top of this forum, in the first post is a link to PeterDeDeckers site with a bunch of sample code.

    https://forums.garmin.com/developer/connect-iq/f/discussion/7961/overview-of-connect-iq-apps-accompanied-with-source-code

  • Yes I saw that page and tested plenty of them (the ones that were not too old to compile).

    I haven't seen any with settings but thanks, I will have a look at yours.

    Regarding the curved text at the top of your example, you wrote "If not scaleable, it uses a standard font with drawText()".

    So the drawText allows curved text or the fallback on the FR255 would be straight ?

  • You need to look at the actual code as well as the API doc for getVectorFont call.  You'll see a 

    "Since: API Level 4.2.1" but also "Supported Devices"

    The fr255 has a good API level, but the device itself isn't supported.  This is VERY common with CIQ and 100+ watches.  Not all devices can support every call.  Another example is you cant get pressure data on a device without a baro altimeter (the va5 for example) while it's available on the va4.

    CIQ isn't something you can fully understand in a few days.  It's complex and involves 100+ very different devices.  That's why there are 10 years worth of posts in the discussion forum.

  • No of course I understood that the FR255 doesn't have vector fonts. I was only wondering if there was another to get curved or rotated font, apart from custom fonts

  • Well, I must have read it recently yes, but when I see that a post is 8 years old (and most replies are 7), then I tend to believe that it is outdated and that there is a better way to do it, especially that my watch was released not that long ago.

    So I will try all that soon, but let's be honest :

    It is absolutely weird and frankly annoying that a device released after 2015 cannot display vector fonts. It is quite basic and printers have been dealing with that for decades.

  • 8-9-10 year old posts can still be VERY valid.  If you see something new, mention it in those threads.  

    Vector Fonts were first available for devices with CIQ 4.  Maybe due to the GPU and additional memory, but probably the addition of the GPU,  Recent devices like the Instinct 2 series are CIQ 3 and will never get CIQ4 or vector fonts. much less CIQ 5 (in beta)

    Devices with CIQ1, CIQ2 and CIQ3 may not ever get another FW Update and haven't gotten one in a long time.

    I think you need to spend some time to learn the whole CIQ environment, the differences between 100 different watch, the difference with different CIQ levels. etc

  • Sure, I will learn more for sure, but I just expected vector fonts to be available on the 255, since it's not old at all.