I’m building a flow using the HTTP Request app.
What I want to achieve is doing a HTTP GET and build a condition flow based on the HTTP status codes (like 200 or 404).
First hurdle:
I’m using the HTTP Request app and I’m using the card “HTTP request flow cards” GET
In the “Text” field I have:
“http://www.(myTag).com” (my tag is, let’s say “Google”)
When testing this, I’m getting: “Missing Tag in flow card”
I’m using a string variable in Better Logic for the tag, which has the value of “Google”.
I have also tried just the whole URL: http://www.google.com
But same error.
If I can get this to work, I would like to use a condition, based on the HTTP status code to determine the next step.
Does anyone have a sample HTTP Request flow with something similar I can look at?
I’ve search this forum and I did find a number of examples, the majority were POST and interacting with JSON.
Can u post the flow here?
Now we have to guess that ur using something like www.(tag is called google) .com.
Showing a pic of the flow tells us so much more then a 1000 words.
You should be able to read the JSON with the built in http logic card (AND card). Then extract the field from the Json with the Json logic card.
But you need AdvancedFlow to use the Json card because you have to combine another card to work with the result value.
In http flow cards app this is missing, too - like anywhere else in JS environment.
You would need a npm module to convert XML to JSON. This would be be something nice for:
But for XML it’s difficult to decide is a single element is an element or one line of an array (without the XSD definition). In that case you will get different outputs for a one line array and a two line array… but I digress
My solar inverter does XML (steca) but have scripts parsing and a webhook to Homey. The http flow app isnt sdk3 so yeah. Homey internal http is json only.
So my worry is that this app wont be supported on the new Homey Pro. Is there an alternative app that has the same features? If not: is there a developer who is willing to take over this app and make it SDK3 proof?