Tasker

From: Chris (CHRISSS)25 Feb 2016 17:16
To: ANT_THOMAS 14 of 43
Excellent. I'll try that out later. Thanks :)
From: ANT_THOMAS25 Feb 2016 18:26
To: Chris (CHRISSS) 15 of 43
I've got home screen widgets to run some tasker tasks. One being an "All Off" task that turns off all of my remotely controllable lights. Saves me delving into the webui
EDITED: 25 Feb 2016 18:37 by ANT_THOMAS
From: koswix25 Feb 2016 22:54
To: ANT_THOMAS 16 of 43
I looked for tasker in play store and there's lots of apps with same name. Which one is the real one? :/
From: ANT_THOMAS25 Feb 2016 22:58
To: koswix 17 of 43
From: Chris (CHRISSS)25 Feb 2016 23:47
To: ANT_THOMAS 18 of 43
It doesn't seem to be working. I think it's because I have a password on the site. In Chrome I can add it to the URL but the HTTP get in Tasker doesn't seem to register it.
From: Chris (CHRISSS)25 Feb 2016 23:48
To: ANT_THOMAS 19 of 43
Handy. How many wireless devices do you have? And is your new relay just triggered straight from the Pi?
From: Chris (CHRISSS)26 Feb 2016 00:15
To: ALL20 of 43
Slightly changed my task and it seems to be working.

Turn WiFi on
Wait 30 seconds
Wake device
Wait 3 seconds
Call 150
Wait 3 seconds
End call
Wait 3 seconds
Browse to URL and turn heating on for 90 minutes

Hopefully it will work in the morning and we'll have a nice warm house.
From: ANT_THOMAS26 Feb 2016 06:43
To: Chris (CHRISSS) 21 of 43
It should work with passwords. Let me just screen shot my config because you really don't need to do all this waking and screen on stuff.
From: ANT_THOMAS26 Feb 2016 06:47
To: Chris (CHRISSS) 22 of 43
Screenshot wouldn't really show it.

In the server: port section you want it to be this format. No http etc

user:pass@address/location/index.php?status=alloff

Set timeout to 1
EDITED: 26 Feb 2016 06:47 by ANT_THOMAS
From: ANT_THOMAS26 Feb 2016 07:27
To: Chris (CHRISSS) 23 of 43
Yeah triggered by the Pi with a 433 MHz signal.

Controllable lights:
1 lightwave rf dimming switch in the bedroom
1 dimmable led strip in the bedroom behind the bed
1 bedside lamp on a remote socket
1 living room lamp on a remote socket
1 led strip behind the TV on a remote socket

I've got other things on remote sockets too and some spares in case I want to add more.
From: Chris (CHRISSS)26 Feb 2016 07:37
To: ANT_THOMAS 24 of 43
Heating didn't come on again this morning. Not sure why :S

Just tried HTTP Get again and not working. I've copied the URL that works in Chrome and it does nothing. Could it be the two colons in the URL?

user@pass:blah.ddns.net:port/boiler/index.html?param=heatingon
From: ANT_THOMAS26 Feb 2016 07:56
To: Chris (CHRISSS) 25 of 43
It's user:pass@address not user@pass

Or the other option I've noticed I use is

user:pass@address in the server:port section

/folder/page.html?whatever=blah in the path section

Try that
From: ANT_THOMAS26 Feb 2016 07:59
To: Chris (CHRISSS) 26 of 43
user:pass@address.co.uk:80/ha/blah.php?status=alloff

Worked fine for me too.

I assume you're using a normal .htaccess type username/password setup?
From: Chris (CHRISSS)26 Feb 2016 08:11
To: ANT_THOMAS 27 of 43
Oops. Typed them wrong on here. It's the right way in Tasker. I'm pretty sure CivetWeb uses a .htaccess file but can't remember.
From: Chris (CHRISSS)26 Feb 2016 08:15
To: ANT_THOMAS 28 of 43
And if I output the request to a file it's completely empty.
From: Chris (CHRISSS)26 Feb 2016 08:22
To: Chris (CHRISSS) 29 of 43
I just downloaded a terminal emulator nns used wget. It says unauthorised with the user/pass there. Hmm.
From: Chris (CHRISSS)26 Feb 2016 10:15
To: ALL30 of 43
I'm getting a 401 from Tasker. Not sure how to fix that.
From: ANT_THOMAS26 Feb 2016 10:25
To: Chris (CHRISSS) 31 of 43
Try
http://user:pass@myurl

I don't have http but you might need to
From: koswix26 Feb 2016 12:18
To: ANT_THOMAS 32 of 43
3 quid!? :C
From: Chris (CHRISSS)26 Feb 2016 12:22
To: ANT_THOMAS 33 of 43
That didn't make any difference. I can't work out if it's my web server or my phone that's the problem.