Page 77 of 184

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 21:55
by robgeerts
Sorry, that was @wizjos ;)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 22:35
by maluko
wow, i will honest, if we lost about 1 day without visit this excelent topic... must say where i start... :D :D

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 22:40
by Ierlandfan
Need addiction treatment!

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 22:40
by NicoLP
Hallo

wat moet ik allemaal aanmaken in Domoticz om de moon picture en percentages te krijgen
welke variabelen en welke virtual switches moet ik aanleggen ??

Mvg

Nico

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 22:55
by EdwinK
NicoLP wrote:Hallo

wat moet ik allemaal aanmaken in Domoticz om de moon picture en percentages te krijgen
welke variabelen en welke virtual switches moet ik aanleggen ??

Mvg

Nico
It;'s all in the post from 'Wizjos', but this is a recap of it
As you can see there are some (dummy)devices that need to be created in Domoticz.
2 uservariables:
- MoonPicture
- MoonphaseCheck
Both of type string...

and 5 devices:
idx; Hardware; Name; Type; Axislabel
124; DummySwitch; Moon up; Text
125; DummySwitch; Moonpercentage; Percentage
127; DummySwitch; Moon under; Text
131; DummySwitch; Moon age; Custom Sensor; Days
132; DummySwitch; Moonphase; Text
This is an English user forum, so please use the English language

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 22:56
by Nexst
very nice dashboard!! and so good describtion!

is there a way it can gather both temp and hum on some devices. i have both in some in domoticz.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 23:09
by robgeerts
I would say, try it out :)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 23:13
by robgeerts
In latest Beta branch on Github it is possible to add a link to a trafficmap and change the height of the map, example:

Code: Select all

maps.sonenbreugel = { height: 300, link:'http://www.ovzoeker.nl', width:12, latitude: 51.5322056, longitude: 5.4870054, zoom:10 }
Also, the Hungarian-language has been updated and the status of Blinds is now also visible.
You can either test the beta, or wait for the regular master update.
Regular updates in the master-branch are less frequent from now on. There are more and more people using this and pushing new versions to fast could cause more problems. But, again, if you still want fast updates, try the beta branch :)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 23:13
by maluko
i was seeing the dash of poudenes and think about this...

why we have the "open", "close", "On",etc when we can see the status on color of icon?

For the small screen would be better ;)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 23:28
by robgeerts
Well, you can already do something like this in custom.css:

Code: Select all

.fa.fa-lightbulb-o.on.icon{
	color:#FBEB9A
}
This changes the color of the bulbs when they have the ON-status...

When you add the following code to custom.js, it hides the status:

Code: Select all

function getExtendedBlockTypes(blocktypes){
	blocktypes.Type['Lighting 2'] = { icon: 'fa fa-lightbulb-o', title: '', value: '<Name>' }
	return blocktypes;
}

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 23:32
by robgeerts
htilburgs wrote: @Robgeerts, this is an option.
I think I've to rewrite the wiki, because Github uses an other format.
And you have to create the wiki, because it's your project ;) (I believe I cannot create a wiki if you not started one).
I just created the a new empty wiki, do you have access now?

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 26 April 2017 23:46
by NicoLP
i get an error on the moon lua script

Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_moon_phase.lua: /home/pi/domoticz/scripts/lua/script_time_moon_phase.lua:122: attempt to perform arithmetic on global 'percentIlluminated' (a nil value)


{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"astronomy": 1
}
}
, "moon_phase": {
"percentIlluminated":"0",
"ageOfMoon":"0",
"phaseofMoon":"New Moon",
"hemisphere":"North",
"current_time": {
"hour":"23",
"minute":"42"
},
"sunrise": {
"hour":"6",
"minute":"22"
},
"sunset": {
"hour":"20",
"minute":"58"
},
"moonrise": {
"hour":"6",
"minute":"49"
},
"moonset": {
"hour":"20",
"minute":"55"
}
},
"sun_phase": {
"sunrise": {
"hour":"6",
"minute":"22"
},
"sunset": {
"hour":"20",
"minute":"58"
}
}
}

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 0:00
by htilburgs
robgeerts wrote:
htilburgs wrote: @Robgeerts, this is an option.
I think I've to rewrite the wiki, because Github uses an other format.
And you have to create the wiki, because it's your project ;) (I believe I cannot create a wiki if you not started one).
I just created the a new empty wiki, do you have access now?
Yip... So my days are filled again.... :D :lol:

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 0:12
by TapNL
HansieNL wrote:
TapNL wrote:Just updated to the new version. Works brilliant. Happy with the different maps possible.
Everything is set to get a tablet on the wall or to get a touchscreen monitor with a pi connected.
I favour the last option.

@rob: thanks again.
MagicMirror² The open source modular smart mirror platform.
https://magicmirror.builders/
That is my next project. But for this one I only need a touch screen.
Ik zat aan zoiets te denken: http://bit.ly/2oKC5EZ

Maar dat is een discussie voor een ander forum

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 2:56
by HansieNL
I did install via CLI:
cd ~/domoticz/www
git clone https://github.com/robgeerts/dashticz_v2.git

I checked to update via CLI:
cd ~/domoticz/www/dashticz_v2
git pull

WARNING:
The name of the installation map of Dashticz is changed from dashboard to dashticz_v2. So update your links to the dashbord.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 8:21
by Nautilus
HansieNL wrote:I did install via CLI:
cd ~/domoticz/www
git clone https://github.com/robgeerts/dashticz_v2.git

I checked to update via CLI:
cd ~/domoticz/www/dashticz_v2
git pull

WARNING:
The name of the installation map of Dashticz is changed from dashboard to dashticz_v2. So update your links to the dashbord.
Thanks, haven't been using git too much, how would one specify to pull from the beta branch?

I think the moon rise and moonset is a nice addition, but it would be great if they could be fitted to the same block as sun rise and sunset, or what do you think? I haven't figured out any other logical place to show them :) Of course, if there is no nice way to fit this info there, then best to leave it as it is.

Thanks for the awesome dashboard! :)

edit: about the moon-related stuff, has anyone observed whether there is some info that is changing e.g. hourly or more often? Looking at the info available (rising, setting, age) I'd think it updates only once a day. Or is e.g. the "percent illuminated" something that changes over the course of night? If not, then I'd keep it updating only once or twice a day as my WU api key is used in other calls as well.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 8:27
by pkrabben
robgeerts wrote:Well, you can already do something like this in custom.css:

Code: Select all

.fa.fa-lightbulb-o.on.icon{
	color:#FBEB9A
}
This changes the color of the bulbs when they have the ON-status...

When you add the following code to custom.js, it hides the status:

Code: Select all

function getExtendedBlockTypes(blocktypes){
	blocktypes.Type['Lighting 2'] = { icon: 'fa fa-lightbulb-o', title: '', value: '<Name>' }
	return blocktypes;
}
If I use the second code it's hiding the status but also it's not a clickable box any more
so the box is only displaying information and can not be used as a switch.

Is there an option only to hide the status bt still keep the box as a switch

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 8:43
by htilburgs
HansieNL wrote:I did install via CLI:
cd ~/domoticz/www
git clone https://github.com/robgeerts/dashticz_v2.git

I checked to update via CLI:
cd ~/domoticz/www/dashticz_v2
git pull

WARNING:
The name of the installation map of Dashticz is changed from dashboard to dashticz_v2. So update your links to the dashbord.
When u use the following command, you can still install in the map 'dashboard' if you like:

Code: Select all

git clone https://github.com/robgeerts/dashticz_v2.git dashboard

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 8:53
by mAiden88
htilburgs wrote:
HansieNL wrote:I did install via CLI:
cd ~/domoticz/www
git clone https://github.com/robgeerts/dashticz_v2.git

I checked to update via CLI:
cd ~/domoticz/www/dashticz_v2
git pull

WARNING:
The name of the installation map of Dashticz is changed from dashboard to dashticz_v2. So update your links to the dashbord.
When u use the following command, you can still install in the map 'dashboard' if you like:

Code: Select all

git clone https://github.com/robgeerts/dashticz_v2.git dashboard
I have this in a bash script. A cronjob will run this 1 a day on 4am. When update is succes, pi will put my config in the map.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 27 April 2017 9:07
by htilburgs
Like to share?