Widget: IoTClient

Former Member
Former Member
Please post comments, problems, questions, and feature requests on the IoTClient ConnectIQ Widget in this thread.

https://apps.garmin.com/en-US/apps/da3db127-3938-4dac-bcf1-e30324fd0d20



  • Former Member
    Former Member over 8 years ago
    selice WHISSONSET

    parsing question marks....maybe still an open issue?


    No, the question mark issue is fixed.
    Maybe the valueless parameter causes a problem. Let me check....
  • Former Member
    Former Member over 8 years ago
    Garmin SDK does not offer a proper solution to send GET parameters without values.
    Garmin kind of confirmed that.

    Although, there are workarounds. As long as one uses only one(!) parameter, the workaround will fix that issue.

    I'll roll out a new version of IoTClient. This version will enable one single valueless GET parameter.

    It would be great if you could send me feedback if your system works like expectend after installing v 0.3.5 (are higher)
  • Former Member
    Former Member over 8 years ago
    I have updated to latest version today. All seems to be working :) will keep an eye on it and report back. Tyvm :)
  • Former Member
    Former Member over 8 years ago
    The whole app settings logic is a part made by Garmin.
    As a developer, I do not have any influence on this part of the app/widget.

    What I experienced:

    As long as the widget is newly installed or updated, I can safe app settings using my iOS device.
    As soon as I safed app settings using my desktop version of garmin connect once the connection between iOS and the devices app settings (fenix3 in my case) is permanently broken.

    In other words, if I use garmin connect on my win10 desktop once to write app settings, I can not witch to the smartphone app anymore. (because of the access denied bug)
    I have no idea why!


    I have other apps that require settings as well, no problems there. This one is the only one having these problems. I did notice that if you start the url with a blank there is no problem saving in the settings but the url doesn't work in the widget. Maybe a trim of the url-string in the next version as a workaround?
  • Former Member
    Former Member over 7 years ago
    @Johannes.Smits
    Access Denied problem

    I have found a workaround!
    I took a FQDN instead of the IP adress (http://192.168.1.10/test.html?state=on -> http://mydevice.global/test.html?state=on)
    Now I could save the settings and everything works!!

    On my firewall I add an DNS alias, such as: mydevice.global = 192.168.1.10

    I hope it works with you then synonymous

    Ciao
    Christian
  • Former Member
    Former Member over 7 years ago
    very intersting attempt!

    Thanks for letting us know...

    Please: if anybody else tries this solution, please drop me a line whether id did work or not.
  • Former Member
    Former Member over 7 years ago

    Hi,
    I have es stupid question! I use a raspberry pi with a self-written webserver und webpage. Commands can be sent by the IOTClient without any problems (http://mydevice.global/test.html?state=on).
    But how does the code of the HTML webpage look, so I can see the value on the IOTClient?

    Thank in advance
    Christian

    P.S.: Sorry for my bad english. I am not an native english speaker, so I had to use Google translator
  • Former Member
    Former Member over 7 years ago
    IoTWidget expects a valid JSON response. see http://json-schema.org/
    In your app settings use the field " ...JParam" and add the parameter name of the value you want to display.


  • Hi, I get an error configuring and saving the devices: "...max chars reached" I have a 935 XT and the newest Garmin Express (5.6.0). It doesnt matter how much chars I use for the fields...
  • Former Member
    Former Member over 7 years ago
    @Stenninger
    After the JSON Schema topic was new for me, it was hard work for me to rewrite my selfmade webserver. But it works!!
    Thank you for your tip!

    Ciao
    Christian