This is a module for the MagicMirror².
This is inspired by MMM-YT-SubCount.
This module show the number of Bilibili Subscriber on the MagicMirror.
Version 1.0.0
This module is pretty simple to set up. You simply need to clone the module into your modules folder (like other modules).
$ cd MagicMirror/modules
$ git clone https://github.com/jimmy0017/MMM-Bilibili-SubCount.git
After you clone the repositories, you have to install the node modules
$ cd ./MMM-Bilibili-SubCount
$ npm install
To display the subscribtion, you need to define which channel you want to display. You can also only display ONE channel. All you need is the Channel ID. You can find the Channel ID in the URL in Bilibili.
https://space.bilibili.com/xxxxxx
Where xxxx is your channel ID
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
{
module: "MMM-Bilibili-SubCount",
header: "Bilibili Counter",
position: "top_right",
config: {
showChannelImg: true,
channelId: "123456789",
}
}
]
};
Option | Description |
---|---|
channelId |
Required Put the Channel id here |
showChannelImg |
Optional Display the channel profile image Type: boolean Default true |
updateInterval |
Optional Refresh rate Type: int (milliseconds) Default 60000 milliseconds (1 minute) |