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
...I saw you were working on a track and trace app for Homey? Awesome I'll keep an eye on that!
Example:
This url gets me sunset/rise info: http://api.sunrise-sunset.org/json?lat=52.6972155&lng=5.164657.
I'm able to create the action card, but where are the results stored?
This comes back using Postman:
How can I use things like "civil_twilight_begin" in a different flow?
I have a couple of led strips and arduino's. Together with the NeoPixel/ArduinoPixel sketch (https://github.com/pAIgn10/ArduinoPixel) I can use put commands to control them.
This specific event will trigger a trigger card with the retrieved value as a token. @Uranday will make a generic value set action that can convert the retrieved value to text/numeric/boolean/etc value.
Yep, better logic will get an action card that sets all matching values in a json document. I'll look for key value pairs in the document. When it is found the value will be set and the trigger cards for those values will be triggered.
Sweet! With this almost anything with a web API can be used as a trigger! That's eh... a lot
Get a specific value from any json API with a get-request, and trigger another flow with this value in the token.
I want to change a variable in Homey everytime my phone connects and disconnects to my WiFi network. So I guess I have to set a rule in Tasker that when my phone connects to WiFi I have to let Tasker do a HTTP Post to Homey and then in Homey I have to use the incoming get request card as a trigger. Is this correct?
Could anybody share some print screens with me (on the forum or via mail if it is to difficult to explain on the forum). I believe I have to use the following action card in Tasker but I don't know what I exactly need to enter in each field so that Homey receives the HTTP post.
Any help would be greatly appreciated .
getProduction:
The action card has 4 parameters:
1. http://www.upp.nl/public/api/latest-realtime-measurements/100
2. {} (no queryparameters like ?var=1&name=13 needed in this example)
3. $.[0][total] (= JSONpath select to select the total production from the returned json object)
4. solartrigger (= name for trigger in sayProduction flow)
sayProduction:
Using the droptoken 'waarde' or 'value' in an action with a simple calculation