Skip to content

Instantly share code, notes, and snippets.

@darkato42
Last active December 10, 2023 16:19
Show Gist options
  • Save darkato42/f92b7ce0af8bdd1ac9da4720af7c5d40 to your computer and use it in GitHub Desktop.
Save darkato42/f92b7ce0af8bdd1ac9da4720af7c5d40 to your computer and use it in GitHub Desktop.
stash-tiles
$httpClient.get('https://api.my-ip.io/ip', function (error, response, data) {
$done({
title: '当前 IP 地址',
content: data,
backgroundColor: '#663399',
icon: 'network',
})
})
tiles:
- name: current-ip
interval: 600
title: 'Awesome Tile'
content: 'This is Super Cool'
icon: 'theatermasks.circle.fill' # 或 https://stash.ws/amazing.png
backgroundColor: '#663399'
script-providers:
current-ip:
url: https://gist.githubusercontent.com/darkato42/f92b7ce0af8bdd1ac9da4720af7c5d40/raw/52aef8fc1a6bd2c85b1ceca1281f3e10ccaaf3dc/stash-tile-current-ip.js
interval: 86400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment