Async HTTP requests methods

Easy to use, 100% Lua-based event scripting framework.
Post Reply
mariuszp
Posts: 2
Joined: Tuesday 05 June 2018 23:15
Target OS: Raspberry Pi
Domoticz version:
Contact:

Async HTTP requests methods

Post by mariuszp » Wednesday 06 June 2018 12:51

I was wondering if there's any reason why we can't use other than POST and GET HTTP methods in domoticz.openURL? I was writing some scripts for Spotify integration and a lot of API methods wants PUT method. I know that I can use domoticz.osExecute and CURL but openURL is better for handling responses from HTTP requests.

dannybloe
Posts: 1486
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Async HTTP requests methods

Post by dannybloe » Wednesday 06 June 2018 13:13

Interesting.. never realised that.. will investigate.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

dannybloe
Posts: 1486
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Async HTTP requests methods

Post by dannybloe » Wednesday 06 June 2018 13:20

Looks like that requires quite some rewrites here and there in Domoticz code so if we do it it will be after the upcoming stable.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

mariuszp
Posts: 2
Joined: Tuesday 05 June 2018 23:15
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Async HTTP requests methods

Post by mariuszp » Wednesday 06 June 2018 20:03

Hey Danny,
Thanks for your reply. Is there a good place to put such a feature request because I think it would be worth implementing it (even if not in the next stable release).

dannybloe
Posts: 1486
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Async HTTP requests methods

Post by dannybloe » Thursday 07 June 2018 6:23

It is already on my list. So maybe for 2.5. Working on that one already
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

rjblake
Posts: 153
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Async HTTP requests methods

Post by rjblake » Friday 12 October 2018 21:06

Did this ever make it to 2.5?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests