I’m using tileboard on always-on ipad.
I do have a lighting sensor in the same room.
I’m looking for a way to change the brightness of the tileboard depends on lighting sensor.
The most easiest way is to put some black overlay on the entire screen with changeable transparency.
Any chance you can suggest how it can be done?
I did. (btw, forgive me if I’m posting in the wrong thread. I didnt see a PM option.). I think my real question is simply around hardware. the config appears simple with the IP address reference. of course there are two for the MCA, device and media player. Assuming it’s the device. But I’m unclear on whether the system can communicate with the Russound via its network connection (ethernet) port, or if there is some additional connection required. (TCP to serial converter plugged into serial port of device? some alternative plugged into RNET port?). Thanks again for the help.
No it works simply via PC. You add the device, but functions like a media player. You can select sources, turn it off and on and adjust volume. I’ll paste my config once I can sit at my PC
Changing opacity of the overlay is not the same as changing brightness. Why not set automatic brightness of screen in settings of iPad? iPad has its own ambient light sensor.
Auto brightness is different and not user-controllable.
Regarding the layer/overlay transparency - it’s not the same as changing brightness, but it’'s very near the same result…
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!