Page 147 of 184

Forecast day parameter

Posted: Monday 06 November 2017 14:50
by Lexfontes
Hi,

I look for the variable or the parameter that allows to define the number of forecast days.

Can someone help me ?

Thanks

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 10:27
by Justinn
Hello,
Is there a possibility to make dashticz only accesible with password from external so another network than home network?
And that you dont need it when you are in the network. Because when i create dashticz now you can just go to ip:port/directory/ and you will be in the dashboard withput any protection.

Best reagrds justinn

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 10:30
by blacksn0w
Justinn wrote: Tuesday 07 November 2017 10:27 Hello,
Is there a possibility to make dashticz only accesible with password from external so another network than home network?
And that you dont need it when you are in the network. Because when i create dashticz now you can just go to ip:port/directory/ and you will be in the dashboard withput any protection.

Best reagrds justinn
Are you using the Domoticz Webserver or a dedicated one like nginx or Apache? You are able to protect it with an .htaccess file if you are using Apache for example.

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 11:41
by Haringstad
First of all: @robgeerts: Thank you very, very much for your efforts! I do love your work!

I've been evaluating Dashticz for a couple of weeks now, and I have a very extensive set build. And yes, it takes some effort to figure out stuff and get stuff working.

There are a couple of things that might be on the WiKi page:
  • Remove the /* and */ from the example CONFIG_DEFAULT.js before you start edit this file. Or mention this in BOLD on the Wiki and/or in the header of the file?
  • Please remember, that when you are on a Dualstack (IPv4 & IPv6), you might need to login to Domoticz first, and then start Dashticz, due to the fact that Domoticz does not (yet) has proper support to define IPv6 addresses as trusted addresses.
  • List the Thermostats that are not (yet) working in Dashticz. (I cannot seem to get my Honeywell Evo working, maybe my bad.....)

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 12:45
by Justinn
[/quote]
Are you using the Domoticz Webserver or a dedicated one like nginx or Apache? You are able to protect it with an .htaccess file if you are using Apache for example.
[/quote]

I am using domoticz webserver but I think i will try apache than. Is it also possible in apache to let internal ips for free access without logging in and from external access with log in?

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 19:06
by sailmich
@robgeerts
Hello, my blinds percentage are shown as blinds without positioning. When I change them within Domoticz to blinds percentage inverted I will get a nice slider. But the direction is wrong. Around page 26 there was already a discussion but I couldn't find solution. I use Fibaro roller shutter 2 controler and one philio controler. According to my experience inverted is just needed when the wires connect to the controlers are crossed, so just swap the cables and no need for inverted anylonger. The stop button could be necessary and depends on settings in controler configuration toggle/momentary/single momentary.
Please could you add the slider for blinds percentage?
I like the handling in Domoticz where you just hit the icons to open or close the blinds, instead of arrows up and down. Is that possible to add this to?

Thanks for your great pice of coding

Mike

Blinds percentage.png
Blinds percentage.png (14.94 KiB) Viewed 1966 times
Blinds percentage inverted.png
Blinds percentage inverted.png (12.81 KiB) Viewed 1966 times

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 19:26
by FrankDutch
the system is runneing but the buttons from domoticz ara not showing up. loading is on that position.
this is the rule. What could be wrong?
config['domoticz_ip'] = 'http://test:[email protected]:8090';

Re: Dashticz - General Discussions

Posted: Tuesday 07 November 2017 19:50
by Justinn
Hello,

I just tried installing dashticz on apache webserver like someone said before and I am able to access dashticz using the ip and directory but there is no connection with domoticz. I know for sure that I have the right ip because it was working when it was in the domoticz directory.

Hope someone knows the problem and a fix.

Best regards Justinn

Re: Dashticz - General Discussions

Posted: Wednesday 08 November 2017 12:52
by Trigun
Justinn wrote:Hello,
Is there a possibility to make dashticz only accesible with password from external so another network than home network?
And that you dont need it when you are in the network. Because when i create dashticz now you can just go to ip:port/directory/ and you will be in the dashboard withput any protection.

Best reagrds justinn
I agree, I would love this to be an option within dashticz. Perhaps a feature request, @robgeerts?


Sent from my iPhone using Tapatalk

Re: Dashticz - General Discussions

Posted: Wednesday 08 November 2017 20:09
by sailmich
Hello,
is it possible to add Blinds Percentage to supported devices. As I'm not a coder im not sure but I found in main.js just support sliders for Inverted blinds.
I tried some changes in main.js without succes. So any help is needed.
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Closed",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "Z-Stick",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00002101",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2017-11-08 17:01:24",
"Level" : 100,
"LevelInt" : 100,
"MaxDimLevel" : 100,
"Name" : "Badezimmer",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Closed",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "Blinds Percentage",
"SwitchTypeVal" : 13,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "blinds",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "194"

Code: Select all

else if(device['SwitchType']=='Blinds Percentage Inverted'){
									html+='<div class="col-xs-2 col-icon">';
									   if(device['Status']=='Closed') html+='<img src="img/blinds_closed.png" class="off icon" />';
Thanks in advance

Re: Dashticz - General Discussions

Posted: Wednesday 08 November 2017 22:56
by robgeerts
@sailmich, please try latest version!
@ALL, sorry, I'm a little busy lately, its hard for me to keep up all requests.
Its better to add them to the github so I can manage them better: https://github.com/robgeerts/dashticz_v2

Re: Dashticz - General Discussions

Posted: Wednesday 08 November 2017 22:56
by robgeerts
MikeF wrote: Thursday 26 October 2017 16:36
MikeF wrote: Wednesday 25 October 2017 11:11In my dashboard I've got a LightwaveRF dimmer (Lighting 5), which uses 32 steps rather than the usual 16. This is handled OK by Domoticz, and the value set in Domoticz is shown correctly in Dashticz (max value shown is 96%).

Image
However, if I try to reduce the slider setting by 1 step (in Domoticz, this would take it down to 93%), in Dashticz it snaps down to 40% (and similarly for other settings).

Image

I suspect this is due to it having 32 steps rather than 16.
OK, I've managed to solve this: in main.js, after the 'if' statement in function getDevices starting with this line:

Code: Select all

	if(parseFloat(device['MaxDimLevel'])==100){
there needs to be a similar block of code which checks for MaxDimLevel = 32 for these devices, i.e.,

Code: Select all

	else  if(parseFloat(device['MaxDimLevel'])==32){
			$( ".slider"+device['idx'] ).slider({
				value:Math.ceil((device['Level']/100)*32),
				step: 1,
				min:2,
				max:32,
				slide: function( event, ui ) {
					sliding = true;
					slideDevice($(this).data('light'),ui.value);
				},
				change:function( event, ui ) {
					sliding = true;
					slideDevice($(this).data('light'),ui.value);
				},
				stop: function( event, ui ) {
					sliding = false;
				}
			});
I've amended my version of main.js, but it would be great if @robgeerts can incorporate this - beer tokens would be forthcoming! :D
Added to latest beta!

Re: Forecast day parameter

Posted: Wednesday 08 November 2017 22:59
by robgeerts
There's no variable for the number of days unfortunately..

Re: Where to get google maps api key ?

Posted: Wednesday 08 November 2017 23:04
by robgeerts
The vars are still needed to show the maps..

Re: Full screen on IPAD when using spotify

Posted: Wednesday 08 November 2017 23:09
by robgeerts
On the ipad, you can pin a webpage to the homescreen.... (im not using ipad so dont know how to do this exactly, but google it and you will find)

Re: Dashticz - General Discussions

Posted: Wednesday 08 November 2017 23:15
by htilburgs
Rob, maybe I overlooked it, but is there a way to show the % for the blinds?

Re: Dashticz - General Discussions

Posted: Wednesday 08 November 2017 23:49
by sailmich
@robgeerts
I tried to update via git pull and got.

Code: Select all

error: Your local changes to the following files would be overwritten by merge:
	js/main.js
Please, commit your changes or stash them before you can merge.]
I just took main.js but then I got Domoticz offline message. I put my old main.js back and Domoticz was online. Compare your new main.js with old one. Old 74,6 kB new 68,8 kB? I assume when something added the file must be bigger, so maybe something went wrong.

Re: Dashticz - General Discussions

Posted: Thursday 09 November 2017 8:25
by robgeerts
@htilburgs, do you have json-output of a blinds-device for me?
@sailmich, I removed some code for debugging purposes, so thats why it is smaller...

Test latest BETA by pulling it in a new folder.

Re: Dashticz - General Discussions

Posted: Thursday 09 November 2017 9:37
by htilburgs
@robgeerts:

Code: Select all

 {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Set Level: 40 %",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "Aeon Labs Z-Stick GEN5",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000201",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-11-09 07:53:41",
         "Level" : 40,
         "LevelInt" : 40,
         "MaxDimLevel" : 100,
         "Name" : "Rolluik Woonkamer",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 40 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Blinds Percentage",
         "SwitchTypeVal" : 13,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "blinds",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "741",
         "YOffset" : "287",
         "idx" : "6"
      }

Re: Dashticz - General Discussions

Posted: Thursday 09 November 2017 9:56
by sailmich
@robgeerts
No changes still no slider for Blinds percentage.