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
Well, for my (Denon) receiver the only way to get feedback from the receiver is to read/parse the xml (to get information regarding power, volume, listening mode, etc). I can't think of other use cases right now, but I think in general there're way more devices/web services that can only provide xml responses.
Does anyone know if it is possible to do a GET request(to external API) with a Basic Auth in the header. If it is possible, could you explain how to?
Did try some stuf but can't get it to work
Thanx in advance
Example:
{"method":"put","protocol":"https:","hostname":"httpbin.org","path":"/put","headers":{"User-Agent":"Node.js http.min"}}
Tell me if i can help in anyway. Great app btw, sad you have to manny different types of HTTP request to take into account, makes your job harder.
So the geek card wil depricate soon.
I cant get it working.
If some one can help me
What did I do:
Create a flow:
If (card) Get request: test1 then say test1
Then pushed ctrl+shift+j
Got a token "e6d99****************************e"
(have no clue when I need the token but I have got it)
Then went to:
http://192.168.8.15/api/app/com.internet/test1
Got this error:
In this version its possible to put json formatted http options in every card instead of a url.
It also support XML parsing in the 'Get variable step 1' card! (XML results are converted to JSON).
Oh.. and also added realtime logging. So when using my logger page you get a lot of debug information.
With version 1.1.0 you can disable authentication on the HTTP app API.
http://homeremote.bouncingball.mobi/
I Like the new Geeky in Version 1.2 !!! Thanks!!
a Request to Self ( ::1 ): Turn LedRing Screensaver off:
HTTP Put JSON:
URL>> {"method":"put","protocol":"http:","host":"::1","path":"/api/manager/ledring/settings/","headers":{"Authorization":"Bearer Deaf001000bad1000effe000hace000215c001","Content-Type":"application/json"}}
Option>> {"uri":"homey:manager:ledring","name":"off","options":{}}
or the other options:
Option>> {"uri":"homey:manager:ledring","name":"off","options":{}}
Option>> {"uri":"homey:manager:ledring","name":"rainbow","options":{}}
of course
Got another suggestion, only if you got some spare time and you think it is a good suggestion .
If I need two parts out of the JSON response, I have to do the http request twice with two different JSONpaths. Maybe select the JSONpath in the Step 2 trigger card instead of the in step 1 one card. So I have to do request only once and use multiple times the step 2 card.
I understand what you proposes, but I won't implement it. I expect most API's to have a Homey App eventually. Also, testing of flow parameters syntax will be hard for a user if the actual request and JSONpath are executed on the trigger-side.
Hope you understand my point in this.
There is an API for: http://dream.reichholf.net/wiki/Enigma2:WebInterface.
What I can now: receiver on and off via:
Did some tried to turn it into a flow, failed.
Thanks.
I have managed to change the power state using the following:
http://dreambox/web/powerstate?newstate={powerstate_number}
- 0 = Toogle Standby
- 1 = Deepstandby
- 2 = Reboot
- 3 = Restart Enigma2
- 4 = Wakeup form Standby
- 5 = Standby
This works and changes the powerstate but gives an unexpected token error? Maybe someone can tell me what is unexpected?Google for a json validator if you're not sure how to format it.