Android tasker with webauth protected FHEM

Begonnen von homer, 28 Mai 2013, 00:36:27

Vorheriges Thema - Nächstes Thema

homer

Hi All,

I can turn a light on using tasker by issuing the following with HTTP GET:

my_url:my_port/fhem?cmd.LOUNGELIGHT=set%20LOUNGELIGHT%20on

... but only if I turn webauth off in FHEM. I assume I need to pass my username and password in the URL? Can someone please let me know how to do this?

Thanks
Homer

homer

Ok. I've worked out what to do:

username:password@my_url:my_port/fhem?cmd.LOUNGELIGHT=set%20LOUNGELIGHT%20on

homer

Thanks everyone for your help. Joerg, your suggest seems sensible. I'm giving it a try!

Thanks
Homer

forum-merlin

Thanks Homer!

Nice to know how it works if web auth is enabled!
Now I can trigger FHEM commands from my "CRON Server" which controls several devices via shell script from outside.

cu
FHEM 5.8 auf RasPi3; CULv3-868; RFXtrx433; HM-Sec-SC-2; HM-CFG-LAN; HM-LC-Bl1-FM; HM-CC-RT-DN; HM-ES-PMSw1-Pl; HM-LC-Sw4-DR; Hunter Ventile; 8ch Relais; ENIGMA2; ONKYO_AVR; SONOS; Harmony; telegram; HM-PB-6-WM55; GPIO; HM-Sen-MDIR-O; HM-SEC-SD; HM-LC-Dim1L-Pl-3;