Skip to content

Instantly share code, notes, and snippets.

@adnbr
Last active January 29, 2017 13:22
Show Gist options
  • Save adnbr/a3f9f06cb7bcd9e7bd02e47ae35ad19a to your computer and use it in GitHub Desktop.
Save adnbr/a3f9f06cb7bcd9e7bd02e47ae35ad19a to your computer and use it in GitHub Desktop.
{
"response_type":"in_channel",
"text":"The interior sensors are currently located in the Workshop.",
"username":"Environmental Bot",
"icon_emoji":":thermometer:",
"attachments":[
{
"color":newspace_colour,
"mrkdwn_in":[
"text",
"pretext"
],
"ts":str(calendar.timegm(time.gmtime())),
"fields":[
{
"title":"Inside Temperature",
"value":newspace_inside_temperature + " " + unichr(176) + "C",
"short":True
},
{
"title":"Outside Temperature",
"value":str(newspace_outside_temperature) + " " + unichr(176) + "C",
"short":True
},
{
"title":"Inside Dust Density",
"value":newspace_inside_dust,
"short":True
}
],
"footer":"Outside weather data from <https://darksky.net/forecast/53.8064,-1.5335/uk224/en|DarkSky>. <https://gist.github.com/adnbr/80dc4cf0a52ba7c1f31c49e099af4335|Slack Interface Source Code>.",
"footer_icon":"https://darksky.net/images/logo.png"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment