Skip to content

Jupter1/MMM-Slack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from grid-x.

  • Edited CSS file.
  • Removed Emoji support.
  • Removed brackets '[]' from Username.
  • Added Timestamp. It will display as username @hh:mm.
  • Added variables for a refresh interval and a display-time: Module displays the last message of each user for a given amount of time. When the module updates, the message is updated to the next message wich is from a different user. If no message younger than the displayTime exists, the module will hide itself.
  • added variable to prevent an immediate refresh when a new message arrives. See table below for configuration options.

Forked from stir.

  • Changed the Random Message Display to Last Message only.
  • Removed '@' from Usernames

MagicMirror² Module: MMM-Slack

This is a module integrating Slack in MagicMirror². It displays messages from the a given Slack channel in config.js. The module also supports update and delete messages

How to install

Remote into your MagicMirror box using a terminal software and go to the application folder:

cd ~/MagicMirror

Clone the repository:

git clone https://github.com/nrkno/MMM-Slack

Install dependencies:

npm install

Add the module to the modules array in the config/config.js file by adding the following section. You can change this configuration later when you see this works:

{
	module: 'MMM-Slack',
	position: 'lower_third',
	config: {
		slackToken: 'YOUR_SLACK_TOKEN_GOES_HERE',
		slackChannel: 'THE_CHANNEL_YOU_WANT_MESSAGES_FROM'
	}
},

Configuration options

Option Comment Default
slackToken You must create a test token for the [Slack API](https://api.slack.com/tokens) aaaa-bbbbb-ccccc-dddd-12344
slackChannel Which Slack channel you want to display messages from. test
maxUsers Indicates how many different Slack-Users will be displayed and thus, how many messages can be cycled through at most. If set to 1, only the newest message will appear. 3
showUserName If true, the message sender's user name will be displayed with the message. true
showTime If true, the timestamp of the message will be displayed after the username. true
showSeconds If true, the timestamp includes the seconds. Only works, if showTime is true. false
showLatestMessageOnStartup If true, the latest message in the channel will be displayed on startup false
displayTime The time in seconds the last message is displayed. 60 min = 3600 s
urgentRefresh If true, the messages will be updated as soon as a new message arrives. If false, the cycle will be completed before the newest message will be shown. false
updateInterval The time-interval which defines how often the module is updated. 1 min = 60000 ms
animationSpeed Speed of the update animation. The value is given in milliseconds. 1000 ms

About

Slack integration for MagicMirror²

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.3%
  • CSS 3.7%