[APP][Pro] HTTP request flow cards - HTTP request triggers, conditions and actions for flows

Can this http connector get a value from a php or textfile?
Would like to get the 5th value from this file http://www.sundshult.se/clientraw.txt
Then use that as a device in Homey

The app can parse json and xml files only.

Dear Erik,

Something broke after 2.0.10 update yesterday. Flows have been working flawlessly for half a year, but not since yesterday.

I use GET JSON path better logic cards in different flows (example screenshot below). When testing the flow it executes with a green check mark, but the Better logic variable never updates. Any ideas what could be wrong?

The behaviour is exactly the same with other flows, but with different URL:s / API:s.

Any help is appreciated!

1 Like

But looks more like a dot too many?
In .datum it says ā€¦datum.

Found my mistake with v .10. Will fix it right away and submit it to the app store.

V 2.0.11 submitted to the appstore.

The external access url is changed with Homey V2:
https://homeycloudid.connect.athom.com/api/app/com.internet/event/trigger

(connect instead of homey)

2 Likes

Is there any way to detect if a http request failed?
Say if I poll an api and that URL is offline, then log or execute something else?
Iā€™m using a json card and it works great but the server Iā€™m getting my data from has been down for maintenance often so I would like to be able to know if that happens within a flow.

Found the solution in the conditions card for HTTP app! Thanks!

Thanks for the quick response Erik. Will try it out as soon as update is live.

Itā€™s live now!

Hello,

Iā€™m trying to send flow actions to my EventGhost service running on a PC in the same local network using http.
I got the Eventghost webserver up and running and it happily logs events if I open up a browser from another client on the same network and just type in ā€œhttp://192.168.0.10/?helloā€
Using your app I tried setting up the A20 GET request to do the same but I get no reaction on the target side, after a while the flow card shows a red warning triangle with the number 1.
Any idea what I am missing?

Homey runs ver 2.1.2 and your app is running 2.0.11

Cheers!

EDIT: Answering my own question.
I forgot that I had a stricter than usual firewall rule on my router dropping all unspecified traffic between my wireless network and the wired one housing the server i tried to connect to.
Welp, that was embarrasing. All works fine now. :wink:
Thanks for a great app!

V 2.0.11 confirmed working. Thanks alot!

Hello! Iā€™m using this app for several things and itā€™s awesome! So thanks a lot for making that possible!

Iā€™m wondering, is there a way to use this app to start my pc (WOL) by an http request?
I know there is a special WOL app for this, but I like to keep my homey clean. So, as less apps installed as possible, but without missing featuresā€¦

BTW, there is no link to this thread on the homey appstore.

WOL works on a lower level than HTTP, so you wonā€™t be able to make it work using an HTTP request.

1 Like

Exactly. WOL wonā€™t be part of the HTTP app.

1 Like

Iā€™am starting with the HTTP Connecter.
I want to sent a request to Homey.
Whet I test the flow in Homey it works, but when I post my url in my browser I get a error:
{ā€œcodeā€:401,ā€œerrorā€:ā€œnot_logged_inā€,ā€œerror_descriptionā€:ā€œYou need to log in to access this resourceā€}

My HTTP get: https://cloudidā€¦connect.athom.com/api/app/com.internet/home

What am I doing wrong?

Have you enabled/disabled authorization in the app settings screen?

How to make flow in order to pass authorization (Content-Type = multipart / form-data). I am trying to get authorization by API https://www.saures.ru/upload/iblock/efd/SAURES-API-polzovatelskoe-v.3.12.pdf ?

Maybe I can not write off correctly from https://github.com/irritanterik/homey-http-request-actions#advanced-http-options

I want to get these values, shown in the picture

Itā€™ll be quite a difficult process, because you first need to log in, extract the sid value, put that in a variable, and then use different flows that use the sid and make other requests. Perhaps itā€™s easier to implement using HomeyScript (but you need to know how to program JavaScript for that).