document.documentElement.requestFullscreen();
var CONFIG = {
customTheme: CUSTOM_THEMES.HOMEKIT, // CUSTOM_THEMES.TRANSPARENT, CUSTOM_THEMES.MATERIAL, CUSTOM_THEMES.MOBILE, CUSTOM_THEMES.COMPACT, CUSTOM_THEMES.HOMEKIT, CUSTOM_THEMES.WINPHONE, CUSTOM_THEMES.WIN95
transition: TRANSITIONS.ANIMATED_GPU, //ANIMATED or SIMPLE (better perfomance)
entitySize: ENTITY_SIZES.SMALL, //SMALL, BIG are available
tileSize: 110,
tileMargin: 3,
serverUrl: “http://192.168.1.113:8123”,
wsUrl: “ws://192.168.1.113:8123/api/websocket”,
authToken: LONGLIVEDHERE, // optional: make an long live token and put it here
//googleApiKey: “XXXXXXXXXX”, // Required if you are using Google Maps for device tracker
debug: true, // Prints entities and state change info to the console.
// next fields are optional
events: [],
timeFormat: 24,
menuPosition: MENU_POSITIONS.LEFT, // or BOTTOM
hideScrollbar: false, // horizontal scrollbar
groupsAlign: GROUP_ALIGNS.HORIZONTALLY, // or VERTICALLY
header: { // https://github.com/resoai/TileBoard/wiki/Header-configuration
styles: {
padding: ‘25px 100px 0’,
fontSize: ‘22px’
},
right: [],
left: [
{
type: HEADER_ITEMS.DATETIME,
dateFormat: ‘EEEE, LLLL dd’, //https://docs.angularjs.org/api/ng/filter/date
}
]
},
/screensaver: {// optional. https://github.com/resoai/TileBoard/wiki/Screensaver-configuration
timeout: 300, // after 5 mins of inactive
slidesTimeout: 10, // 10s for one slide
styles: { fontSize: ‘40px’ },
leftBottom: [{ type: SCREENSAVER_ITEMS.DATETIME }], // put datetime to the left-bottom of screensaver
slides: [
{ bg: ‘images/bg1.jpeg’ },
{
bg: ‘images/bg2.png’,
rightTop: [ // put text to the 2nd slide
{
type: SCREENSAVER_ITEMS.CUSTOM_HTML,
html: ‘Welcome to the TileBoard’,
styles: { fontSize: ‘40px’ }
}
]
},
{ bg: ‘images/bg3.jpg’ }
]
},/
pages: [
{