01-13-2023, 03:50 PM
Guys, I'm not being able to download this image with QM anymore. Can you please help me?
;allow single instance
if(getopt(nthreads)>1) end "The thread is already running. You can end it in the 'Running items' pane."
str sf_001 sd_001 ;;variables
;;;;download image data into variable sd
int downloaded_001
rep 60 ;;repeat max 10 minutes every 10 s until success
IntGetFile "https://img3.weather.us/images/data/cache/regen/download_regen-en_2023_01_11_09_00_1445_396.png" sd_001
err 10; continue ;;if error, retry after 10 s
downloaded_001=1
break
if(!downloaded_001) end "failed to download"
;;format filename and save to file
sf_001.timeformat("C:\tese\hihi.png")
sd_001.setfile(sf_001)
;allow single instance
if(getopt(nthreads)>1) end "The thread is already running. You can end it in the 'Running items' pane."
str sf_001 sd_001 ;;variables
;;;;download image data into variable sd
int downloaded_001
rep 60 ;;repeat max 10 minutes every 10 s until success
IntGetFile "https://img3.weather.us/images/data/cache/regen/download_regen-en_2023_01_11_09_00_1445_396.png" sd_001
err 10; continue ;;if error, retry after 10 s
downloaded_001=1
break
if(!downloaded_001) end "failed to download"
;;format filename and save to file
sf_001.timeformat("C:\tese\hihi.png")
sd_001.setfile(sf_001)