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
    Cannot save

    Hello

    I try to safe the following line into die Desktop App of your IoT Widget. On the watch there is still the known bug that after a "&" sign the line is cut ?

    http://192.168.2.54:8084/json.htm?type=command&param=switchlight&idx=17&switchcmd=On

    unfortunately I need all the parameters to switch my Hue Lamp on or off.

    If I want to do it in the Settings Menu under "Device 1 Action 1 URL" after Save there comes the line (translated German->English)

    "Changes cannot be permitted. IoT Client Widget have a maximum count of signs in the settings. Means your setting line is too short."
    How many characters are allowed ? Can you please make more characters to be allowed in the settings lines ?

    I cannot do anything with your App yet. Thank you
  • Former Member
    Former Member over 8 years ago
    ...tested

    Hi,

    I tested your URL
    http://192.168.2.54:8084/json.htm?type=command&param=switchlight&idx=17&switchcmd=On

    successfully using my iOS Garmin Connect App.

    At the first save, the full URL including all parameters is written to the watch and it is working like expected!
    But be careful: If you re-read the settings from you watch the app will cut the parameters at the first "&". Thats a Garmin bug! If you now rewrite the wrongly displayed URLs, the will be messed up in your watch!
  • Conditional Action name

    I have been experimenting with this nice widget, and for most part it is working perfectly.
    However, it would be even better if it would be possible to have the Action name conditional.

    Let me explain myself:

    Let's say I would like to use this widget to turn on/off a lightbulb.
    I now have action 1 where i fetch the current status of the lightbulb when pressing the button.
    if the bulb is off (I can see this in the result of action 1), I press start again, and the light is switched on
    if the bulb is on, I need to press start twice to cycle to action 3 to turn it off, then press start again to switch it off.

    It would be nice if action 2 could for example present a action name linked to the status of action 1, and then perform the action when pressing the button.
    That way, I don't have to cycle through the possible actions until I find the correct one to perform.


    like:
    Action 1 -> press button (light is on).
    Action 2 -> Light is on, press to switch off.

    Action 1 -> press button (light is off)
    Action 2 -> Light is off, press to switch on.

    Does this make sense ?
  • Former Member
    Former Member over 8 years ago
    yes, of course, it makes sense!

    But how should one configure such a behaviour?
    Therefor one would need some kind of an own description language.

    I'm afraid, this is way to tricky to configure.
  • yes, of course, it makes sense!

    But how should one configure such a behaviour?
    Therefor one would need some kind of an own description language.

    I'm afraid, this is way to tricky to configure.



    Could perhaps be done by passing the return parameter from action 1 to some sort of 'replace' variable in the name of action 2
    Just an idea though.
  • in just tested url integrated basic auth (fenix3=>apache webserver) and it did work in my case!
    So I will not add any code for this feature.

    Please, as Garmin devices do not update apps without a reboot - every time you update an app or widget using your smartphone app, make sure you reboot your watch and run app-tests afterwards!


    Hi,
    Same problem as djib78.
    It doesn't work with login:[email protected]/api/....
    I have tried directly with a browser and it works, but with the widget : error 401.

    I try to call api of a Fibaro HomeCenter 2.
    If you have the solution, I take ;o)

    EDIT

    Finally I haved coded a wrapper on another machine with apache, it works.

    But I have another question, I use a Forerunner230, and when I do a long click on UP button to change device, it change device but also show the option screen (musical commands). So I have to click on back button to return to the widget. Is that possible to disable it ? Perhaps in the options of the forerunner but I didn't find it. Perhaps directly in the widget ?

    Great Job !!! Thanks a lot

    Rodolphe
  • Former Member
    Former Member over 8 years ago
    sorry for the late reply!

    currently there is a bug in the Garmin SDK which affects the outbound requests.
    Garmin is about to fix this problem.

    As soon as it is fixed I'll work on your problem!
  • Former Member
    Former Member over 8 years ago
    step by step guide on how to control myQ Liftmaster app (garage)

    Has anyone found out how to get a liftmaster / chamberlain MYQ system to work with this app ?


    Has anyone posted a step by step guide on how to leverage this widget to open a Liftmaster garage that uses myQ system?
  • Former Member
    Former Member over 8 years ago
    How to configure garage door to open?

    I just posted this but accidentally posted it within an older post. I'm just wondering if anyone has figured out the URL and the JParam for opening/closing a Liftmaster garage? Currently I use the myQ app on my iPhone but would like to be able to open with my watch so that I don't have to carry my phone with me on runs.
  • Former Member
    Former Member over 8 years ago
    HTTP POST Support?

    I use https://my.isy.io/index.htm for my Insteon ISY-99 and it requires POST as the HTTP Verb. It seems like some others need PUT. The app looks great so I would love to see those added. I suspect going forward most IoT devices that are trying to follow REST will use PUT or POST vs GET as GET should by idempotent thus not have side effects.