Skip to content

MagicMirror moudles 魔镜模块 替代 compliments

Notifications You must be signed in to change notification settings

jdonge/MMM-yijv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

MMM-yijv

MagicMirror moudle substitute compliments, only supports Chinese.

魔镜模块,取代'compliments',利用一句 随机产生一句古诗词。

Installation

运行以下命令。

cd modules
git clone https://github.com/jdonge/MMM-yijv

Using the module

config/config.js 文件中替换 compliments 的相关设置:

var config = {
    modules: [
        {
            module: "MMM-yijv",
            position: "lower_third",
            config: {
            }
        }
    ]
}

Configuration options

Option Description
updateInterval 更新速度,毫秒。
fadeSpeed 动画速度,毫秒。
authorAlign 作者来源对齐方式
  • align-right 右对齐。
  • align-left 左对齐。
  • 空着就居中。
words 初始语句。
maxQuantity 最大缓存数量。Int
lineBreak 遇到 ,。?! 换行,'true' or 'false'

Example - Global Carousel

var config = {
    modules: [
        {
            module: "MMM-yijv",
            position: "lower_third",
            config: {
                updateInterval: 60000,
		fadeSpeed: 4000,
                authorAlign: "",
		words: [{
            		content: "不要怂,一起上!",
            		source: "和平精英"
        		},{
			content: "世界那么大,你想去看看。事情那么多,你咋不干?",
            		source: "陈一发儿"}],
        	maxQuantity: 10,
        	lineBreak: true
            }
        }
    ]
}

About

MagicMirror moudles 魔镜模块 替代 compliments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published