Linking images in Dropbox for tile icons


#1

I have read posts where people say they’ve used URLs to images in their Dropbox for icons in ST tiles. I can’t get that to work. I go to the image in Dropbox, click share, create a link anyone can view, and paste that link into my device handler. Example:

attributeState “on”, label: ‘${name}’, action: “switch.off”, icon: “https://www.dropbox.com/s/ta54txpk8dz171r/rat.png?dl=0”, backgroundColor: “#00A0DC

If I use an image hosting site, that link works just fine. So why is the Dropbox link not working?

Thanks


#2

This caused problems for the Lock Manager SmartApp too recently. I believe Dropbox changed something that basically means you can no longer do this.


(Kurt Sanders) #3

I always use GitHub for my SmartApp icons.


(Andreas A.) #4

Try changing the dl=0 to raw=1


#5

That worked perfectly! Thanks very much for that.