Display your TimeTree event on your magic mirror.
1.0.0
- Simple viewer for TimeTree event.
1.0.1
- Temporary fix: Add request lib.
1.0.2
- Migrate to axios from request.
1.0.3
- Added the feature to display the date at the head of the event.
cd ~/MagicMirror/modules/
git clone https://github.com/sabo10o29/MMM-TimeTreeEvent.git
cd MMM-TimeTreeEvent
npm install
https://timetreeapp.com/personal_access_tokens
{
module: "MMM-TimeTreeEvent",
//Positions of *_bar and *_third are not support.
position: "top_left",
config: {
appid: "***Your api key***",
//You need to get the target calender id with Get calender id api[1]
calenderid: "***Calender id***",
}
},
Option | Description |
---|---|
upadteinterval |
Update interval to get event from TimeTree. Type: int Default value: 3 * 60 * 60 *1000 (3 hours) |
timeFormat |
Display the scheduled time based on moment.js. Type: String Default value: HH:mm |
showDate |
If showDate is true, the date is displayed at the head of the event. Type: boolean Default value: false |
dateFormat |
Display the scheduled date based on moment.js if showDate option is true. Type: String Default value: MM/DD |
eventWordCount |
Maximum length to show the event title. Type: int Default value: 10 |
days |
Get events from today to n-th day. Type: int Default value: 1 |
title |
Title name Type: String Default value: Today's event |
timezone |
Timezone. The format is according to the Time Zone Database. Type: String Default value: Asia/Tokyo |