i just tried to set-up tileboard with hass.io and moved the fodler to config/www/tileboard and edited the first part of the config as follows. Unfortunatly I just get a blank blue page when loading.
var CONFIG = {
customTheme: null, // 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.NORMAL, //SMALL, BIG are available
tileSize: 150,
tileMargin: 6,
serverUrl: "https://192.168.2.170:8123/",
wsUrl: "ws://192.168.2.170:8123/api/websocket",
authToken: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI4OTJlYzY5NDAwMjA0Yjc2OGZhNDNmYzE0MGZiOWIxZSIsImlhdCI6MTU0NzQ3NDI5MiwiZXhwIjoxODYyODM0MjkyfQ.hfZfSUKd6wrq4Bjy3a8F4xD_fpYY-CXkYCKktU1BLc4', // optional: make an long live token and put it here
//googleApiKey: "XXXXXXXXXX", // Required if you are using Google Maps for device tracker
debug: false, // Prints entities and state change info to the console.
I didn’t change anythign else so far to have a first look. But i still should be able to see sun.sun e.g., shouldn’t I?
What can I look into to fix this?
And thats what i get in the firefox error console:
Glitter Drag: Content script is injected by browser successfully [content_script.js:4:1](moz-extension://83286519-22bd-4348-b26b-6bd13ec6014c/content_scripts/content_script.js)
Error: WebExtension context not found!
[ExtensionParent.jsm:1039:13](resource://gre/modules/ExtensionParent.jsm)
Glitter Drag: loaded config from storage [content_script.js:1151:9](moz-extension://83286519-22bd-4348-b26b-6bd13ec6014c/content_scripts/content_script.js)
TAB_SIDE has not matched i18n message [common.js:337:9](moz-extension://83286519-22bd-4348-b26b-6bd13ec6014c/common.js)
SecurityError: The operation is insecure. [api.js:153](https://192.168.2.170:8123/local/tileboard/scripts/models/api.js)
<unavailable> [angular.min.js:125:278](https://192.168.2.170:8123/local/tileboard/scripts/vendors/angular.min.js)
XrayWrapper denied access to property "wrappedJSObject" (reason: value shadows a property on the standard prototype). See https://developer.mozilla.org/en-US/docs/Xray_vision for more information. Note that only the first denied property access from a given global object will be reported. [content-process-forward.js:54:10](resource://devtools/server/actors/webconsole/content-process-forward.js)
I’ve used the class: feature in switch files to give a different CSS class to the whole tile, but I’d like to change the CSS of a TEXT_LIST field if this is possible?
Has anyone got their tileboard config on github?
It would be really useful for us non-coders to look at how others have got things working. Thanks in advance!
Ok, I’ve fixed my own issue, it turns out I can simply put my CSS class into the icon field on text lists, all I wanted to do was for the light bulb icon to change colour depending of it’s state.
here’s my function which gives me the icon for the text fields:
function light_icon(state) {
var icon;
switch(state) {
case "on":
icon = "mdi-lightbulb bulb-fade-on";
break;
case "off":
icon = "mdi-lightbulb bulb-fade-off";
break;
default:
icon = "mdi-alert-circle-outline";
break;
}
return icon;
}
I can then use .bulb-fade-on CSS class to change the icon appearence in the text list.
mathewtaylor2007: I have mine on bitbucket, but it wouldn’t really be any more helpful than the example already up on github.
I’m not really a coder by trade, I just change bits and using trial and error and see if it works or not!
one more question regarding safety: My HA installation is accessible from the internet at the port 8123, i use it for the iOS App and to log into the web ui directly. But Ha itsels is secured by the api key and user/password.
but now tileboard is accessible at the same port but doesn’t have any access control, does ist?
How do you get around this problem?
TileBoard is JUST an HTML page. If you don’t specify a long-lived password within the config, than TileBoard will redirect you to HA’s login page and a token will be saved in localStorage and refreshed whenever it is about to expire.
@ nickcj: Thanks. I just figured out that i could just put tileboard on a different web server (in my case on a qnap) which does allow access control via htaccess and additionally is not exposed to the internet. Seems to work fine