slack-strava
slack-strava copied to clipboard
Trim activities with Klimat descriptions
Klimat adds a bunch of info that users might not want to see reposted.
{
"attachments": [
{
"fallback": "\"Didn't feel like running today\" run via <@U010SPGV525>, 2.6mi 25m35s 9m50s/mi",
"title": "\"Didn't feel like running today\" run ",
"title_link": "https://www.strava.com/activities/...",
"text": "<@name> on Tuesday, May 12, 2020 at 06:05 PM\n\nStart weather: Clear / 64°F / Feels like 64°F ☀️ \nHumidity 37%, / Wind 7mph from W\nEnd weather: Clear / 63°F / Feels like 63°F ☀️ \nHumidity 39%, Wind 6mph from WSW\n-- Weather added by Klimat.app --",
"image_url": "https://slava.playplay.io/api/maps/5ebb308dd3018b01013f50d2.png",
"fields": [
{
"title": "Type",
"value": "Run 🏃",
"short": true
},
{
"title": "Distance",
"value": "2.6mi",
"short": true
},
{
"title": "Moving Time",
"value": "25m35s",
"short": true
},
{
"title": "Elapsed Time",
"value": "33m42s",
"short": true
},
{
"title": "Pace",
"value": "9m50s/mi",
"short": true
},
{
"title": "Speed",
"value": "6.1mph",
"short": true
},
{
"title": "Elevation",
"value": "228.3ft",
"short": true
},
{
"title": "Max Speed",
"value": "8.7mph",
"short": true
},
{
"title": "Heart Rate",
"value": "123.4bpm",
"short": true
},
{
"title": "Max Heart Rate",
"value": "145.0bpm",
"short": true
}
],
"author_name": "...",
"author_link": "https://www.strava.com/athletes/...",
"author_icon": "https://dgalywyr863hv.cloudfront.net/pictures/athletes/.../6653907/2/medium.jpg"
}
],
"channel": "C01124GKJP6",
"ts": "1589325965.151300",
"as_user": true
}