I own a Ducobox and it is possible to get data from the box with an URL. I want to write two values to a logic variable, but I have no idea how to do this (I have very little http knowledge). How can I write the values temp and trgt to a logic variable in Homey? This is what I get from the Ducobox:
Good evening,
Could this app be used to send a Curl request to OpenAI? I have a sandbox environment that is giving me random greetings, messages and varied announcements based on a set of criteria.
I am hoping to pull the output in so that my anouncements at home are not pre-scripted but generated randomly.
The issue is I can not figure out the API integration and the only way I can see it working is to use Curl… example below.
curl https://api.openai.com/v1/completions
-H “Content-Type: application/json”
-H “Authorization: Bearer YOUR_API_KEY”
-d ‘{“model”: “text-davinci-003”, “prompt”: “Say this is a test”, “temperature”: 0, “max_tokens”: 7}’
Please let me know if this is even remotely viable.
Thanks
Nick
I’ve contacted @Erik as well via direct message - no response. He doesn’t seem to visit the forum quite often.
May be somebody else can take the app over? What about you @Arie_J_Godschalk ?
@Alexandre_Lechenne and @Ocyberbum : I switched to the http request cards in the logic app. Works like a charm for me, but you might have more advanced use-cases.
would mind sharing that flow, im trying to have it so when a door is open using a Aeotec sensor , it triggers blue iris, from what i see i can only have a logic app that excepts a http from blueiris
@Tiwas, thanks for your advise and your code screenshot. My problem is in fact more related to the trigger: what shall I use to trigger a HTTP POST request with endpoint that I cannot modify (for instance to use webhook): http://192.168.1.XXX/getjp
I know that then I can use the logic cards to make “the reply”.
Currently I’ve not found a solution in Homey 2023 (but I’m not a specialist) and I wrote a small piece of javascfript running in a raspberry to solve this issue. I’m interesting if someone write a Homey script to trigger such HTTP GET or POST request.
Thanks
Thanks for the example, i was hoping some one would have made a blueiris plugin at one point since there are alot of people that use it but i have found one for HA and a how too,… since i run HA with my Homey i figure i can get something to work since i have no programming knowledge!!
Is there any change this app will be updated for Homey Pro 2023?
Or is there any alternative for receiving GET requests from Locative, as Homey presens is still unreliable!?