Dashticz - Show your dashboard and how-to's!

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by pkrabben »

HansieNL wrote:Nothing special. I made only the background metal a lot darker and created some custom icons.
picture-017.jpg
tv.png
sleep.png
Nice Dashboard
I assume you do the desktop and notebook detection based on IP address / ping.
Can you share that code with me because I'm not able to get this working in my Domoticz.
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by htilburgs »

Image

Work in progress....;)

CONFIG.js
Spoiler: show
var _HOST_ZIGGO_HORIZON = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND = 'xxxxxxxxx';
var _WEATHER_CITY = 'Eindhoven';
var _WEATHER_CITYNAME = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = false; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED = 'https://crossorigin.me/http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = true; //Bft instead of m/s
var _TRANSLATE_SPEED = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER = 9000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE = false;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

// Online Radio Stream Plugin, Note: you must enable plugin in column section 'streamplayer'
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
{"track":2,"name":"Radio 538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
{"track":3,"name":"Arrow Classic Rock","file":"http://www.garnierstreamingmedia.com/as ... stream=205"},
{"track":4,"name":"Radio Veronica","file":"http://live.icecast.kpnstreaming.nl/sky ... GSTR09.mp3"},
{"track":5,"name":"Q-music","file":"http://live.icecast.kpnstreaming.nl/omr ... bantHq.m3u"},
];

var buttons = {}
buttons.buienradar = {width:4, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/Rada ... =285&h=256', url: 'https://gadgets.buienradar.nl/gadget/zo ... e=3&voor=1"'}
buttons.radio = {width:4, icon: 'fa-music', title: ' Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:4, icon: 'fa-newspaper-o', title: ' Nu.nl', url: 'http://www.nu.nl'}
/*buttons.radio = {width:4, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}*/

//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 = {}

//Groepen & Scenes
blocks['s1'] = {} //Groep - Lampen boven
blocks['s1']['width'] = 6; //1 to 12, remove this line if you want to use the default (4)

blocks['s2'] = {} //Groep - Lampen huiskamer
blocks['s2']['width'] = 6;

blocks['s3'] = {} //Groep - Rolluik 1/2
blocks['s3']['width'] = 6;
blocks['s3']['icon'] = 'fa-align-justify';

blocks['s4'] = {} //Groep - Huiskamer 1/2
blocks['s4']['width'] = 6;

//Schakelaars
blocks[6] = {} //dimmer - rolluik woonkamer
blocks[6]['width'] = 6;
blocks[6]['hide_stop'] = true;

blocks[46] = {} //dimmer - lamp zolder
blocks[46]['width'] = 6;

blocks[70] = {} //dimmer - lamp overloop
blocks[70]['width'] = 6;

blocks[193] = {} //dimmer - woonkamer voor
blocks[193]['width'] = 6;

blocks[179] = {} //dimmer - woonkamer achter
blocks[179]['width'] = 6;

//Overige
blocks[1] = {} //Memory
blocks[1]['width'] = 6;
blocks[1]['icon'] = 'fa-line-chart';

blocks[4] = {} //Pi Temperatuur
blocks[4]['width'] = 6;
blocks[4]['icon'] = 'fa-thermometer-1';

blocks[5] = {} //CPU
blocks[5]['width'] = 6;
blocks[5]['icon'] = 'fa-line-chart';

blocks[178] = {} //Regen verwachting
blocks[178]['width'] = 12;

blocks[151] = {} //iPhone Batterij Harm
blocks[151]['width'] = 6;

blocks[152] = {} //iPhone Batterij Nassira
blocks[152]['width'] = 6;

blocks[150] = {} //iPhone Harm
blocks[150]['width'] = 6;
blocks[150]['icon'] = 'fa-mobile'

blocks[153] = {} //iPhone Nassira
blocks[153]['width'] = 6;
blocks[153]['icon'] = 'fa-mobile'

blocks['27_1'] = {}
blocks['27_1']['width'] = 12;
blocks['27_1']['title'] = 'Temperatuur'

blocks['27_2'] = {}
blocks['27_2']['width'] = 12;
blocks['27_2']['title'] = 'Luchtvochtigheid'

blocks['27_3'] = {}
blocks['27_3']['width'] = 12;
blocks['27_3']['title'] = 'Barometer'

//Titels
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Scenes';

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Schakelaars';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Systeem Devices';

blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Informatie';

blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Radio';

blocks['blocktitle_6'] = {}
blocks['blocktitle_6']['type'] = 'blocktitle';
blocks['blocktitle_6']['title'] = 'iPhone';


// Kolommen
var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','s1','s2','s3','s4','blocktitle_2',46,70,179,193,6]
columns[1]['width'] = 6;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_3',1,5,4,'blocktitle_6',151,152,150,153,'blocktitle_4','news']
columns[2]['width'] = 4;

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise', 'currentweather_big',178,'blocktitle_5','streamplayer']
columns[3]['width'] = 2;

columns[4] = {}
columns[4]['blocks'] = ['currentweather_big','weather', 27]
columns[4]['width'] = 6;

columns[5] = {}
columns[5]['blocks'] = [buttons.buienradar, buttons.radio, buttons.nunl]
columns[5]['width'] = 6;

//Standby
var columns_standby = {}

columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','currentweather_big','weather',178,1,4,5,'streamplayer']
columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
var screens = {}

screens[1] = {}
screens[1]['background'] = 'bg10.jpg';
screens[1]['background_night'] = 'bg12.jpg';
screens[1]['columns'] = [1,2,3]

screens[2] = {}
screens[2]['background'] = 'bg10.jpg';
screens[2]['background_night'] = 'bg12.jpg';
screens[2]['columns'] = [4,5]
custom.css
Spoiler: show
/*
CUSTOM CSS FILE
*/

/* Modifications to the fa en wi font family*/
.fa.fa-lightbulb-o.on {
color: rgba(255,255,0,1.0)
}
.fa.fa-lightbulb-o.off {
color:#fff;
}
.fa.fa-mobile.on.icon {
font-size: 30px !important;
color: green;
}
.fa.fa-mobile.off.icon {
font-size: 30px !important;
}


/* Fontsize buttons Blinds */
.fa,.wi {
font-size:20px !important;
}

/* Background blocks */
.transbg.col-xs-1,
.transbg.col-xs-2,
.transbg.col-xs-3,
.transbg.col-xs-4,
.transbg.col-xs-5,
.transbg.col-xs-6,
.transbg.col-xs-7,
.transbg.col-xs-8,
.transbg.col-xs-9,
.transbg.col-xs-10,
.transbg.col-xs-11,
.transbg.col-xs-12 {
padding-top:15px;
padding-bottom:15px;
border: 7px solid rgba(255,255,255,0);
background: rgba(0,0,0,0.2);
background-clip: padding-box;
border-radius: 25px; /* Round corners */
}

/* Block Title */
h1, h2, h3, h4, h5, h6 {
font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
margin: 0px;
margin-left: 15px;
font-weight: 900;
font-size: 300%;
}

.smalltitle h3 {
font-size: 12px !important;
margin-left: 6px;
}

/* Title of tile */
.title {
font-size:15px;
}

/* Standby screen */
.standby .clock{
font-size:60px !important;
}
.standby .weekday,.standby .date{
font-size:40px !important;
}

/* Swiper bullet */
.swiper-pagination-bullet {
width: 30px;
height: 30px;
background: white;
}

/* Up-Down arrow Blinds */
.input-groupBtn li {
position:sticky;
z-index: 9999;
right: 1px;
border-radius: 25px; /* Round corners */
}

/* Transparent Background for arrow Blinds - Big Screen */
.input-groupBtn.input-chevron .btn-number {
padding: 5px 10px 5px 10px;
background-color: transparent;
}

/* Transparent Background for arrow Blinds - Small Screen */
@media only screen and (max-width: 1400px) {
.input-groupBtn.input-chevron .btn-number {
padding: 7px 10px 7px 10px;
background-color: transparent;
}
}
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by robgeerts »

Nice fresh background :)
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by htilburgs »

Thnx... at night I've an other background ;)

Image
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by poudenes »

htilburgs wrote:Image

Work in progress....;)

CONFIG.js
Spoiler: show
var _HOST_ZIGGO_HORIZON = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND = 'xxxxxxxxx';
var _WEATHER_CITY = 'Eindhoven';
var _WEATHER_CITYNAME = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = false; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED = 'https://crossorigin.me/http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = true; //Bft instead of m/s
var _TRANSLATE_SPEED = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER = 9000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE = false;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

// Online Radio Stream Plugin, Note: you must enable plugin in column section 'streamplayer'
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
{"track":2,"name":"Radio 538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
{"track":3,"name":"Arrow Classic Rock","file":"http://www.garnierstreamingmedia.com/as ... stream=205"},
{"track":4,"name":"Radio Veronica","file":"http://live.icecast.kpnstreaming.nl/sky ... GSTR09.mp3"},
{"track":5,"name":"Q-music","file":"http://live.icecast.kpnstreaming.nl/omr ... bantHq.m3u"},
];

var buttons = {}
buttons.buienradar = {width:4, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/Rada ... =285&h=256', url: 'https://gadgets.buienradar.nl/gadget/zo ... e=3&voor=1"'}
buttons.radio = {width:4, icon: 'fa-music', title: ' Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:4, icon: 'fa-newspaper-o', title: ' Nu.nl', url: 'http://www.nu.nl'}
/*buttons.radio = {width:4, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}*/

//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 = {}

//Groepen & Scenes
blocks['s1'] = {} //Groep - Lampen boven
blocks['s1']['width'] = 6; //1 to 12, remove this line if you want to use the default (4)

blocks['s2'] = {} //Groep - Lampen huiskamer
blocks['s2']['width'] = 6;

blocks['s3'] = {} //Groep - Rolluik 1/2
blocks['s3']['width'] = 6;
blocks['s3']['icon'] = 'fa-align-justify';

blocks['s4'] = {} //Groep - Huiskamer 1/2
blocks['s4']['width'] = 6;

//Schakelaars
blocks[6] = {} //dimmer - rolluik woonkamer
blocks[6]['width'] = 6;
blocks[6]['hide_stop'] = true;

blocks[46] = {} //dimmer - lamp zolder
blocks[46]['width'] = 6;

blocks[70] = {} //dimmer - lamp overloop
blocks[70]['width'] = 6;

blocks[193] = {} //dimmer - woonkamer voor
blocks[193]['width'] = 6;

blocks[179] = {} //dimmer - woonkamer achter
blocks[179]['width'] = 6;

//Overige
blocks[1] = {} //Memory
blocks[1]['width'] = 6;
blocks[1]['icon'] = 'fa-line-chart';

blocks[4] = {} //Pi Temperatuur
blocks[4]['width'] = 6;
blocks[4]['icon'] = 'fa-thermometer-1';

blocks[5] = {} //CPU
blocks[5]['width'] = 6;
blocks[5]['icon'] = 'fa-line-chart';

blocks[178] = {} //Regen verwachting
blocks[178]['width'] = 12;

blocks[151] = {} //iPhone Batterij Harm
blocks[151]['width'] = 6;

blocks[152] = {} //iPhone Batterij Nassira
blocks[152]['width'] = 6;

blocks[150] = {} //iPhone Harm
blocks[150]['width'] = 6;
blocks[150]['icon'] = 'fa-mobile'

blocks[153] = {} //iPhone Nassira
blocks[153]['width'] = 6;
blocks[153]['icon'] = 'fa-mobile'

blocks['27_1'] = {}
blocks['27_1']['width'] = 12;
blocks['27_1']['title'] = 'Temperatuur'

blocks['27_2'] = {}
blocks['27_2']['width'] = 12;
blocks['27_2']['title'] = 'Luchtvochtigheid'

blocks['27_3'] = {}
blocks['27_3']['width'] = 12;
blocks['27_3']['title'] = 'Barometer'

//Titels
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Scenes';

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Schakelaars';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Systeem Devices';

blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Informatie';

blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Radio';

blocks['blocktitle_6'] = {}
blocks['blocktitle_6']['type'] = 'blocktitle';
blocks['blocktitle_6']['title'] = 'iPhone';


// Kolommen
var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','s1','s2','s3','s4','blocktitle_2',46,70,179,193,6]
columns[1]['width'] = 6;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_3',1,5,4,'blocktitle_6',151,152,150,153,'blocktitle_4','news']
columns[2]['width'] = 4;

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise', 'currentweather_big',178,'blocktitle_5','streamplayer']
columns[3]['width'] = 2;

columns[4] = {}
columns[4]['blocks'] = ['currentweather_big','weather', 27]
columns[4]['width'] = 6;

columns[5] = {}
columns[5]['blocks'] = [buttons.buienradar, buttons.radio, buttons.nunl]
columns[5]['width'] = 6;

//Standby
var columns_standby = {}

columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','currentweather_big','weather',178,1,4,5,'streamplayer']
columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
var screens = {}

screens[1] = {}
screens[1]['background'] = 'bg10.jpg';
screens[1]['background_night'] = 'bg12.jpg';
screens[1]['columns'] = [1,2,3]

screens[2] = {}
screens[2]['background'] = 'bg10.jpg';
screens[2]['background_night'] = 'bg12.jpg';
screens[2]['columns'] = [4,5]
custom.css
Spoiler: show
/*
CUSTOM CSS FILE
*/

/* Modifications to the fa en wi font family*/
.fa.fa-lightbulb-o.on {
color: rgba(255,255,0,1.0)
}
.fa.fa-lightbulb-o.off {
color:#fff;
}
.fa.fa-mobile.on.icon {
font-size: 30px !important;
color: green;
}
.fa.fa-mobile.off.icon {
font-size: 30px !important;
}


/* Fontsize buttons Blinds */
.fa,.wi {
font-size:20px !important;
}

/* Background blocks */
.transbg.col-xs-1,
.transbg.col-xs-2,
.transbg.col-xs-3,
.transbg.col-xs-4,
.transbg.col-xs-5,
.transbg.col-xs-6,
.transbg.col-xs-7,
.transbg.col-xs-8,
.transbg.col-xs-9,
.transbg.col-xs-10,
.transbg.col-xs-11,
.transbg.col-xs-12 {
padding-top:15px;
padding-bottom:15px;
border: 7px solid rgba(255,255,255,0);
background: rgba(0,0,0,0.2);
background-clip: padding-box;
border-radius: 25px; /* Round corners */
}

/* Block Title */
h1, h2, h3, h4, h5, h6 {
font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
margin: 0px;
margin-left: 15px;
font-weight: 900;
font-size: 300%;
}

.smalltitle h3 {
font-size: 12px !important;
margin-left: 6px;
}

/* Title of tile */
.title {
font-size:15px;
}

/* Standby screen */
.standby .clock{
font-size:60px !important;
}
.standby .weekday,.standby .date{
font-size:40px !important;
}

/* Swiper bullet */
.swiper-pagination-bullet {
width: 30px;
height: 30px;
background: white;
}

/* Up-Down arrow Blinds */
.input-groupBtn li {
position:sticky;
z-index: 9999;
right: 1px;
border-radius: 25px; /* Round corners */
}

/* Transparent Background for arrow Blinds - Big Screen */
.input-groupBtn.input-chevron .btn-number {
padding: 5px 10px 5px 10px;
background-color: transparent;
}

/* Transparent Background for arrow Blinds - Small Screen */
@media only screen and (max-width: 1400px) {
.input-groupBtn.input-chevron .btn-number {
padding: 7px 10px 7px 10px;
background-color: transparent;
}
}
Nice! How did you get the iphone information?


Verzonden vanaf mijn iPhone met Tapatalk
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by htilburgs »

Nice! How did you get the iphone information?
Thnx!
The iPhone information is done with the script, found here:
viewtopic.php?f=23&t=13318&hilit=iphone
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by SwordFish »

poudenes wrote:
Google chrome
Tried , but could find the option


Verzonden vanaf mijn iPhone met Tapatalk
You have to open Dashticz in Chrome and then add it to your home screen. This is how it works on my tablet.
EBOOZ
Posts: 11
Joined: Wednesday 30 December 2015 9:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8153
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by EBOOZ »

poudenes wrote:
Google chrome
Tried , but could find the option

Verzonden vanaf mijn iPhone met Tapatalk
This is what you do:

1. Create a new chrome.exe shortcut
2. Change the path of the shortcut to: "C:\Program Files\Google\Chrome\Application\chrome.exe" --chrome --kiosk http://<ip-address>:8080/dashboard/index.html --incognito --disable-pinch --overscroll-history-navigation=0
3. Drag the shortcut into the startup folder so it loads automatically: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Make sure you change the path to chrome.exe is correct. Same for the URL.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by HansieNL »

pkrabben wrote:
HansieNL wrote:Nothing special. I made only the background metal a lot darker and created some custom icons.
picture-017.jpg
tv.png
sleep.png
Nice Dashboard
I assume you do the desktop and notebook detection based on IP address / ping.
Can you share that code with me because I'm not able to get this working in my Domoticz.
Notebook PC and Desktop PC are dummy switches.
script_time_desktop_pc.lua

Code: Select all

commandArray = {}
 
ping_success=os.execute('ping -c1 192.168.2.123')
 if ping_success then
   commandArray['Desktop PC']='On'
   print("Desktop PC is online")
 else
   commandArray['UpdateDevice']='222|0|0'
   print("Desktop PC is offline")
 end
 
return commandArray
shutdown_desktop_pc.sh

Code: Select all

#!/bin/sh
# Shutdown Desktop PC
net rpc shutdown -I 192.168.2.123 -U username%password

Desktop PC Off Action:
script:///home/pi/domoticz/scripts/shutdown_desktop_pc.sh

How to Remotely Shut Down Windows PC
 Disable the UAC remote restrictions in the registry:
– In the registry editor, navigate to
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
– If needed, create the DWORD value LocalAccountTokenFilterPolicy
– Modify the value of LocalAccountTokenFilterPolicy by changing the Value data to 1
 Configure a User Account to Log On Automatically on Windows 7:
– Start netplwiz
– In the User Accounts dialog box, click the account you want to automatically log on to.
– If it is available, clear the Users Must Enter A User Name And Password To Use This
Computer check box.
– In the Automatically Log On dialog box, enter the user’s password twice and click OK.
 Once you’ve set up the computer, you can shut it down from a Linux system. This requires the
samba-common and samba-common-bin packages installed – you can install these with the
following command:
sudo apt-get install samba-common samba-common-bin
 To shut down use the following command from a terminal:
net rpc shutdown -I ip.address -U username%password
Blah blah blah
b00n
Posts: 26
Joined: Saturday 15 April 2017 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by b00n »

@SwordFish

Thanks men this is working great !!! :D :D
I edit some things because we got 4 different trash days here :cry:
if anybody is intrested:

Code: Select all

week    = tonumber (os.date( "%V"))
dag      = tostring(os.date("%a"));
status   = tonumber(otherdevices_svalues['Afval'])
print('script bin_selector executed')

commandArray = {}
print ('Dag=  '..dag)
if (dag=='Sat' or dag=='Sun'  ) then
   weekend = true; weekdag = false
end 

if (dag=='Mon' or dag=='Tue' or dag=='Wed' or dag=='Thu' or dag=='Fri') then
   weekend = false ; weekdag = true 
end

--Bepalen morgen papier   
if(week==1 and dag=='Tue' or week==3 and dag=='Tue' or week==5 and dag=='Tue' or week==7 and dag=='Tue' or week==9 and dag=='Tue' or week==11 and dag=='Tue' or week==13 and dag=='Tue' or week==15 and dag=='Tue' or week==17 and dag=='Tue' or week==19 and dag=='Tue' or week==21 and dag=='Tue' or week==23 and dag=='Tue' or week==25 and dag=='Tue' or week==27 and dag=='Tue'
   or week==29 and dag=='Tue' or week==31 and dag=='Tue' or week==33 and dag=='Tue' or week==35 and dag=='Tue' or week==37 and dag=='Tue' or week==39 and dag=='Tue' or week==41 and dag=='Tue' or week==43 and dag=='Tue' or week==45 and dag=='Tue' or week==47 and dag=='Tue' or week==49 and dag=='Tue' or week==51 and dag=='Tue') then
      morgenpapier = true; papier = false; morgenplastic = false; plastic = false; niets = false
print ('morgen papier')
end

--Bepalen papier   
if(week==1 and dag=='Wed' or week==3 and dag=='Wed' or week==5 and dag=='Wed' or week==7 and dag=='Wed' or week==9 and dag=='Wed' or week==11 and dag=='Wed' or week==13 and dag=='Wed' or week==15 and dag=='Wed' or week==17 and dag=='Wed' or week==19 and dag=='Wed' or week==21 and dag=='Wed' or week==23 and dag=='Wed' or week==25 and dag=='Wed' or week==27 and dag=='Wed'
   or week==29 and dag=='Wed' or week==31 and dag=='Wed' or week==33 and dag=='Wed' or week==35 and dag=='Wed' or week==37 and dag=='Wed' or week==39 and dag=='Wed' or week==41 and dag=='Wed' or week==43 and dag=='Wed' or week==45 and dag=='Wed' or week==47 and dag=='Wed' or week==49 and dag=='Wed' or week==51 and dag=='Wed') then
      morgenpapier = false; papier = true; morgenplastic = false; plastic = false; niets = false
print ('vandaag papier')
end

--Bepalen morgen plastic     
if(week==52 and dag=='Sun' or week==4 and dag=='Sun' or week==8 and dag=='Sun' or week==12 and dag=='Sun' or week==16 and dag=='Sun' or week==20 and dag=='Sun' or week==24 and dag=='Sun' or week==28 and dag=='Sun' or week==32 and dag=='Sun' or week==36 and dag=='Sun' or week==40 and dag=='Sun' or week==44 and dag=='Sun' or week==48 and dag=='Sun') then
      morgenpapier = false; papier = false; morgenplastic = true; plastic = false; niets = false
print ('morgen plastic')
end

--Bepalen plastic     
if(week==1 and dag=='Mon' or week==5 and dag=='Mon' or week==9 and dag=='Mon' or week==13 and dag=='Mon' or week==17 and dag=='Mon' or week==21 and dag=='Mon' or week==25 and dag=='Mon' or week==29 and dag=='Mon' or week==33 and dag=='Mon' or week==37 and dag=='Mon' or week==41 and dag=='Mon' or week==45 and dag=='Mon' or week==49 and dag=='Mon') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = true; niets = false
print ('vandaag plastic')
end


--Bepalen morgen grijs  
if(week==2 and dag=='Sun' or week==6 and dag=='Sun' or week==10 and dag=='Sun' or week==14 and dag=='Sun' or week==18 and dag=='Sun' or week==22 and dag=='Fri' or week==26 and dag=='Sun' or week==30 and dag=='Sun' or week==34 and dag=='Sun' or week==38 and dag=='Sun' or week==42 and dag=='Sun' or week==46 and dag=='Sun' or week==50 and dag=='Sun') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = true; grijs = false; morgengroen = false; groen = false; niets = false
print ('morgen grijs')
end

--Bepalen grijs 
if(week==3 and dag=='Mon' or week==7 and dag=='Mon' or week==11 and dag=='Mon' or week==15 and dag=='Mon' or week==19 and dag=='Mon' or week==22 and dag=='Sat' or week==27 and dag=='Mon' or week==31 and dag=='Mon' or week==35 and dag=='Mon' or week==39 and dag=='Mon' or week==43 and dag=='Mon' or week==47 and dag=='Mon' or week==51 and dag=='Mon') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = true; morgengroen = false; groen = false; niets = false
print ('vandaag grijs')
end

--Bepalen morgen groen 
if(week==1 and dag=='Sun' or week==3 and dag=='Sun' or week==5 and dag=='Sun' or week==7 and dag=='Sun' or week==9 and dag=='Sun' or week==11 and dag=='Sun' or week==13 and dag=='Sun' or week==15 and dag=='Sun' or week==17 and dag=='Sun' or week==19 and dag=='Sun' or week==21 and dag=='Sun' or week==23 and dag=='Sun' or week==25 and dag=='Sun' or week==27 and dag=='Sun'
   or week==29 and dag=='Sun' or week==31 and dag=='Sun' or week==33 and dag=='Sun' or week==35 and dag=='Sun' or week==37 and dag=='Sun' or week==39 and dag=='Sun' or week==41 and dag=='Sun' or week==43 and dag=='Sun' or week==45 and dag=='Sun' or week==47 and dag=='Sun' or week==49 and dag=='Sun' or week==51 and dag=='Fri') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = true; groen = false; niets = false
print ('morgen groen')
end

--Bepalen groen 
if(week==2 and dag=='Mon' or week==4 and dag=='Mon' or week==6 and dag=='Mon' or week==8 and dag=='Mon' or week==10 and dag=='Mon' or week==12 and dag=='Mon' or week==14 and dag=='Mon' or week==16 and dag=='Mon' or week==18 and dag=='Mon' or week==20 and dag=='Mon' or week==22 and dag=='Mon' or week==24 and dag=='Mon' or week==26 and dag=='Mon' or week==28 and dag=='Mon'
   or week==30 and dag=='Mon' or week==32 and dag=='Mon' or week==34 and dag=='Mon' or week==36 and dag=='Mon' or week==38 and dag=='Mon' or week==40 and dag=='Mon' or week==42 and dag=='Mon' or week==44 and dag=='Mon' or week==46 and dag=='Mon' or week==48 and dag=='Mon' or week==50 and dag=='Mon' or week==51 and dag=='Sat') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = false; groen = true; niets = false
print ('vandaag groen')
end

--Geen afval aan de weg    
if (week==2 and dag=='Tue' or week== 1 and dag=='Thu' or week== 26 and dag=='Thu' or week== 51 and dag=='Thu' or
	week==4 and dag=='Tue' or week== 2 and dag=='Thu' or week== 27 and dag=='Thu' or week== 52 and dag=='Thu' or
	week==6 and dag=='Tue' or week== 3 and dag=='Thu' or week== 28 and dag=='Thu' or
	week==8 and dag=='Tue' or week== 4 and dag=='Thu' or week== 29 and dag=='Thu' or
	week==10 and dag=='Tue' or week== 5 and dag=='Thu' or week== 30 and dag=='Thu' or
	week==12 and dag=='Tue' or week== 6 and dag=='Thu' or week== 31 and dag=='Thu' or
	week==14 and dag=='Tue' or week== 7 and dag=='Thu' or week== 32 and dag=='Thu' or
	week==16 and dag=='Tue' or week== 8 and dag=='Thu' or week== 33 and dag=='Thu' or
	week==18 and dag=='Tue' or week== 9 and dag=='Thu' or week== 34 and dag=='Thu' or
	week==20 and dag=='Tue' or week== 10 and dag=='Thu' or week== 35 and dag=='Thu' or
	week==22 and dag=='Tue' or week== 11 and dag=='Thu' or week== 36 and dag=='Thu' or
	week==24 and dag=='Tue' or week== 12 and dag=='Thu' or week== 37 and dag=='Thu' or
	week==26 and dag=='Tue' or week== 13 and dag=='Thu' or week== 38 and dag=='Thu' or
	week==28 and dag=='Tue' or week== 14 and dag=='Thu' or week== 39 and dag=='Thu' or
	week==30 and dag=='Tue' or week== 15 and dag=='Thu' or week== 40 and dag=='Thu' or
	week==32 and dag=='Tue' or week== 16 and dag=='Thu' or week== 41 and dag=='Thu' or
	week==34 and dag=='Tue' or week== 17 and dag=='Thu' or week== 42 and dag=='Thu' or
	week==36 and dag=='Tue' or week== 18 and dag=='Thu' or week== 43 and dag=='Thu' or
	week==38 and dag=='Tue' or week== 19 and dag=='Thu' or week== 44 and dag=='Thu' or
	week==40 and dag=='Tue' or week== 20 and dag=='Thu' or week== 45 and dag=='Thu' or
	week==42 and dag=='Tue' or week== 21 and dag=='Thu' or week== 46 and dag=='Thu' or
	week==44 and dag=='Tue' or week== 22 and dag=='Thu' or week== 47 and dag=='Thu' or
	week==46 and dag=='Tue' or week== 23 and dag=='Thu' or week== 48 and dag=='Thu' or
	week==48 and dag=='Tue' or week== 24 and dag=='Thu' or week== 49 and dag=='Thu' or
	week==50 and dag=='Tue' or week== 25 and dag=='Thu' or week== 50 and dag=='Thu' or
	week==52 and dag=='Tue')
 then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = false; groen = false; niets = true
print ('vandaag geen afval buiten zetten')
end

if (niets and weekdag and status~=10) then
print ('not papier not plastic - status 10')
      status=10
      commandArray ['UpdateDevice']= '153|1|'	  .. status      
end 

if (morgenpapier and weekdag and dag and status~=20) then
print ('morgen papier and weekdag - status 20')
      status=20
      commandArray ['UpdateDevice']= '153|1|' .. status
end 

if (papier and weekdag and dag and status~=30) then
print ('papier and weekdag - status 30')
      status=30
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (morgenplastic and weekdag and dag and status~=40) then
print ('morgen plastic and weekdag - status 40')
      status=40
      commandArray ['UpdateDevice']= '153|1|' .. status
end 

if (plastic and weekdag and dag and status~=50) then
print ('plastic and weekdag - status 50')
      status=50
      commandArray ['UpdateDevice']= '153|1|' .. status
end
	
if (morgengroen and weekdag and dag and status~=60) then
print ('morgen groen and weekdag - status 60')
      status=60
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (groen and weekdag and dag and status~=70) then
print ('groen and weekdag - status 70')
      status=70
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (morgengrijs and weekdag and dag and status~=80) then
print ('morgen grijs and weekdag - status 80')
      status=80
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (grijs and weekdag and dag and status~=90) then
print ('grijs and weekdag - status 90')
      status=90
      commandArray ['UpdateDevice']= '153|1|' .. status
end

return commandArray
b00n
Posts: 26
Joined: Saturday 15 April 2017 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by b00n »

@poudenes

How you get your: Niet vergeten.. block ?
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by SwordFish »

b00n wrote:@SwordFish

Thanks men this is working great !!! :D :D
I edit some things because we got 4 different trash days here :cry:
if anybody is intrested:

Code: Select all

week    = tonumber (os.date( "%V"))
dag      = tostring(os.date("%a"));
status   = tonumber(otherdevices_svalues['Afval'])
print('script bin_selector executed')

commandArray = {}
print ('Dag=  '..dag)
if (dag=='Sat' or dag=='Sun'  ) then
   weekend = true; weekdag = false
end 

if (dag=='Mon' or dag=='Tue' or dag=='Wed' or dag=='Thu' or dag=='Fri') then
   weekend = false ; weekdag = true 
end

--Bepalen morgen papier   
if(week==1 and dag=='Tue' or week==3 and dag=='Tue' or week==5 and dag=='Tue' or week==7 and dag=='Tue' or week==9 and dag=='Tue' or week==11 and dag=='Tue' or week==13 and dag=='Tue' or week==15 and dag=='Tue' or week==17 and dag=='Tue' or week==19 and dag=='Tue' or week==21 and dag=='Tue' or week==23 and dag=='Tue' or week==25 and dag=='Tue' or week==27 and dag=='Tue'
   or week==29 and dag=='Tue' or week==31 and dag=='Tue' or week==33 and dag=='Tue' or week==35 and dag=='Tue' or week==37 and dag=='Tue' or week==39 and dag=='Tue' or week==41 and dag=='Tue' or week==43 and dag=='Tue' or week==45 and dag=='Tue' or week==47 and dag=='Tue' or week==49 and dag=='Tue' or week==51 and dag=='Tue') then
      morgenpapier = true; papier = false; morgenplastic = false; plastic = false; niets = false
print ('morgen papier')
end

--Bepalen papier   
if(week==1 and dag=='Wed' or week==3 and dag=='Wed' or week==5 and dag=='Wed' or week==7 and dag=='Wed' or week==9 and dag=='Wed' or week==11 and dag=='Wed' or week==13 and dag=='Wed' or week==15 and dag=='Wed' or week==17 and dag=='Wed' or week==19 and dag=='Wed' or week==21 and dag=='Wed' or week==23 and dag=='Wed' or week==25 and dag=='Wed' or week==27 and dag=='Wed'
   or week==29 and dag=='Wed' or week==31 and dag=='Wed' or week==33 and dag=='Wed' or week==35 and dag=='Wed' or week==37 and dag=='Wed' or week==39 and dag=='Wed' or week==41 and dag=='Wed' or week==43 and dag=='Wed' or week==45 and dag=='Wed' or week==47 and dag=='Wed' or week==49 and dag=='Wed' or week==51 and dag=='Wed') then
      morgenpapier = false; papier = true; morgenplastic = false; plastic = false; niets = false
print ('vandaag papier')
end

--Bepalen morgen plastic     
if(week==52 and dag=='Sun' or week==4 and dag=='Sun' or week==8 and dag=='Sun' or week==12 and dag=='Sun' or week==16 and dag=='Sun' or week==20 and dag=='Sun' or week==24 and dag=='Sun' or week==28 and dag=='Sun' or week==32 and dag=='Sun' or week==36 and dag=='Sun' or week==40 and dag=='Sun' or week==44 and dag=='Sun' or week==48 and dag=='Sun') then
      morgenpapier = false; papier = false; morgenplastic = true; plastic = false; niets = false
print ('morgen plastic')
end

--Bepalen plastic     
if(week==1 and dag=='Mon' or week==5 and dag=='Mon' or week==9 and dag=='Mon' or week==13 and dag=='Mon' or week==17 and dag=='Mon' or week==21 and dag=='Mon' or week==25 and dag=='Mon' or week==29 and dag=='Mon' or week==33 and dag=='Mon' or week==37 and dag=='Mon' or week==41 and dag=='Mon' or week==45 and dag=='Mon' or week==49 and dag=='Mon') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = true; niets = false
print ('vandaag plastic')
end


--Bepalen morgen grijs  
if(week==2 and dag=='Sun' or week==6 and dag=='Sun' or week==10 and dag=='Sun' or week==14 and dag=='Sun' or week==18 and dag=='Sun' or week==22 and dag=='Fri' or week==26 and dag=='Sun' or week==30 and dag=='Sun' or week==34 and dag=='Sun' or week==38 and dag=='Sun' or week==42 and dag=='Sun' or week==46 and dag=='Sun' or week==50 and dag=='Sun') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = true; grijs = false; morgengroen = false; groen = false; niets = false
print ('morgen grijs')
end

--Bepalen grijs 
if(week==3 and dag=='Mon' or week==7 and dag=='Mon' or week==11 and dag=='Mon' or week==15 and dag=='Mon' or week==19 and dag=='Mon' or week==22 and dag=='Sat' or week==27 and dag=='Mon' or week==31 and dag=='Mon' or week==35 and dag=='Mon' or week==39 and dag=='Mon' or week==43 and dag=='Mon' or week==47 and dag=='Mon' or week==51 and dag=='Mon') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = true; morgengroen = false; groen = false; niets = false
print ('vandaag grijs')
end

--Bepalen morgen groen 
if(week==1 and dag=='Sun' or week==3 and dag=='Sun' or week==5 and dag=='Sun' or week==7 and dag=='Sun' or week==9 and dag=='Sun' or week==11 and dag=='Sun' or week==13 and dag=='Sun' or week==15 and dag=='Sun' or week==17 and dag=='Sun' or week==19 and dag=='Sun' or week==21 and dag=='Sun' or week==23 and dag=='Sun' or week==25 and dag=='Sun' or week==27 and dag=='Sun'
   or week==29 and dag=='Sun' or week==31 and dag=='Sun' or week==33 and dag=='Sun' or week==35 and dag=='Sun' or week==37 and dag=='Sun' or week==39 and dag=='Sun' or week==41 and dag=='Sun' or week==43 and dag=='Sun' or week==45 and dag=='Sun' or week==47 and dag=='Sun' or week==49 and dag=='Sun' or week==51 and dag=='Fri') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = true; groen = false; niets = false
print ('morgen groen')
end

--Bepalen groen 
if(week==2 and dag=='Mon' or week==4 and dag=='Mon' or week==6 and dag=='Mon' or week==8 and dag=='Mon' or week==10 and dag=='Mon' or week==12 and dag=='Mon' or week==14 and dag=='Mon' or week==16 and dag=='Mon' or week==18 and dag=='Mon' or week==20 and dag=='Mon' or week==22 and dag=='Mon' or week==24 and dag=='Mon' or week==26 and dag=='Mon' or week==28 and dag=='Mon'
   or week==30 and dag=='Mon' or week==32 and dag=='Mon' or week==34 and dag=='Mon' or week==36 and dag=='Mon' or week==38 and dag=='Mon' or week==40 and dag=='Mon' or week==42 and dag=='Mon' or week==44 and dag=='Mon' or week==46 and dag=='Mon' or week==48 and dag=='Mon' or week==50 and dag=='Mon' or week==51 and dag=='Sat') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = false; groen = true; niets = false
print ('vandaag groen')
end

--Geen afval aan de weg    
if (week==2 and dag=='Tue' or week== 1 and dag=='Thu' or week== 26 and dag=='Thu' or week== 51 and dag=='Thu' or
	week==4 and dag=='Tue' or week== 2 and dag=='Thu' or week== 27 and dag=='Thu' or week== 52 and dag=='Thu' or
	week==6 and dag=='Tue' or week== 3 and dag=='Thu' or week== 28 and dag=='Thu' or
	week==8 and dag=='Tue' or week== 4 and dag=='Thu' or week== 29 and dag=='Thu' or
	week==10 and dag=='Tue' or week== 5 and dag=='Thu' or week== 30 and dag=='Thu' or
	week==12 and dag=='Tue' or week== 6 and dag=='Thu' or week== 31 and dag=='Thu' or
	week==14 and dag=='Tue' or week== 7 and dag=='Thu' or week== 32 and dag=='Thu' or
	week==16 and dag=='Tue' or week== 8 and dag=='Thu' or week== 33 and dag=='Thu' or
	week==18 and dag=='Tue' or week== 9 and dag=='Thu' or week== 34 and dag=='Thu' or
	week==20 and dag=='Tue' or week== 10 and dag=='Thu' or week== 35 and dag=='Thu' or
	week==22 and dag=='Tue' or week== 11 and dag=='Thu' or week== 36 and dag=='Thu' or
	week==24 and dag=='Tue' or week== 12 and dag=='Thu' or week== 37 and dag=='Thu' or
	week==26 and dag=='Tue' or week== 13 and dag=='Thu' or week== 38 and dag=='Thu' or
	week==28 and dag=='Tue' or week== 14 and dag=='Thu' or week== 39 and dag=='Thu' or
	week==30 and dag=='Tue' or week== 15 and dag=='Thu' or week== 40 and dag=='Thu' or
	week==32 and dag=='Tue' or week== 16 and dag=='Thu' or week== 41 and dag=='Thu' or
	week==34 and dag=='Tue' or week== 17 and dag=='Thu' or week== 42 and dag=='Thu' or
	week==36 and dag=='Tue' or week== 18 and dag=='Thu' or week== 43 and dag=='Thu' or
	week==38 and dag=='Tue' or week== 19 and dag=='Thu' or week== 44 and dag=='Thu' or
	week==40 and dag=='Tue' or week== 20 and dag=='Thu' or week== 45 and dag=='Thu' or
	week==42 and dag=='Tue' or week== 21 and dag=='Thu' or week== 46 and dag=='Thu' or
	week==44 and dag=='Tue' or week== 22 and dag=='Thu' or week== 47 and dag=='Thu' or
	week==46 and dag=='Tue' or week== 23 and dag=='Thu' or week== 48 and dag=='Thu' or
	week==48 and dag=='Tue' or week== 24 and dag=='Thu' or week== 49 and dag=='Thu' or
	week==50 and dag=='Tue' or week== 25 and dag=='Thu' or week== 50 and dag=='Thu' or
	week==52 and dag=='Tue')
 then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = false; groen = false; niets = true
print ('vandaag geen afval buiten zetten')
end

if (niets and weekdag and status~=10) then
print ('not papier not plastic - status 10')
      status=10
      commandArray ['UpdateDevice']= '153|1|'	  .. status      
end 

if (morgenpapier and weekdag and dag and status~=20) then
print ('morgen papier and weekdag - status 20')
      status=20
      commandArray ['UpdateDevice']= '153|1|' .. status
end 

if (papier and weekdag and dag and status~=30) then
print ('papier and weekdag - status 30')
      status=30
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (morgenplastic and weekdag and dag and status~=40) then
print ('morgen plastic and weekdag - status 40')
      status=40
      commandArray ['UpdateDevice']= '153|1|' .. status
end 

if (plastic and weekdag and dag and status~=50) then
print ('plastic and weekdag - status 50')
      status=50
      commandArray ['UpdateDevice']= '153|1|' .. status
end
	
if (morgengroen and weekdag and dag and status~=60) then
print ('morgen groen and weekdag - status 60')
      status=60
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (groen and weekdag and dag and status~=70) then
print ('groen and weekdag - status 70')
      status=70
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (morgengrijs and weekdag and dag and status~=80) then
print ('morgen grijs and weekdag - status 80')
      status=80
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (grijs and weekdag and dag and status~=90) then
print ('grijs and weekdag - status 90')
      status=90
      commandArray ['UpdateDevice']= '153|1|' .. status
end

return commandArray
Its not mine script. Got it from Ierlandfan on the dasticz forum.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by poudenes »

htilburgs wrote:
Nice! How did you get the iphone information?
Thnx!
The iPhone information is done with the script, found here:
viewtopic.php?f=23&t=13318&hilit=iphone
Tried everything... Still not working. Can you send your script maybe i do something work. (don't forget to remove your iCloud info)
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by poudenes »

b00n wrote:@poudenes

How you get your: Niet vergeten.. block ?
I don't have a "niet vergeten" block.. haha
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
b00n
Posts: 26
Joined: Saturday 15 April 2017 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by b00n »

poudenes wrote:
b00n wrote:@poudenes

How you get your: Niet vergeten.. block ?
I don't have a "niet vergeten" block.. haha

ohh its a tv guide :| :oops:
b00n
Posts: 26
Joined: Saturday 15 April 2017 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by b00n »

SwordFish wrote:
b00n wrote:@SwordFish

Thanks men this is working great !!! :D :D
I edit some things because we got 4 different trash days here :cry:
if anybody is intrested:

Code: Select all

week    = tonumber (os.date( "%V"))
dag      = tostring(os.date("%a"));
status   = tonumber(otherdevices_svalues['Afval'])
print('script bin_selector executed')

commandArray = {}
print ('Dag=  '..dag)
if (dag=='Sat' or dag=='Sun'  ) then
   weekend = true; weekdag = false
end 

if (dag=='Mon' or dag=='Tue' or dag=='Wed' or dag=='Thu' or dag=='Fri') then
   weekend = false ; weekdag = true 
end

--Bepalen morgen papier   
if(week==1 and dag=='Tue' or week==3 and dag=='Tue' or week==5 and dag=='Tue' or week==7 and dag=='Tue' or week==9 and dag=='Tue' or week==11 and dag=='Tue' or week==13 and dag=='Tue' or week==15 and dag=='Tue' or week==17 and dag=='Tue' or week==19 and dag=='Tue' or week==21 and dag=='Tue' or week==23 and dag=='Tue' or week==25 and dag=='Tue' or week==27 and dag=='Tue'
   or week==29 and dag=='Tue' or week==31 and dag=='Tue' or week==33 and dag=='Tue' or week==35 and dag=='Tue' or week==37 and dag=='Tue' or week==39 and dag=='Tue' or week==41 and dag=='Tue' or week==43 and dag=='Tue' or week==45 and dag=='Tue' or week==47 and dag=='Tue' or week==49 and dag=='Tue' or week==51 and dag=='Tue') then
      morgenpapier = true; papier = false; morgenplastic = false; plastic = false; niets = false
print ('morgen papier')
end

--Bepalen papier   
if(week==1 and dag=='Wed' or week==3 and dag=='Wed' or week==5 and dag=='Wed' or week==7 and dag=='Wed' or week==9 and dag=='Wed' or week==11 and dag=='Wed' or week==13 and dag=='Wed' or week==15 and dag=='Wed' or week==17 and dag=='Wed' or week==19 and dag=='Wed' or week==21 and dag=='Wed' or week==23 and dag=='Wed' or week==25 and dag=='Wed' or week==27 and dag=='Wed'
   or week==29 and dag=='Wed' or week==31 and dag=='Wed' or week==33 and dag=='Wed' or week==35 and dag=='Wed' or week==37 and dag=='Wed' or week==39 and dag=='Wed' or week==41 and dag=='Wed' or week==43 and dag=='Wed' or week==45 and dag=='Wed' or week==47 and dag=='Wed' or week==49 and dag=='Wed' or week==51 and dag=='Wed') then
      morgenpapier = false; papier = true; morgenplastic = false; plastic = false; niets = false
print ('vandaag papier')
end

--Bepalen morgen plastic     
if(week==52 and dag=='Sun' or week==4 and dag=='Sun' or week==8 and dag=='Sun' or week==12 and dag=='Sun' or week==16 and dag=='Sun' or week==20 and dag=='Sun' or week==24 and dag=='Sun' or week==28 and dag=='Sun' or week==32 and dag=='Sun' or week==36 and dag=='Sun' or week==40 and dag=='Sun' or week==44 and dag=='Sun' or week==48 and dag=='Sun') then
      morgenpapier = false; papier = false; morgenplastic = true; plastic = false; niets = false
print ('morgen plastic')
end

--Bepalen plastic     
if(week==1 and dag=='Mon' or week==5 and dag=='Mon' or week==9 and dag=='Mon' or week==13 and dag=='Mon' or week==17 and dag=='Mon' or week==21 and dag=='Mon' or week==25 and dag=='Mon' or week==29 and dag=='Mon' or week==33 and dag=='Mon' or week==37 and dag=='Mon' or week==41 and dag=='Mon' or week==45 and dag=='Mon' or week==49 and dag=='Mon') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = true; niets = false
print ('vandaag plastic')
end


--Bepalen morgen grijs  
if(week==2 and dag=='Sun' or week==6 and dag=='Sun' or week==10 and dag=='Sun' or week==14 and dag=='Sun' or week==18 and dag=='Sun' or week==22 and dag=='Fri' or week==26 and dag=='Sun' or week==30 and dag=='Sun' or week==34 and dag=='Sun' or week==38 and dag=='Sun' or week==42 and dag=='Sun' or week==46 and dag=='Sun' or week==50 and dag=='Sun') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = true; grijs = false; morgengroen = false; groen = false; niets = false
print ('morgen grijs')
end

--Bepalen grijs 
if(week==3 and dag=='Mon' or week==7 and dag=='Mon' or week==11 and dag=='Mon' or week==15 and dag=='Mon' or week==19 and dag=='Mon' or week==22 and dag=='Sat' or week==27 and dag=='Mon' or week==31 and dag=='Mon' or week==35 and dag=='Mon' or week==39 and dag=='Mon' or week==43 and dag=='Mon' or week==47 and dag=='Mon' or week==51 and dag=='Mon') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = true; morgengroen = false; groen = false; niets = false
print ('vandaag grijs')
end

--Bepalen morgen groen 
if(week==1 and dag=='Sun' or week==3 and dag=='Sun' or week==5 and dag=='Sun' or week==7 and dag=='Sun' or week==9 and dag=='Sun' or week==11 and dag=='Sun' or week==13 and dag=='Sun' or week==15 and dag=='Sun' or week==17 and dag=='Sun' or week==19 and dag=='Sun' or week==21 and dag=='Sun' or week==23 and dag=='Sun' or week==25 and dag=='Sun' or week==27 and dag=='Sun'
   or week==29 and dag=='Sun' or week==31 and dag=='Sun' or week==33 and dag=='Sun' or week==35 and dag=='Sun' or week==37 and dag=='Sun' or week==39 and dag=='Sun' or week==41 and dag=='Sun' or week==43 and dag=='Sun' or week==45 and dag=='Sun' or week==47 and dag=='Sun' or week==49 and dag=='Sun' or week==51 and dag=='Fri') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = true; groen = false; niets = false
print ('morgen groen')
end

--Bepalen groen 
if(week==2 and dag=='Mon' or week==4 and dag=='Mon' or week==6 and dag=='Mon' or week==8 and dag=='Mon' or week==10 and dag=='Mon' or week==12 and dag=='Mon' or week==14 and dag=='Mon' or week==16 and dag=='Mon' or week==18 and dag=='Mon' or week==20 and dag=='Mon' or week==22 and dag=='Mon' or week==24 and dag=='Mon' or week==26 and dag=='Mon' or week==28 and dag=='Mon'
   or week==30 and dag=='Mon' or week==32 and dag=='Mon' or week==34 and dag=='Mon' or week==36 and dag=='Mon' or week==38 and dag=='Mon' or week==40 and dag=='Mon' or week==42 and dag=='Mon' or week==44 and dag=='Mon' or week==46 and dag=='Mon' or week==48 and dag=='Mon' or week==50 and dag=='Mon' or week==51 and dag=='Sat') then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = false; groen = true; niets = false
print ('vandaag groen')
end

--Geen afval aan de weg    
if (week==2 and dag=='Tue' or week== 1 and dag=='Thu' or week== 26 and dag=='Thu' or week== 51 and dag=='Thu' or
	week==4 and dag=='Tue' or week== 2 and dag=='Thu' or week== 27 and dag=='Thu' or week== 52 and dag=='Thu' or
	week==6 and dag=='Tue' or week== 3 and dag=='Thu' or week== 28 and dag=='Thu' or
	week==8 and dag=='Tue' or week== 4 and dag=='Thu' or week== 29 and dag=='Thu' or
	week==10 and dag=='Tue' or week== 5 and dag=='Thu' or week== 30 and dag=='Thu' or
	week==12 and dag=='Tue' or week== 6 and dag=='Thu' or week== 31 and dag=='Thu' or
	week==14 and dag=='Tue' or week== 7 and dag=='Thu' or week== 32 and dag=='Thu' or
	week==16 and dag=='Tue' or week== 8 and dag=='Thu' or week== 33 and dag=='Thu' or
	week==18 and dag=='Tue' or week== 9 and dag=='Thu' or week== 34 and dag=='Thu' or
	week==20 and dag=='Tue' or week== 10 and dag=='Thu' or week== 35 and dag=='Thu' or
	week==22 and dag=='Tue' or week== 11 and dag=='Thu' or week== 36 and dag=='Thu' or
	week==24 and dag=='Tue' or week== 12 and dag=='Thu' or week== 37 and dag=='Thu' or
	week==26 and dag=='Tue' or week== 13 and dag=='Thu' or week== 38 and dag=='Thu' or
	week==28 and dag=='Tue' or week== 14 and dag=='Thu' or week== 39 and dag=='Thu' or
	week==30 and dag=='Tue' or week== 15 and dag=='Thu' or week== 40 and dag=='Thu' or
	week==32 and dag=='Tue' or week== 16 and dag=='Thu' or week== 41 and dag=='Thu' or
	week==34 and dag=='Tue' or week== 17 and dag=='Thu' or week== 42 and dag=='Thu' or
	week==36 and dag=='Tue' or week== 18 and dag=='Thu' or week== 43 and dag=='Thu' or
	week==38 and dag=='Tue' or week== 19 and dag=='Thu' or week== 44 and dag=='Thu' or
	week==40 and dag=='Tue' or week== 20 and dag=='Thu' or week== 45 and dag=='Thu' or
	week==42 and dag=='Tue' or week== 21 and dag=='Thu' or week== 46 and dag=='Thu' or
	week==44 and dag=='Tue' or week== 22 and dag=='Thu' or week== 47 and dag=='Thu' or
	week==46 and dag=='Tue' or week== 23 and dag=='Thu' or week== 48 and dag=='Thu' or
	week==48 and dag=='Tue' or week== 24 and dag=='Thu' or week== 49 and dag=='Thu' or
	week==50 and dag=='Tue' or week== 25 and dag=='Thu' or week== 50 and dag=='Thu' or
	week==52 and dag=='Tue')
 then
      morgenpapier = false; papier = false; morgenplastic = false; plastic = false; morgengrijs = false; grijs = false; morgengroen = false; groen = false; niets = true
print ('vandaag geen afval buiten zetten')
end

if (niets and weekdag and status~=10) then
print ('not papier not plastic - status 10')
      status=10
      commandArray ['UpdateDevice']= '153|1|'	  .. status      
end 

if (morgenpapier and weekdag and dag and status~=20) then
print ('morgen papier and weekdag - status 20')
      status=20
      commandArray ['UpdateDevice']= '153|1|' .. status
end 

if (papier and weekdag and dag and status~=30) then
print ('papier and weekdag - status 30')
      status=30
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (morgenplastic and weekdag and dag and status~=40) then
print ('morgen plastic and weekdag - status 40')
      status=40
      commandArray ['UpdateDevice']= '153|1|' .. status
end 

if (plastic and weekdag and dag and status~=50) then
print ('plastic and weekdag - status 50')
      status=50
      commandArray ['UpdateDevice']= '153|1|' .. status
end
	
if (morgengroen and weekdag and dag and status~=60) then
print ('morgen groen and weekdag - status 60')
      status=60
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (groen and weekdag and dag and status~=70) then
print ('groen and weekdag - status 70')
      status=70
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (morgengrijs and weekdag and dag and status~=80) then
print ('morgen grijs and weekdag - status 80')
      status=80
      commandArray ['UpdateDevice']= '153|1|' .. status
end

if (grijs and weekdag and dag and status~=90) then
print ('grijs and weekdag - status 90')
      status=90
      commandArray ['UpdateDevice']= '153|1|' .. status
end

return commandArray
Its not mine script. Got it from Ierlandfan on the dasticz forum.
Ah oke, than thanks for sharing ;)
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by htilburgs »

poudenes wrote:
htilburgs wrote:
Nice! How did you get the iphone information?
Thnx!
The iPhone information is done with the script, found here:
viewtopic.php?f=23&t=13318&hilit=iphone
Tried everything... Still not working. Can you send your script maybe i do something work. (don't forget to remove your iCloud info)
I will send it tomorow ;)
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
Ierlandfan
Posts: 89
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by Ierlandfan »

Would the original creator of the "trash"/"bin"/"afvalwijzer" lua script step in? I hate not to give credits where credits are due.
I never mentioned him/her because it was a modified script for personal use without original creator name and I can't find the original message.
Everyone is quoting me while i just modified the script. My fault. I am sorry for that. Give me a PM and I 'll make it up to you.
pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Show your Dashticz v2.0 and how-to's!

Post by pkrabben »

HansieNL wrote:
pkrabben wrote:
HansieNL wrote:Nothing special. I made only the background metal a lot darker and created some custom icons.
picture-017.jpg
tv.png
sleep.png
Nice Dashboard
I assume you do the desktop and notebook detection based on IP address / ping.
Can you share that code with me because I'm not able to get this working in my Domoticz.
Notebook PC and Desktop PC are dummy switches.
script_time_desktop_pc.lua

Code: Select all

commandArray = {}
 
ping_success=os.execute('ping -c1 192.168.2.123')
 if ping_success then
   commandArray['Desktop PC']='On'
   print("Desktop PC is online")
 else
   commandArray['UpdateDevice']='222|0|0'
   print("Desktop PC is offline")
 end
 
return commandArray
shutdown_desktop_pc.sh

Code: Select all

#!/bin/sh
# Shutdown Desktop PC
net rpc shutdown -I 192.168.2.123 -U username%password

Desktop PC Off Action:
script:///home/pi/domoticz/scripts/shutdown_desktop_pc.sh

How to Remotely Shut Down Windows PC
 Disable the UAC remote restrictions in the registry:
– In the registry editor, navigate to
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
– If needed, create the DWORD value LocalAccountTokenFilterPolicy
– Modify the value of LocalAccountTokenFilterPolicy by changing the Value data to 1
 Configure a User Account to Log On Automatically on Windows 7:
– Start netplwiz
– In the User Accounts dialog box, click the account you want to automatically log on to.
– If it is available, clear the Users Must Enter A User Name And Password To Use This
Computer check box.
– In the Automatically Log On dialog box, enter the user’s password twice and click OK.
 Once you’ve set up the computer, you can shut it down from a Linux system. This requires the
samba-common and samba-common-bin packages installed – you can install these with the
following command:
sudo apt-get install samba-common samba-common-bin
 To shut down use the following command from a terminal:
net rpc shutdown -I ip.address -U username%password

Thanks this is working
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: RE: Re: Show your Dashticz v2.0 and how-to's!

Post by jake »

pkrabben wrote:I assume you do the desktop and notebook detection based on IP address / ping.
Can you share that code with me because I'm not able to get this working in my Domoticz.
You can use the 'system alive checker (ping)' as it is default 'hardware' in the Domoticz setup - hardware page.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest