Tasker

From: Chris (CHRISSS)26 Feb 2016 08: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 08: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 08: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 09: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 09: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 09: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 11:15
To: ALL30 of 43
I'm getting a 401 from Tasker. Not sure how to fix that.
From: ANT_THOMAS26 Feb 2016 11: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 13:18
To: ANT_THOMAS 32 of 43
3 quid!? :C
From: Chris (CHRISSS)26 Feb 2016 13: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.
From: Chris (CHRISSS)26 Feb 2016 13:43
To: ALL34 of 43
I think it's the server that's the problem. I just logged into my Pi at home and tried wget. Same problem, 401.
From: ANT_THOMAS26 Feb 2016 15:21
To: koswix 35 of 43
I either used some Google play store credits from various device purchases, Google opinion rewards, or it was on sale at some point.

Get it from Aptoide if you don't want to pay.
From: milko26 Feb 2016 15:31
To: koswix 36 of 43
don't you do Opinion Rewards or whatever the survey's called? I make about 10p a day off that, soon adds up. 
From: Chris (CHRISSS)26 Feb 2016 15:49
To: koswix 37 of 43
I just checked and I paid £1.99 but that was 3 years ago. I haven't actually used it for anything til now and I can't even get that to work :(
From: Chris (CHRISSS)26 Feb 2016 21:29
To: ALL38 of 43
What the f is Chrome doing differently to wget/Tasker? I can't get wget to connect to my server :(
From: Chris (CHRISSS)26 Feb 2016 22:54
To: ALL39 of 43
Riiiiiight. Think I /might/ be getting somewhere. I just managed to get it to work from my Pi using curl and the --digest option. What's the difference between basic and digest authentication? I'll see if I can get that working in Tasker now.
From: Chris (CHRISSS)26 Feb 2016 23:09
To: ALL40 of 43
Yay yay yay. Tasker now runs a curl in a shell and no need to turn my screen on or do silly calls now :D
From: ANT_THOMAS27 Feb 2016 00:34
To: Chris (CHRISSS) 41 of 43
Yay, no screen on rubbish!

You could just have the Pi run a cronjob at the required time rather than relying on your phone.
From: Chris (CHRISSS)27 Feb 2016 22:49
To: ANT_THOMAS 42 of 43
That's true. I'm thinking it might be easier to change the times or switch it off when I want to if I do it on my phone. All working now though which is nice.
From: johngti_mk-ii28 Feb 2016 10:00
To: ALL43 of 43
You two are just making stuff up now...