Page 18 of 184

Re: New Dashboard Design

Posted: Wednesday 05 April 2017 21:42
by robgeerts
In the latest beta (see gitlab)
You dont have to define every block in de blocks-variable:

Code: Select all

blocks[204] = {}
ONLY if you dont want to use de default width:

Code: Select all

blocks[204] = {}
blocks[204]['width'] = 6;

Re: New Dashboard Design

Posted: Wednesday 05 April 2017 21:49
by SwordFish
Here you go
Setpoint

Code: Select all

{
   "ActTime" : 1491421162,
   "ServerTime" : "2017-04-05 21:39:22",
   "Sunrise" : "07:06",
   "Sunset" : "20:18",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "20.4",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 23,
         "HardwareName" : "NEST",
         "HardwareType" : "Nest Thermostat/Protect",
         "HardwareTypeVal" : 52,
         "HaveTimeout" : false,
         "ID" : "0000001",
         "LastUpdate" : "2017-04-05 21:38:53",
         "Name" : "Thermostaat ingesteld op",
         "Notifications" : "false",
         "PlanID" : "12",
         "PlanIDs" : [ 12 ],
         "Protected" : false,
         "SetPoint" : "20.4",
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "SetPoint",
         "Timers" : "false",
         "Type" : "Thermostat",
         "TypeImg" : "override_mini",
         "Unit" : 0,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "195"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}{
   "ActTime" : 1491421162,
   "ServerTime" : "2017-04-05 21:39:22",
   "Sunrise" : "07:06",
   "Sunset" : "20:18",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "20.4",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 23,
         "HardwareName" : "NEST",
         "HardwareType" : "Nest Thermostat/Protect",
         "HardwareTypeVal" : 52,
         "HaveTimeout" : false,
         "ID" : "0000001",
         "LastUpdate" : "2017-04-05 21:38:53",
         "Name" : "Thermostaat ingesteld op",
         "Notifications" : "false",
         "PlanID" : "12",
         "PlanIDs" : [ 12 ],
         "Protected" : false,
         "SetPoint" : "20.4",
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "SetPoint",
         "Timers" : "false",
         "Type" : "Thermostat",
         "TypeImg" : "override_mini",
         "Unit" : 0,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "195"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Temp and Humidity

Code: Select all

{
   "ActTime" : 1491421297,
   "ServerTime" : "2017-04-05 21:41:37",
   "Sunrise" : "07:06",
   "Sunset" : "20:18",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "20.0 C, 43 %",
         "Description" : "",
         "DewPoint" : "7.04",
         "Favorite" : 1,
         "HardwareID" : 23,
         "HardwareName" : "NEST",
         "HardwareType" : "Nest Thermostat/Protect",
         "HardwareTypeVal" : 52,
         "HaveTimeout" : false,
         "Humidity" : 43,
         "HumidityStatus" : "Comfortable",
         "ID" : "0002",
         "LastUpdate" : "2017-04-05 21:41:25",
         "Name" : "Woonkamer",
         "Notifications" : "true",
         "PlanID" : "12",
         "PlanIDs" : [ 12 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "WTGR800",
         "Temp" : 20.0,
         "Timers" : "false",
         "Type" : "Temp + Humidity",
         "TypeImg" : "temperature",
         "Unit" : 0,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "196"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}{
   "ActTime" : 1491421297,
   "ServerTime" : "2017-04-05 21:41:37",
   "Sunrise" : "07:06",
   "Sunset" : "20:18",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "20.0 C, 43 %",
         "Description" : "",
         "DewPoint" : "7.04",
         "Favorite" : 1,
         "HardwareID" : 23,
         "HardwareName" : "NEST",
         "HardwareType" : "Nest Thermostat/Protect",
         "HardwareTypeVal" : 52,
         "HaveTimeout" : false,
         "Humidity" : 43,
         "HumidityStatus" : "Comfortable",
         "ID" : "0002",
         "LastUpdate" : "2017-04-05 21:41:25",
         "Name" : "Woonkamer",
         "Notifications" : "true",
         "PlanID" : "12",
         "PlanIDs" : [ 12 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "WTGR800",
         "Temp" : 20.0,
         "Timers" : "false",
         "Type" : "Temp + Humidity",
         "TypeImg" : "temperature",
         "Unit" : 0,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "196"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Heating on/off

Code: Select all

{
   "ActTime" : 1491421622,
   "ServerTime" : "2017-04-05 21:47:02",
   "Sunrise" : "07:06",
   "Sunset" : "20:18",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "On",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 23,
         "HardwareName" : "NEST",
         "HardwareType" : "Nest Thermostat/Protect",
         "HardwareTypeVal" : 52,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000071",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-04-05 20:23:28",
         "Level" : 100,
         "LevelInt" : 15,
         "MaxDimLevel" : 15,
         "Name" : "Statenlaan Family Room HeatingOn",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "On",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 0,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "197"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
And Home/Away

Code: Select all

{
   "ActTime" : 1491421670,
   "ServerTime" : "2017-04-05 21:47:50",
   "Sunrise" : "07:06",
   "Sunset" : "20:18",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 23,
         "HardwareName" : "NEST",
         "HardwareType" : "Nest Thermostat/Protect",
         "HardwareTypeVal" : 52,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000003",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-28 16:40:20",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 15,
         "Name" : "Statenlaan Family Room Away",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 0,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "198"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
The last 2 i haven't tested yet

Re: New Dashboard Design

Posted: Wednesday 05 April 2017 22:18
by HansieNL
Did something change in latest Beta (dashboard (2).zip)?
The Venz M9 button should be next to Mede8er button. It was ok in 1st beta. (dashboard.zip). CONFIG.js is not changed.
Image

Will it be possible in future version to add custom icons and text?

Re: New Dashboard Design

Posted: Wednesday 05 April 2017 22:46
by robgeerts
SwordFish wrote:Here you go
The last 2 i haven't tested yet
heggink wrote:Nest:
-------------

Dummy P1 device:
----------
This is what I get in the latest BETA.
Image

HansieNL wrote:Did something change in latest Beta (dashboard (2).zip)?
The Venz M9 button should be next to Mede8er button. It was ok in 1st beta. (dashboard.zip). CONFIG.js is not changed.
Hmm weird... could you send me your current config (only the blocks/columns part) and the output of Venz M9?
HansieNL wrote: Will it be possible in future version to add custom icons and text?
Yes, that's the plan :)

Re: New Dashboard Design

Posted: Thursday 06 April 2017 0:25
by whiteduck
Thanks Rob - looking really good now with sunrise/sunset, the lux icon and the improved energy use.

There is still a gap with the Energy and Energy today shown the following as you don't know what has used the energy :)
9.png
9.png (185.9 KiB) Viewed 2143 times
Thanks a lot
Ian

Re: New Dashboard Design

Posted: Thursday 06 April 2017 9:13
by SwordFish
robgeerts wrote:
SwordFish wrote:Here you go
The last 2 i haven't tested yet
heggink wrote:Nest:
-------------

Dummy P1 device:
----------
This is what I get in the latest BETA.
Image
Looks good.

Re: New Dashboard Design

Posted: Thursday 06 April 2017 9:15
by SwordFish
is it possible to change the textsize and image from the currentweather?
I want to replace "weersvoorspelling" with the currentweather

Re: New Dashboard Design

Posted: Thursday 06 April 2017 9:20
by robgeerts
whiteduck wrote:Thanks Rob - looking really good now with sunrise/sunset, the lux icon and the improved energy use.

There is still a gap with the Energy and Energy today shown the following as you don't know what has used the energy :)
9.png

Thanks a lot
Ian
I've tested with some of your device.
Do you want something like:
Image

This is the result in the latest version wich I will publish later today.

Re: New Dashboard Design

Posted: Thursday 06 April 2017 9:33
by robgeerts
SwordFish wrote:is it possible to change the textsize and image from the currentweather?
I want to replace "weersvoorspelling" with the currentweather
This will be possible in latest version, publishing today/tonight:
Image

Re: New Dashboard Design

Posted: Thursday 06 April 2017 9:37
by SwordFish
robgeerts wrote:
SwordFish wrote:is it possible to change the textsize and image from the currentweather?
I want to replace "weersvoorspelling" with the currentweather
This will be possible in latest version, publishing today/tonight:
Image
Thanks man

Re: New Dashboard Design v2

Posted: Thursday 06 April 2017 10:03
by robgeerts
LATEST VERSION ON GITLAB!
In this version its possible to set a custom position per block!
BACKUP YOUR CURRENT DASHBOARD.

Please share a screenshot when done configuring :)

Re: New Dashboard Design

Posted: Thursday 06 April 2017 10:17
by robgeerts
SwordFish wrote: Thanks man
Checkout the latest version in gitlab.
Use 'currentweather_big' in config js, example:

Code: Select all

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',5,145,97];
columns[2]['width'] = 5; 

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 10:29
by SwordFish
Thanks for the big weather.
I just move this dashboard to my pi so that it displayed on my Tab 3 but it is verry small :?

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 10:32
by robgeerts
It look likes your zoomed out or something..
What if you zoom in?

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 11:07
by EdwinK
Image

This is how it looks atm. Just put some of the KaKu/CoCo switches in there so it doesn;'t look too empty :)

next thing is to put it to work on my Tab3, but that would be for some other day.

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 11:14
by SwordFish
My fault, i did set the initial-scale to 0,5 last night and i forgot that i did it :oops:
But is it possible to make 2 columns in this view instead of one?

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 11:50
by SwordFish
I just downloaded the last version with auto position.
But when i set it to false and set use favorites to false or true and removed the quote's to custom positioning i get a white screen as dashboard.
When i set auto position to true and use favorites to true and out quote custom positioning it is working?

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 11:55
by robgeerts
SwordFish wrote:I just downloaded the last version with auto position.
But when i set it to false and set use favorites to false or true and removed the quote's to custom positioning i get a white screen as dashboard.
When i set auto position to true and use favorites to true and out quote custom positioning it is working?
Could you show me a screenshot of the console-window (F12) ?

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 12:35
by SwordFish
robgeerts wrote:
SwordFish wrote:I just downloaded the last version with auto position.
But when i set it to false and set use favorites to false or true and removed the quote's to custom positioning i get a white screen as dashboard.
When i set auto position to true and use favorites to true and out quote custom positioning it is working?
Could you show me a screenshot of the console-window (F12) ?
Found the problem. I had to quote out the text "CUSTOM POSITIONING:" in the config file.

Re: New Dashboard Design v2, with custom positioning

Posted: Thursday 06 April 2017 14:14
by heggink
Hey Rob,

I kind of lost track of how the new template is supposed to work with the blocks and all (I was pretty happy with the default behaviour). Any chance you can explain a bit in the README how to configure this? I installed the version of yesterday evening but didn't entirely get how it is supposed to work.
I can confirm that the Thermostats work as well as the dummy p1 so many thanks for that. Looks really nice! Well done.
H