+5
Discuss

I created a Sunrise/Sunset Tile!

Kris L 4 months ago in Media Tiles / Weather & Traffic • updated by M S 4 months ago 3

I'm sharing this for others to use!

Use this Media Still Image URL:

https://sunsettile.app/sunset?lat=38.7535121&long=-120.5807933&bgcolor=3b3749&fgcolor=ffffff&size=3x2

Use the base URL https://sunsettile.app/sunset for sunset and https://sunsettile.app/sunrise for sunrise

Required parameters: 

lat (latitude)

long (longitude)

bgcolor (background color  - hex color without #)

fgcolor (foreground color - hex color without #)

Optional parameter:

timeformat=24 (For 24 hour time)

Please set the refresh time to at least every 12 hours (43200 seconds) to be nice to my server.

Discuss

Great work, Kris: Thanks for sharing!

The SmartThings Weather Tile "Device" supplies Sunrise and Sunset as Custom Attributes; but we only display them on the full Weather Tile itself.

We recognize the value of providing Tiles that can display arbitrary Attributes (or execute arbitrary Commands) and this will likely be a Feature someday.

This is a great interim workaround - and a great proof-of-concept.

+1

If anyone would like other features... they can make a pull request :)

https://github.com/klinquist/SunsetActionTile

Thank you for sharing.