We’re excited to announce the next SharpTools.io release! This update brings with it the following enhancements:
- Day of Month Tile
- Date Tile
- Option for changing the time format in the Clock tile
- Momentary Tile
headers
support in Hyperlink REST API syntax
Day of Month Tile
Simple tile for displaying the current day of month in a large, easy-to-read format.
Date Tile
Like the Clock tile, but for dates! Displays the date:
By default, it uses the date format implied by your system locale settings, but the tile also has options for specifying a specific date format:
Clock Tile - Time Format option
Like the new Date tile, the Clock tile automatically infers the time format based on your system’s locale settings. We had a few requests from people who wanted to display their dashboard clocks in a different format than their system time format, so we’ve added the option to explicitly use 24 hour time or 12 hour time (AM/PM):
Momentary Tile
This new tile brings support for Things which implement the ‘Momentary’ capability which has a single push()
command. This is convenient where you want to trigger an action or automation within your system without keeping track of any ‘state’.
If you’re already using something like the Momentary Button Tile
which supports both Switch and Momentary capabilities, make sure to change over to the new format.
headers
support in Hyperlink REST API Syntax
The Hyperlink REST API syntax now supports an optional configuration object which supports passing in a set of headers to include in your REST API call.
$.get(url, config)
$.post(url, data, config)
$.put(url, data, config)
$.delete(url, config)
This means you could include custom headers needed by your API:
$.post("https://mycoolapi.com/update", {}, {"headers": { "X-Species": "Ferengi"}})
Note that you’ll need to pass an empty data object {}
for the post and put calls if you don’t have any payload.