SwordFish wrote:@robgeerts
Is it possible to add the colorcode for overriding the color off the slidernob in the custum css?
I though i had it but it didn't work.
SwordFish wrote:
Sorry for the late reaction, but yes thats the script. I removed the part wich said "binnen 15 minuten".
Also in my domoticz its a text idx (53) not a switch.
Got it working, sort of
Only the wrong icon, could you send me the output of this device?
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
SwordFish wrote:@robgeerts
Is it possible to add the colorcode for overriding the color off the slidernob in the custum css?
I though i had it but it didn't work.
koowee wrote:
When you uncomment CUSTOM POSITIONING part, did you also remove text CUSTOM POSITIONING or add // before it (//CUSTOM POSITIONING)?
Excellent point, boy do I feel stupid now...
Ok, page loads again, but I cannot still show any customized stuff (yes, I'm prepared to look stupid again ). If set _use_favorites = false I get all the devices I have (but no custom stuff I tied to add). If I set _use_auto_positioning = false I get only weather, clock and camera (no custom stuff). I tried to add some title blocks and a few devices under the tile but looks as though they are just ignored. How should these parameters (auto positioning, favorites) be used together with the custom items? What could be the reason? Some weird stuff in the console again, but does not seem related to this.
SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there's another switch with text.
Last edited by HansieNL on Thursday 13 April 2017 9:47, edited 1 time in total.
koowee wrote:
When you uncomment CUSTOM POSITIONING part, did you also remove text CUSTOM POSITIONING or add // before it (//CUSTOM POSITIONING)?
Excellent point, boy do I feel stupid now...
Ok, page loads again, but I cannot still show any customized stuff (yes, I'm prepared to look stupid again ). If set _use_favorites = false I get all the devices I have (but no custom stuff I tied to add). If I set _use_auto_positioning = false I get only weather, clock and camera (no custom stuff). I tried to add some title blocks and a few devices under the tile but looks as though they are just ignored. How should these parameters (auto positioning, favorites) be used together with the custom items? What could be the reason? Some weird stuff in the console again, but does not seem related to this.
SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there another switch with text.
For some reason you get the switch icon instead of rain icon.
Wait, I know the reason.... please send me your output of these 2 devices
SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there another switch with text.
Oké, I only have a text box. But the textbox has a IDX?
SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there another switch with text.
Oké, I only have a text box. But the textbox has a IDX?
Verzonden vanaf mijn iPhone met Tapatalk
As far as I know every device has a IDX in Domoticz. So your textbox should have a IDX too.
robgeerts wrote:
Whats the contents of your config.js?
I started out with the default and just removed the idx I didn't have. Then I kept removing more stuff thinking I should get at least something simple to work So now it is reduced to this:
//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default
var blocks = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Lights';
//defining number of columns, their contents en widths
//width can be a number 1 to 12, but total widths of all columns should always be 12
var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',114,115,116]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['clock','sunrise']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise']
columns[3]['width'] = 2;
//if you want to use multiple screens, use the code below:
//var screens = {}
//screens[1] = {}
//screens[1]['background'] = 'bg1.jpg';
//screens[1]['columns'] = [1,2,3]
//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['columns'] = [4,5,6]
var _USE_AUTO_POSITIONING = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
Changing auto positioning to false will remove everything except weather, clock, sunrise & camera. Like this it will show all switches I have.
SwordFish wrote:Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
That's not strange. The texbox is just giving you the info extracted from the download. If you set a treshhold you can trigger a real switch to alarm you when it's gonna rain. And from there you can trigger other switches. I hope it's clear to you now?
Only the wrong icon, could you send me the output of this device?
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
SwordFish wrote:Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
That's not strange. The texbox is just giving you the info extracted from the download. If you set a treshhold you can trigger a real switch to alarm you when it's gonna rain. And from there you can trigger other switches. I hope it's clear to you now?
I know how it works, but it's strange that we used the same script and I get the text output when used the idx for the text and someone else the switch output.
@EdKo66 are you sure this is the right IDX for this switch? Looks like the picture is the on/off switch and the data output looks like the text device to me.
SwordFish wrote:
I know how it works, but it's strange that we used the same script and I get the text output when used the idx for the text and someone else the switch output.
Verzonden vanaf mijn iPhone met Tapatalk
Ahhhh... Now I understand what you exactly means. See my post to EdKo66.
I use the same rainscript but i dont have the switch with text, i never got this to work, can you explain how you got this to work?
Or do i just have to create a text switch with "Rain expected"? Beacause when i do that i only get "Hello world"
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
SwordFish wrote:Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
That's not strange. The texbox is just giving you the info extracted from the download. If you set a treshhold you can trigger a real switch to alarm you when it's gonna rain. And from there you can trigger other switches. I hope it's clear to you now?
I know how it works, but it's strange that we used the same script and I get the text output when used the idx for the text and someone else the switch output.
Verzonden vanaf mijn iPhone met Tapatalk
I did update the dashboard. Just to be sure.. But still there is a 'switch' box instead of a text box.
Strange....
HansieNL wrote:@EdKo66 are you sure this is the right IDX for this switch? Looks like the picture is the on/off switch and the data output looks like the text device to me.
That is what's confusing me atm.
I created a text device, with IDX 113 .
When I return from the evil that is grocery-shopping, I will take another look at the scripts in that topic and see what I can do.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts wrote:
Whats the contents of your config.js?
I started out with the default and just removed the idx I didn't have. Then I kept removing more stuff thinking I should get at least something simple to work So now it is reduced to this:
//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default
var blocks = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Lights';
//defining number of columns, their contents en widths
//width can be a number 1 to 12, but total widths of all columns should always be 12
var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',114,115,116]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['clock','sunrise']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise']
columns[3]['width'] = 2;
//if you want to use multiple screens, use the code below:
//var screens = {}
//screens[1] = {}
//screens[1]['background'] = 'bg1.jpg';
//screens[1]['columns'] = [1,2,3]
//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['columns'] = [4,5,6]
Try to enable screens (one screen, it should show colums 1-3)