This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Official

[APP] Simple HTTP Connector For Flows (2.0.0)

1679111214

Comments

  • @fuzzybear: I have put my rule for the Dreambox in http get card, and it works now.
    ie through speech input page, via voice command does not work.
    Does it work with you.
    @Erik:I now understand that we need not use the http get json?
    but we just use http get
    that whole json I have not eaten cheese, am not a programmer.
    you app works well.
    Thanks

  • @HarmStellinga I have worked out the format for the http get card using the explanation from Erik in the app description. Couldnt make any sense (cheese) when googling json validator.

    I now use the following in the http get card:

    First block = http://dreamboxip/web/powerstate        Second block = {"newstate":5}

    This works with no errors :smile: 

    With regard to speech input as with yourself this works if i enter the text in the speech-input but when using my voice homey does not understand the word dreambox and tries to make a lot of different terms to interpret this word. I think I will try a more common term to use the voice control. This is also quite revealing with regards to the voice control as it would appear that common terms are used to interpret what is being spoken. This is not very useful when using unusual names or words as it will not work.

  • @fuzzybear ;it works here now, have only login name and ww added.
    so you do not have a password for the web interface of your satreceiver ?
    I now use "cinema on" that HOMEY well understood. also an ingrained cmd.
    Now needs infrared a better working, and i can switch tv and dreambox with my voice, it works now, but not always.
    And now the question, what is the adventage off using json above normal http get ??
    Because both are working here.

  • @HarmStellinga You just discovered something nice :smile:  
    Probably something changed in the Homey firmware. A few weeks ago it was not possible to successfully use an '?' in the url parameter of the HTTP Get card. That's why the HTTP Get JSON card was introduced.
    I just tested it and you're right: queryparameters are now allowed in the url parameter.
    Because of this I will remove / deprecate the HTTP Get JSON card and change other cards where there is no need for the 'queryparameters'-parameter in a next release.  

  • Okay fine, I'll use http get then and remove http get json flow.
    In homewizard they also use http get en some other.

  • just FYI - but after updating homey to 0.8.34 the auth. setting reset to needed 
  • just FYI - but after updating homey to 0.8.34 the auth. setting reset to needed 
    Thanks. I allready noticed something is broken with 0.8.34 (github issue). For the HTTP App its just cosmetic. The setting *is* saved, but the settings screen keeps showing 'Busy saving settings on Homey'.
  • @ErikVanDongen Is there a way to save the value of a GET variable step 1 card directly into a variable of the Athom logic app or Better Logic app?

    I'm using this to retrieve the current, high and temperature and conditions from Weather Underground. Although I can fire all 4 GET requests (which are actually the same) I need to have seperate flows for capturing the variables as the IF column can only hold one card. Would be easier if I could just save it straight into a variable (although I can image such dependancies between apps are unwanted).
  • Phuturist said:
    @ErikVanDongen Is there a way to save the value of a GET variable step 1 card directly into a variable of the Athom logic app or Better Logic app?

    I'm using this to retrieve the current, high and temperature and conditions from Weather Underground. Although I can fire all 4 GET requests (which are actually the same) I need to have seperate flows for capturing the variables as the IF column can only hold one card. Would be easier if I could just save it straight into a variable (although I can image such dependancies between apps are unwanted).
    I totally get your requirements and will investigate integration with standard variables (less likely) and Better Logic (seems possible) for version 1.3.
  • Hi. Maybe a stupid question, but can I do something like this (click) with the HTTP-app? So a post-command with a url, header and body..

    This is why I'm asking.. ;)

    Thanx
  • keverjeroen said:
    Hi. Maybe a stupid question, but can I do something like this (click) with the HTTP-app? So a post-command with a url, header and body..

    This is why I'm asking.. ;)

    Thanx
    Nope, this will not work. With the 'geek' options it's possible to send all the required headers, but sending the xml-body in a decent way is not possible with the current version of the app. It will require a new action card for sending a 'raw' or xml body with a request.
  • Thanx for the info Erik! Any plans to create such a action card in the future?  :#
  • i'am traying to trigger a flow 
    i have a flow with get request "test" when i go to
    "http://192.168.86.120/api/app/com.internet/test"
    i'am getting error:
    {"status":401,"result":"no_auth_method_found"}

  • ErikVanDongenErikVanDongen Member
    edited July 2016
    TarikFaik said:
    i'am traying to trigger a flow 
    i have a flow with get request "test" when i go to
    "http://192.168.86.120/api/app/com.internet/test"
    i'am getting error:
    {"status":401,"result":"no_auth_method_found"}

    Please read the description in the app store:

    Authorization on API calls
    API calls requires header Authorization with value Bearer <token>, where is your secret token (get it by typing window.bearer_token in the chrome console while logged in on your Homey). This can be disabled in the settings screen of this app.

  • Hey guys. I just put version 1.3 on git. It has a new card for setting a Better Logic string variable with a value received from a json/xml request. Several of you asked for something like this. If you want to set multiple variables, you have to duplicate the action cards. Is anyone available for testing?


  • Hey guys. I just put version 1.3 on git. It has a new card for setting a Better Logic string variable with a value received from a json/xml request. Several of you asked for something like this. If you want to set multiple variables, you have to duplicate the action cards. Is anyone available for testing?


    Awesome, I'm gonna check it out. Thanx Erik.
  • @Phuturist ;
    Thanks. Suggestions / improvements / bug reports (you won't find them ;)) are welcome.
  • @Phuturist ;
    Thanks. Suggestions / improvements / bug reports (you won't find them ;)) are welcome.
    I've found a bug ... the version number still says 1.3.0 ... :wink: 

    Other then that it seems to work great. This reduces the number of flows I have considerably ... :+1: 

    I'll let you know if I bump into anything else. One suggestion I can make is to add a PayPal button to your read.me so I can thank you for your efforts ...
  • ErikVanDongen said:
    TarikFaik said:
    i'am traying to trigger a flow 
    i have a flow with get request "test" when i go to
    "http://192.168.86.120/api/app/com.internet/test"
    i'am getting error:
    {"status":401,"result":"no_auth_method_found"}

    Please read the description in the app store:

    Authorization on API calls
    API calls requires header Authorization with value Bearer <token>, where is your secret token (get it by typing window.bearer_token in the chrome console while logged in on your Homey). This can be disabled in the settings screen of this app.

    @ErikVanDongen ;
    But i have "Authorization on API calls" disabled
  • TarikFaik said:
    ErikVanDongen said:
    TarikFaik said:
    i'am traying to trigger a flow 
    i have a flow with get request "test" when i go to
    "http://192.168.86.120/api/app/com.internet/test"
    i'am getting error:
    {"status":401,"result":"no_auth_method_found"}

    Please read the description in the app store:

    Authorization on API calls
    API calls requires header Authorization with value Bearer <token>, where is your secret token (get it by typing window.bearer_token in the chrome console while logged in on your Homey). This can be disabled in the settings screen of this app.

    @ErikVanDongen ;
    But i have "Authorization on API calls" disabled
    And restarted the app or homey after changing the setting?
  • Phuturist said:
    @Phuturist ;
    Thanks. Suggestions / improvements / bug reports (you won't find them ;)) are welcome.
    I've found a bug ... the version number still says 1.3.0 ... :wink: 

    Other then that it seems to work great. This reduces the number of flows I have considerably ... :+1: 

    I'll let you know if I bump into anything else. One suggestion I can make is to add a PayPal button to your read.me so I can thank you for your efforts ...
    Well app store approval was very quick this time. I decided to release version 1.3.0. 
    It has a paypal.me link in the readme file.
  • Phuturist said:
    @Phuturist ;
    Thanks. Suggestions / improvements / bug reports (you won't find them ;)) are welcome.
    I've found a bug ... the version number still says 1.3.0 ... :wink: 

    Other then that it seems to work great. This reduces the number of flows I have considerably ... :+1: 

    I'll let you know if I bump into anything else. One suggestion I can make is to add a PayPal button to your read.me so I can thank you for your efforts ...
    Well app store approval was very quick this time. I decided to release version 1.3.0. 
    It has a paypal.me link in the readme file.
    Right, I was looking for a big PayPal button and missed the link. It is however not working from the app store (seems it was added as a relative link). I figured out the correct link though and some appreciation is coming your way.
  • Phuturist said:
    Phuturist said:
    @Phuturist ;
    Thanks. Suggestions / improvements / bug reports (you won't find them ;)) are welcome.
    I've found a bug ... the version number still says 1.3.0 ... :wink: 

    Other then that it seems to work great. This reduces the number of flows I have considerably ... :+1: 

    I'll let you know if I bump into anything else. One suggestion I can make is to add a PayPal button to your read.me so I can thank you for your efforts ...
    Well app store approval was very quick this time. I decided to release version 1.3.0. 
    It has a paypal.me link in the readme file.
    Right, I was looking for a big PayPal button and missed the link. It is however not working from the app store (seems it was added as a relative link). I figured out the correct link though and some appreciation is coming your way.
    Thanks man :blush:! You're a great tester  .
  • Hey guys. I just put version 1.3 on git. It has a new card for setting a Better Logic string variable with a value received from a json/xml request. Several of you asked for something like this. If you want to set multiple variables, you have to duplicate the action cards. Is anyone available for testing?


    THNX again.

    So a made a flow to trigger a massive (7...) strings from Weather Underground.
    It works!!! 
    BUT,
    now I have the "Uitdaging" that i have a lot of Variables. 
    Is there a way to sort them? I know I can search, but i like clean layouts.
    A bit like the athom team did with the flows. 

    Maybe the wrong location to post the question, but the post above is the lead-in of my .. problem (uitdaging).

  • DieterKoblenzDieterKoblenz Member
    edited July 2016

  • @ThijsDeJong its not posible to change homey's ux behaviour with apps. So I cannot help you with this unfortunantly.

  • @ThijsDeJong its not posible to change homey's ux behaviour with apps. So I cannot help you with this unfortunantly.

    @ErikVanDongen ;
    THNX. It's a pitty, Maybe @Emile will notice this and pick it up in a (the next???) Update.



  • @ThijsDeJong its not posible to change homey's ux behaviour with apps. So I cannot help you with this unfortunantly.

    @ErikVanDongen ;
    THNX. It's a pitty, Maybe @Emile will notice this and pick it up in a (the next???) Update.



    You can help Emile by opening a topic in the 'suggestions' section with a more detailed request / proposal.
  • Is it possible to do a POST with the following body: {"notification":{"powerstate":{"powerstate":""}}} and putting the result {"powerstate": {"powerstate": "Standby"}} in a Better Logic variable?

    I tried figuring out the Node HTTP options but do not seem to get it working.
  • mauriceb said:
    Is it possible to do a POST with the following body: {"notification":{"powerstate":{"powerstate":""}}} and putting the result {"powerstate": {"powerstate": "Standby"}} in a Better Logic variable?

    I tried figuring out the Node HTTP options but do not seem to get it working.
    I just put version 1.3.2 on github with an improvement / bugfix that makes your request possible.

    Example:
    first parameter: {"uri":"http://httpbin.org/post", "method": "post", "protocol": "http:", "json": {"notification":{"powerstate":{"powerstate":5}}}}
    second parameter: $[json][notification][powerstate][powerstate]
    third parameter: a Better Logic variable

    Result for this example:
    5

    Are you able to test this version before I submit it to the app store?
Sign In or Register to comment.