Status IM with 📅 and 📶

by imagoiq

Version 1 (December 17, 2020)

Download (73 downloads)

Change automatically the status of your instant messaging app (especially made for slack) with events from your calendar and your WiFi connection.

# How to setup

Create two JSON files named 'config' and 'list_status' inside a 'automate_status_im' folder at your root filesystem (or somewhere else, but you'll have to pick them at startup)

# Template for config.json

timeslot24h allow you to change your status only durinf the day when you are working (this is also running only from monday to friday). Of course, you can have multiple services.

With slack, you have to get a token by creating an app with the right scope inside your workspace: https://api.slack.com/authentication

Notes on status list: status are checked following order inside the file.

{
"timeslot24h": {
"start": "08:00",
"stop": "18:00"
},
"services": [
{
"name": "Slack YourGroup",
"request": {
"url": "https://slack.com/api/users.profile.set",
"method": "POST",
"type": "application/json",
"headers": {
"Authorization": "Bearer yourtoken"
}
},
"trust_insecure_certificate": 1,
"dont_allow_redirect": 1,
"save_response": 0
}
],
"status":{
{
"calendar": [
{
"condition_contains": "sick",
"status_text": "sick",
"status_emoji": ":face_with_thermometer:"
},
{
"condition_contains": "holiday",
"status_text": "in holiday",
"status_emoji": ":palm_tree:"
},
{
"condition_contains": "focus",
"status_text": "focus mode",
"status_emoji": ":brain:"
},
{
"condition_contains": "",
"status_text": "busy",
"status_emoji": ":calendar:"
}
],
"wifi": [
{
"condition_contains": "HomeSSID",
"status_text": "at home",
"status_emoji": ":house_with_garden:"
},
{
"condition_contains": "WorkSSID",
"status_text": "at work",
"status_emoji": ":office:"
}
]
}
}
}