Feature request - SendtoHTTP authentication

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
theone
Normal user
Posts: 11
Joined: 15 May 2016, 20:44

Feature request - SendtoHTTP authentication

#1 Post by theone » 24 Jun 2016, 11:33

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

Mariete
Normal user
Posts: 21
Joined: 05 Nov 2015, 19:16
Location: Madrid, Spain
Contact:

Re: Feature request - SendtoHTTP authentication

#2 Post by Mariete » 14 Feb 2017, 09:12

Did you manage to do the authenticated call?

I'm facing the same situation with SendToHTTP
DIY CO2 monitor with ESP Easy at https://emariete.com/medidor-casero-co2/
ESP Easy related info at my blog: https://emariete.com/tag/espeasy/

groovy
Normal user
Posts: 39
Joined: 14 Oct 2016, 11:32
Location: Chemnitz, Germany

Re: Feature request - SendtoHTTP authentication

#3 Post by groovy » 14 Feb 2017, 09:34

Did you have a look here?

Mariete
Normal user
Posts: 21
Joined: 05 Nov 2015, 19:16
Location: Madrid, Spain
Contact:

Re: Feature request - SendtoHTTP authentication

#4 Post by Mariete » 14 Feb 2017, 09:56

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.
DIY CO2 monitor with ESP Easy at https://emariete.com/medidor-casero-co2/
ESP Easy related info at my blog: https://emariete.com/tag/espeasy/

sincze
Normal user
Posts: 38
Joined: 15 Jul 2016, 12:54

Re: Feature request - SendtoHTTP authentication

#5 Post by sincze » 20 Mar 2019, 11:14

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??


jvm1000
Normal user
Posts: 11
Joined: 11 Feb 2017, 14:23

Re: Feature request - SendtoHTTP authentication

#7 Post by jvm1000 » 12 Dec 2020, 16:51

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

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests