Unsplash images

126 views
Skip to first unread message

Mahammad Rafi

unread,
Jul 5, 2022, 2:52:12 AM7/5/22
to Tasker
Hi Joao 
How can I download images from unsplash website using http request action?


Thanks in advance from Mahammad Rafi. 

João Dias

unread,
Jul 5, 2022, 4:09:54 AM7/5/22
to Tasker
Just use their direct link like this for example.

Hope this helps.
Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Mahammad Rafi

unread,
Jul 6, 2022, 1:14:35 AM7/6/22
to Tasker
Hi Joao
I want create task like as Google earth wallpaper task. Explain me in more detail. 

Thanks in advance from Mahammad Rafi.

João Dias

unread,
Jul 6, 2022, 5:00:24 AM7/6/22
to Tasker
Use this for example:

Task: Unsplash Wallpaper

A1: HTTP Request [
Method: GET
URL: https://unsplash.com/napi/photos
Query Parameters: page:1
per_page:3
Timeout (Seconds): 30
Structure Output (JSON, etc): On ]

A2: Multiple Variables Set [
Names: %launcher
%lock
Values: Tasker/wallpaper_launcher.jpg
Tasker/wallpaper_lock.jpg
Max Rounding Digits: 3 ]

A3: HTTP Request [
Method: GET
URL: %http_data.regular(2)
File/Directory To Save With Output: %launcher
Timeout (Seconds): 30
Structure Output (JSON, etc): On ]

A4: HTTP Request [
Method: GET
URL: %http_data.regular(3)
File/Directory To Save With Output: %lock
Timeout (Seconds): 30
Structure Output (JSON, etc): On ]

A5: Set Wallpaper [
Type: Launcher
Image: %launcher
Scale: On ]

A6: Set Wallpaper [
Type: Lockscreen
Image: %lock
Scale: On ]

Further details on the technique I use here: https://youtu.be/Dq3l1pJdmc0

Mahammad Rafi

unread,
Jul 6, 2022, 9:24:16 AM7/6/22
to Tasker
Hi
I am getting error message at A3.
Create a task and post it here.

Thanks in advance from Mahammad Rafi.

Jeff Chapin

unread,
Jul 6, 2022, 9:27:24 AM7/6/22
to tas...@googlegroups.com
What error message are you getting? 


--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/13e4b62a-538d-4512-88dd-e5b5cd7b08e4n%40googlegroups.com.


--
Jeff Chapin
President, CedarLug, retired
President, UNIPC, "I'll get around to it"
President, UNI Scuba Club
Senator, NISG, retired

Mahammad Rafi

unread,
Jul 6, 2022, 6:50:27 PM7/6/22
to Tasker

04.19.06/E add wait type EasyAction1 time 2147483647
04.19.06/E add wait type EasyAction1 done
04.19.06/E add wait task
04.19.06/E Error: 1
04.19.06/E java.net.MalformedURLException: Invalid authority field: [{"id":"9svwLNfE2Ts","created_at":"2022-02-15T22:40:10-05:00","updated_at":"2022-07-06T07:24:55-04:00","promoted_at":null,"width":8056,"height":5373,"color":"

João Dias

unread,
Jul 7, 2022, 4:24:50 AM7/7/22
to Tasker
Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Mahammad Rafi

unread,
Jul 7, 2022, 4:40:01 AM7/7/22
to Tasker
    Task: Unsplash
    
    A1: HTTP Request [
         Method: GET
         Query Parameters: page:1
         per_page:3
         Timeout (Seconds): 30 ]
    
    A2: Multiple Variables Set [
         Names: %launcher
         %lock
         Variable Names Splitter: 
         
         Values: Tasker/wall.jpg,Tasker/lock.jpg
         Values Splitter: ,
         Max Rounding Digits: 3
         Structure Output (JSON, etc): On ]
    
    A3: HTTP Request [
         Method: GET
         URL: %http_data.regular(2)
         File/Directory To Save With Output: %launcher
         Timeout (Seconds): 30 ]
    
    A4: HTTP Request [
         Method: GET
         URL: %http_data.regular(3)
         File/Directory To Save With Output: %lock
         Timeout (Seconds): 30 ]

João Dias

unread,
Jul 7, 2022, 5:42:29 AM7/7/22
to Tasker
In what action did you get the error?

Mahammad Rafi

unread,
Jul 7, 2022, 9:00:50 AM7/7/22
to Tasker
Hi Joao 

In action 3. Below is the error message 

04.19.06/E add wait type EasyAction1 time 2147483647
04.19.06/E add wait type EasyAction1 done
04.19.06/E add wait task
04.19.06/E Error: 1
04.19.06/E java.net.MalformedURLException: Invalid authority field: [{"id":"9svwLNfE2Ts","created_at":"2022-02-15T22:40:10-05:00","updated_at":"2022-07-06T07:24:55-04:00","promoted_at":null,"width":8056,"height":5373,"color":"

João Dias

unread,
Jul 7, 2022, 9:04:17 AM7/7/22
to Tasker
You forgot Structure Output (JSON, etc): On in the first action :)

Mahammad Rafi

unread,
Jul 7, 2022, 9:16:04 AM7/7/22
to Tasker
Hi Joao 
Amazing. 

Thanks from Mahammad Rafi 

João Dias

unread,
Jul 7, 2022, 9:32:06 AM7/7/22
to Tasker
Glad it works! 👍

Mahammad Rafi

unread,
Jul 7, 2022, 10:45:42 PM7/7/22
to Tasker
Hi Joao 
How can I get nature category photos. Also how to get recently uploaded photos? 

From Mahammad Rafi. 

João Dias

unread,
Jul 8, 2022, 5:45:38 AM7/8/22
to Tasker
Check here: https://youtu.be/Dq3l1pJdmc0 

You have to check the URLs for the requests for those specific pages that are made in the background :)
Reply all
Reply to author
Forward
0 new messages