Page 1 of 1

Feature request - SendtoHTTP authentication

Posted: 24 Jun 2016, 11:33
by theone
Is it possible to add username and password to the SendtoHTTP command?

I would like my ESP to send ON/OFF/Toggle commands directly to my KMTronicC WEB relay board.
http://kmtronic.com/kmtronic-lan-ethern ... board.html
There is no option to remove the authentication from it.

I would like to do something like this to toggle relay 6:

Code: Select all

http://admin:admin@192.168.2.20/relays.cgi?relay=6

Re: Feature request - SendtoHTTP authentication

Posted: 14 Feb 2017, 09:12
by Mariete
Did you manage to do the authenticated call?

I'm facing the same situation with SendToHTTP

Re: Feature request - SendtoHTTP authentication

Posted: 14 Feb 2017, 09:34
by groovy
Did you have a look here?

Re: Feature request - SendtoHTTP authentication

Posted: 14 Feb 2017, 09:56
by Mariete
Thank you.

Looks like my _C008.ino is already modified but it still doesn't work.

I'm trying to use it in a rule.

Re: Feature request - SendtoHTTP authentication

Posted: 20 Mar 2019, 11:14
by sincze
In my rules I used to have commands like:

Code: Select all

SendToHTTP 192.168.*.*,8080,/json.htm?type=command&param=udevice&idx=88&nvalue=0&svalue=[Liters#Liters]
RULES make my life easy and I can do whatever I want without having to create DUMMY sensors in the ESP.

However since my Domoticz machine moved to a different vlan I now have to use AUTHENTICATION.
Would it be possible to implement this with SendToHTTP somehow??

Re: Feature request - SendtoHTTP authentication

Posted: 20 Mar 2019, 23:24
by kimot

Re: Feature request - SendtoHTTP authentication

Posted: 12 Dec 2020, 16:51
by jvm1000
that works fine

MkE= is the base64 encoded username ('2A' in this example)
OVM= is the base64 encoded password ('9S' in this example)

SendToHTTP 172.19.219.230,8080,/json.htm?username=MkE=&password=OVM&type=command&param=switchlight&idx=36&switchcmd=On

thank for all you help