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.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Official
Comments
URL: http://192.168.0.110:8084/json.htm
Parameters: {"type":"devices","rid":32}
JSONpath: $.[result][0][CounterToday]
Trigger: someName
The debug log:
Guess I missed while testing the GitHub version ... sorry about that ..
@Phuturist Are you able to test v 1.5.1 now available on Git?
Update: In store now!
Thanks @ErikVanDongen , its working again, after update to 1.5.1
Is this a known error/bug?
Is it possible to do this?
I can make POST variants of the existing GET variable (JSONpath) cards. With that you can trigger a flow with the extracted value available as a token, or save the extracted value in a Better Logic variable. Can you share some more info / details about your objective?
The method I'm calling requires a HTTP POST with JSON in the body and some bearer token in the header. The method returns information in the body of the response including the last known lat / lon of my car.
The HTTP POST card first parameter is:
{"method":"post","protocol":"https:","hostname":"eu1-r40-prod.delphiconnect.com","path":"/mobile.svc/users/9999/vehicles/locations","headers":{"Authorization":"WRAP access_token = ****","Content-Type":"application/json"}}
The second parameter is:
{"userId":9999}
I tried using the card "GET variable stap 1" but I don't know where to put what information and how to use the next step (the flow to trigger). Can you help me?
I am starting to learn to use this app and making use of API to trigger actions on devices but I am kind of stuck at the moment. Maybe someone can get me in the right direction
I was able to execute these with the app on my Axis camera:
But I am having trouble executing these on my Axis camera:
http://myserver/axis-cgi/io/virtualinput.cgi?action=1:/
http://myserver/axis-cgi/io/virtualinput.cgi?action=1:\
It looks to me that the problem is in the "/" and "\" characters but I am not sure.
Anybody any clue?
It's probably the / and \ characters. You can try \\ instead of \ .
Another approach is to use the advanced HTTP options. It allows to put the URI between quotes. You can read about that in the readme (app store description).
Example: http://username:passw@rd@ipaddress:port/variables/test?value=true&_method=put
I tried replacing the "@" with %40 which works in a normal browser, but that didn't work in the app.
Any idea how I can get this working?
You could try advanced http options instead of putting a url in the first parameter.
So use a value like:
The value bXl1c2VyOm15cGFzc3dvcmQ= (for example) is the Base64 encoded value for "username:password" (between brackets). You can use https://www.base64encode.org to calcuate this value.
So if you feel like helping a clueless user, please check out my post here: https://forum.athom.com/discussion/comment/43851/#Comment_43851. I'm trying to integrate Google Assistant with Homey. Almost there I think...
On the web hook site i can configure my host like:
But nothing more. Every state change and topology change will be posted (method POST) to that URL webhook": "http://192.168.10.106/api/app/com.internet/Event , as JSON.
How can i now use the http request cards to get some information from this json post request?
Sorry, but your app is really universal and i'm trying now to connect to my Solarlog and read the PV Data.
Maybe you can help me to save the data to a BL variable.
POST Adress is http://192.168.0.25/getjp
RAW POST is {\"801\":{\"170\":null}}.
The Output is:
How can i save the Value for example from "116"? Here "11025"?
Thanks
Viktor
(communication from a Fibaro HC lua scene using HTTP-Request Flow Cards v1.6.2)
Can anyone confirm this?