Last active
January 29, 2017 13:22
-
-
Save adnbr/a3f9f06cb7bcd9e7bd02e47ae35ad19a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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