Page 2 of 11

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 11:44
by safi78
Hi Guys,

It's probably more efficient if you add your suggestions, requests, etc to the 'issues' page of the project:

https://github.com/safi78/framb0ise/issues

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 12:21
by kniazio
I'll add the 'PushButton On' in a minute :)
Please add

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 12:25
by safi78
kniazio wrote: Please add
done

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 12:26
by safi78
The certificate issue with crossorigin.me is fixed as well, so Darksky should work as normal.

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 12:59
by jvdz
tontze wrote: But, on my setup, blinds just shows its tate, no control buttons :)
I had a try today as well and really like this approach!
I've made a fix for the Blinds as I saw the same thing and this also takes the device.MaxDimLevel into account to avoid getting a percentage problem.
Just edit framboise.js and replace/insert these lines:

Code: Select all

	
	case "Dimmer":
		if (device.Data == 'Off') {
			switchClass = 'btn btn-success btn-primary glyphicon glyphicon-off active';
		} else {
			switchClass = 'btn btn-warning btn-primary glyphicon glyphicon-off active';
		}
		$("#td-" + device.idx).html('<div class="slider-div"><input type="text" id="slider-' + device.idx + '" data-slider-value="' + device.LevelInt + '" data-slider-min="0" data-slider-max="' + device.MaxDimLevel + '" data-slider-tooltip="hide" />&nbsp;&nbsp;&nbsp;<button class="'+switchClass+'" Onclick="switchLight(' + device.idx + ')"></button></div>');
		$("#slider-" + device.idx).slider();
		$("#slider-" + device.idx).on("slideStop", function(slideEvt) {
			setDimmer(device.idx, slideEvt.value);
		});
		break;
	case "Blinds Percentage":
		if (device.Data == 'Open') {
			switchClass = 'btn btn-success btn-primary glyphicon glyphicon-off active';
		} else {
			switchClass = 'btn btn-warning btn-primary glyphicon glyphicon-off active';
		}
		$("#td-" + device.idx).html('<div class="slider-div"><input type="text" id="slider-' + device.idx + '" data-slider-value="' + device.LevelInt + '" data-slider-min="0" data-slider-max="' + device.MaxDimLevel + '" data-slider-step="1" data-slider-tooltip="hide" />&nbsp;&nbsp;&nbsp;<button class="'+switchClass+'" Onclick="switchLight(' + device.idx + ')"></button></div>');
		$("#slider-" + device.idx).slider();
		$("#slider-" + device.idx).on("slideStop", function(slideEvt) {
			setDimmer(device.idx, slideEvt.value);
		});
		break;
	case "Motion Sensor":
@safi78, maybe you can update your version or do you want me to create a pull request? (I am new to git, but used to CVS/SVN)

Jos

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 13:06
by safi78
Hi jvdz,

Thanks, added!

I think in the future pull requests are better. Still trying to get used to Github myself as well ;)

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 13:29
by jvdz
safi78 wrote: I think in the future pull requests are better. Still trying to get used to Github myself as well ;)
Will do some searching for a dummies guide to GIT and reading on how this needs to be done as it seems to work quite differently from CVS/SVN versioning.

Jos

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 13:31
by safi78
jvdz wrote:
safi78 wrote: I think in the future pull requests are better. Still trying to get used to Github myself as well ;)
Will do some searching for a dummies guide to GIT and reading on how this needs to be done as it seems to work quite differently from CVS/SVN versioning.

Jos
This was useful for me: https://github.com/Roshanjossey/first-c ... /README.md

It's a 'devious' process for starters ... lol

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 14:31
by safi78
added 'Smoke Detectors'.

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 15:47
by Maikie
It could be me but I cannot get it to work. This is what I did to install

1. Open a putty connection to raspberry and browse to my domoticz / www folder
2. From there I ran the command - git clone https://github.com/safi78/framb0ise
3. After that finished I opened the framb0ise folder and nano the config.js file. (The file was ampty and I added the link to my domoticz)

When I now browse to my domoticz url with /framb0ise I get the domoticz offline message.

What did I do wrong?

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 16:04
by andi216
I have a FA20RF smoke detector.
In page icon smoke detector does not change the status (is red) even if the sensor is on or off.

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 16:24
by jvdz
Maikie wrote: When I now browse to my domoticz url with /framb0ise I get the domoticz offline message.

What did I do wrong?
I had the same and had to add /index.html to the end of the url.

Jos

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 16:27
by Maikie
jvdz wrote:
Maikie wrote: When I now browse to my domoticz url with /framb0ise I get the domoticz offline message.

What did I do wrong?
I had the same and had to add /index.html to the end of the url.

Jos
That indeed did the trick, thanks!

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:03
by safi78
andi216 wrote:I have a FA20RF smoke detector.
In page icon smoke detector does not change the status (is red) even if the sensor is on or off.
Hmm. that's weird. What doest the 'Status' in domoticz say?

Doest it say "Normal" or "On"? Maybe I made a mistake there.

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:07
by kniazio
Gentlemen.
Do not you think it should be the other way round :)

Button XBox-1 should be green

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:18
by safi78
kniazio wrote:Gentlemen.
Do not you think it should be the other way round :)

Button XBox-1 should be green
makes sense. Try the new update ;)

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:20
by andi216
Hmm. that's weird. What doest the 'Status' in domoticz say?

Doest it say "Normal" or "On"? Maybe I made a mistake there.
I've refreshed the page too

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:22
by safi78
Thanks, mine say "Normal' instead of 'Off', i'll change that right away.

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:25
by safi78
andi216 wrote:I have a FA20RF smoke detector.
In page icon smoke detector does not change the status (is red) even if the sensor is on or off.
can you test the new version?

Re: framb0ise v2 - awesome new dashboard!

Posted: Sunday 23 April 2017 17:33
by andi216
can you test the new version?
Nothing changed :(