Dashticz Beta 2.5.1 to 2.5.10 button.webcam issue

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Dashticz Beta 2.5.1 to 2.5.10 button.webcam issue

Post by Vomera »

Hi All :)

I updates from 2.5.1 to 2.5.10.
Copied the config from the 2.5.1 to the 2.5.10 and the only thing that doesnt work is the webcam.button.
It doesnt refresh anymore. Is something changed about displaying the images ?
If i go back to my other folder with version 2.5.1 it works perfect.

Here is my config:

Code: Select all

/*
Nieuwe ideeen
- graden voor melding let op er is vorst niet van buienradar maar eigen temp
*/


var config = {}
config['app_title'] = 'Vomera';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 0;
config['auto_swipe_back_after'] = 0;
config['domoticz_ip'] = 'xxx';
config['language'] = 'nl_NL';
config['slide_effect'] = 'slide';
config['last_update'] = 0;
config['hide_topbar'] = 0;


config['owm_api'] = 'xxx';
config['owm_city'] = 'xxx';
config['owm_name'] = 'xxx';
config['owm_country'] = 'NL';
config['static_weathericons'] = 1;


// config['auto_swipe_back_to'] = 3;
// config['auto_swipe_back_after'] = '1';

config['calendarlanguage'] = 'nl_NL';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarurl'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 1;
config['spot_clientid'] = 'xxx';
config['garbage_company'] = 'rd4';
config['garbage_icalurl'] = 1;
config['garbage_zipcode'] = 'xxx';
config['garbage_street'] = 'xxx';
config['garbage_housenumber'] = 'xxx';
config['garbage_maxitems'] = '2';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage'] = {
    gft: {kliko: 'green', code: '#00FF00', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#FFA500', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#808080', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#0000FF', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#FF0000', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#A52A2A', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#FFFF00', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#008000', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

                    };
config['longfonds_zipcode'] = 'xxx';
config['longfonds_housenumber'] = 'xxx';					



var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:120000, image: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=50.84833&lng=5.68889&overname=2&zoom=8&naam=Maastricht&size=3&voor=0', url: 'https://weerdata.weerslag.nl/image/1.0/?size=ani-8-Onweer-550x550&type=Freecontent&v=21752244'}
// buttons.buienradar = {width:12, isimage:true, refreshimage:120000, image: '', url: 'https://weerdata.weerslag.nl/image/1.0/?size=ani-8-Sneeuw-250x250&type=Freecontent&v=72847831'}
buttons.webcam = {width:12, isimage:true, refresh:500, image: 'http://192.168.0.24/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=USERNAME&pwd=PASSWORD', url: 'http://192.168.0.24/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=USERNAME&pwd=PASSWORD'}
// buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}
buttons.temperatuur = {width:6, isimage:true, refreshimage:300000, image: 'https://weerplaza.nl/gdata/10min/GMT_TTTT_latest.png', url: 'https://weerplaza.nl/gdata/10min/GMT_TTTT_latest.png'}
buttons.wind = {width:6, isimage:true, refreshimage:300000, image: 'https://weerplaza.nl/gdata/10min/GMT_FFFF_latest.png', url: 'https://weerplaza.nl/gdata/10min/GMT_FFFF_latest.png'}
buttons.zicht = {width:6, isimage:true, refreshimage:300000, image: 'https://weerplaza.nl/gdata/10min/GMT_VVVV_latest.png', url: 'https://weerplaza.nl/gdata/10min/GMT_VVVV_latest.png'}
buttons.zon = {width:6, isimage:true, refreshimage:300000, image: 'https://api.buienradar.nl/image/1.0/sunmapnl/?ext=png&l=0&nt=1&forc=0&hist=1&step=0&width=350', url: 'https://api.buienradar.nl/image/1.0/sunmapnl/?ext=png&l=0&nt=1&forc=0&hist=1&step=0&width=350'}
buttons.pluim = {width:12, isimage:true, refreshimage:3600000, image: 'http://www.weerplaza.nl/data/eps/pluim_volledig_06380.png', url: 'http://www.weerplaza.nl/data/eps/pluim_volledig_06380.png'}
buttons.alarm = {width:6, isimage:true, refreshimage:240000, image: 'http://alarm.noodweercentrale.nl/images/map/limburg_index.png', url: 'http://alarm.noodweercentrale.nl/images/map/limburg_index.png'}



var frames = {}
frames.weer = {refreshiframe:360000, height:205,frameurl:"https://gadgets.buienradar.nl/gadget/forecastandstation/6380/",width:9}
//frames.buienradar = {refreshiframe:60000, height:360,frameurl:"https://gadgets.buienradar.nl/gadget/zoommap/?lat=50.84833&lng=5.68889&overname=2&zoom=8&naam=Maastricht&size=2b&voor=0",width:9}
frames.buienradar = {refreshiframe:60000, height:360,frameurl:"https://maps.weerslag.nl/GratisRadar/1289/1020/sneeuw?zoom=9",width:12}
frames.wetteronline = {refreshiframe:60000, height:1000,frameurl:"https://maps.weerslag.nl/GratisRadar/1289/1020/sneeuw?zoom=8",width:9}


var blocks = {}
blocks[48] = {} // deurbel
blocks[48]['playsound'] = 'sounds/deurbel.mp3';
blocks[48]['gotoslide'] = 2;
blocks[48]['width'] = 4;
blocks[48]['hide_data'] = true;

blocks[7348] = {} // Deurbell gaat over maar deze wordt pas naar 30 seconde geactiveerd en moet terug gaan naar pagina 1 Trigger voor tablet
blocks[7348]['gotoslide'] = 1;
blocks[7348]['hide_data'] = true;

blocks[7358] = {} // Camera Trigger voor tablet
blocks[7358]['gotoslide'] = 2;
blocks[7358]['hide_data'] = true;


blocks[6207] = {} // Verwarming aan
blocks[6207]['icon'] = 'fab fa-hotjar';
blocks[6207]['width'] = 4;

blocks['s1'] = {} // alles uit
blocks['s1']['width'] = 4;
blocks['s1']['hide_data'] = true;
blocks['s1']['icon'] = 'fas fa-bed';
blocks['s1']['playsound'] = 'sounds/slapen.mp3';
blocks['s1']['title'] = 'Slapen';

blocks['s4'] = {} // Film stand
blocks['s4']['width'] = 4;
blocks['s4']['hide_data'] = true;
blocks['s4']['icon'] = 'fas fa-video';
blocks['s4']['title'] = 'Film Scene';

blocks[1970] = {} // woonkamer alles aan
blocks[1970]['width'] = 4;
blocks[1970]['title'] = 'Woonkamer';
blocks[1970]['hide_data'] = true;

blocks[690] = {} // alarm
blocks[690]['icon'] = 'fas fa-bell';
blocks[690]['width'] = 4;
blocks[690]['playsoundOn'] = 'sounds/alarm.mp3';

blocks[7503] = {} // alarm wasmachine
blocks[7503]['width'] = 4;
blocks[7503]['playsoundOn'] = 'sounds/wasmachine.mp3';

blocks[3537] = {} // brievenbus
blocks[3537]['hide_data'] = true;
blocks[3537]['playsoundOn'] = 'sounds/mail.mp3';

blocks['s8'] = {} // rolluik alle omhoog
blocks['s8']['title'] = 'Rolluik Omhoog';
blocks['s8']['icon'] = 'fas fa-chevron-up';
blocks['s8']['width'] = 6;
blocks['s8']['hide_data'] = true;

blocks['s9'] = {} // rolluik alle omlaag
blocks['s9']['title'] = 'Rolluik Omlaag';
blocks['s9']['icon'] = 'fas fa-chevron-down';
blocks['s9']['width'] = 6;
blocks['s9']['hide_data'] = true;

blocks[951] = {} //windrichting
blocks[951]['width'] = 8;

blocks[3962] = {} //buienradar voorspelling
blocks[3962]['icon'] = 'fas fa-cloud';
blocks[3962]['title'] = '';
blocks[3962]['width'] = 12;

blocks[3968] = {} //buienradar voorspelling
blocks[3968]['title'] = 'Regen verwachting';
blocks[3968]['width'] = 12;
blocks[3968]['playsoundOn'] = 'sounds/regen.mp3';


blocks[3960] = {} // weervoorspelling
blocks[3960]['title'] = '';
blocks[3960]['hide_data'] = true;
blocks[3960]['icon'] = 'far fa-comments';
blocks[3960]['width'] = 12;

blocks[1655] = {} //Rolluik Achter
blocks[1655]['title'] = 'Rolluik Achter';
blocks[1655]['width'] = 6;
blocks[1655]['hide_stop'] = true;

blocks[1743] = {} //Rolluik Voor
blocks[1743]['title'] = 'Rolluik Voor';
blocks[1743]['width'] = 6;
blocks[1743]['hide_stop'] = true;

blocks[3570] = {} // voordeur 
blocks[3570]['playsoundOn'] = 'sounds/voordeuropen.mp3';
blocks[3570]['hide_data'] = true;

blocks[3286] = {} // achterdeur
blocks[3286]['playsoundOn'] = 'sounds/achterdeuropen.mp3';
blocks[3286]['hide_data'] = true;


blocks[7261] = {} // schuur
blocks[7261]['playsoundOn'] = 'sounds/schuurdeuropen.mp3';
blocks[7261]['hide_data'] = true;

blocks[7292] = {} // poort
blocks[7292]['playsoundOn'] = 'sounds/poortdeuropen.mp3';
blocks[7292]['hide_data'] = true;

blocks[7257] = {} // temp buiten
blocks[7257]['title'] = '';
blocks[7257]['width'] = 12;
blocks[7257]['hide_data'] = true;
blocks[7257]['switch'] = true;
blocks[7257]['icon'] = '';

blocks[7387] = {} // gevoels temp
blocks[7387]['title'] = 'Gevoel';
blocks[7387]['width'] = 12;
blocks[7387]['hide_data'] = true;
blocks[7387]['switch'] = true;
blocks[7387]['icon'] = '';

blocks[7389] = {} // dauwpunt
blocks[7389]['title'] = 'Dauwpunt';
blocks[7389]['width'] = 12;
blocks[7389]['hide_data'] = true;
blocks[7389]['switch'] = true;
blocks[7389]['icon'] = '';


blocks[4206] = {} // ledlamp keuken
blocks[4206]['title'] = 'Keuken';
blocks[4206]['width'] = 12

blocks[3509] = {} // temp woonkamer
blocks[3509]['title'] = 'Woonkamer';
blocks[3509]['width'] = 4;

blocks[630] = {} // temp zolder opvang
blocks[630]['title'] = 'Zolder Opvang';
blocks[630]['width'] = 4;

blocks[6972] = {} // temp waarschuwing
blocks[6972]['icon'] = 'fas fa-temperature-low';
blocks[6972]['title'] = '';
blocks[6972]['width'] = 12;

blocks[6973] = {} // weer waarschuwing
blocks[6973]['icon'] = 'fas fa-bolt';
blocks[6973]['title'] = '';
blocks[6973]['width'] = 12;

blocks[6974] = {} // zicht waarschuwing
blocks[6974]['icon'] = 'far fa-eye';
blocks[6974]['title'] = '';
blocks[6974]['width'] = 12;

blocks[6975] = {} // wind waarschuwing
blocks[6975]['icon'] = 'fas fa-wind';
blocks[6975]['title'] = '';
blocks[6975]['width'] = 12;

blocks[6976] = {} // windstoten waarschuwing
blocks[6976]['icon'] = 'fas fa-wind';
blocks[6976]['title'] = '';
blocks[6976]['width'] = 12;

blocks[7022] = {} // deuren en brievenbusmelding
blocks[7022]['icon'] = 'far fa-comment-dots';
blocks[7022]['title'] = '';
blocks[7022]['width'] = 12;


blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Waarschuwing';

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

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

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

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

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

blocks['blocktitle_7'] = {}
blocks['blocktitle_7']['type'] = 'blocktitle';
blocks['blocktitle_7']['title'] = 'Pluim';

blocks['blocktitle_8'] = {}
blocks['blocktitle_8']['type'] = 'blocktitle';
blocks['blocktitle_8']['title'] = 'Verwarming';


//Columns defenition
var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['s1',1970,'s4',6207,3509,'630_1',4206,'s8','s9',1655,1743,6973,6972,6974,6975,6976]
columns[1]['width'] = 4;


columns[2] = {}
columns[2]['blocks'] = ['currentweather_big_owm',7257,'graph_7257','weather_owm','garbage',7022]
//columns[2]['blocks'] = ['currentweather',7257,7387]
columns[2]['width'] = 4;

columns[3] = {}
columns[3]['blocks'] = [frames.buienradar,3962,3960,buttons.webcam]
columns[3]['width'] = 4;

columns[4] = {}
columns[4]['blocks'] = [buttons.webcam]
columns[4]['width'] = 12;

columns[5] = {}
columns[5]['blocks'] = [frames.wetteronline]
columns[5]['width'] = 12;

// weer
columns[6] = {}
columns[6]['blocks'] = ['blocktitle_2',frames.buienradar,951,118,952,954,955,'longfonds']
columns[6]['width'] = 4;

columns[7] = {}
columns[7]['blocks'] = ['blocktitle_3',buttons.temperatuur,buttons.wind,buttons.alarm,buttons.zon]
columns[7]['width'] = 4;

columns[8] = {}
columns[8]['blocks'] = ['blocktitle_4',3509,3517,3525,3560,585,3513,3087]
columns[8]['width'] = 4;

columns[10] = {} // pluim
columns[10]['blocks'] = ['blocktitle_7',buttons.pluim]
columns[10]['width'] = 4;

// status

columns[9] = {}
columns[9]['blocks'] = ['blocktitle_5',48,690,3537,3857,3968,3570,3286,168,109,7348,7358,7261,7292,7503]
columns[9]['width'] = 4;


// schermen
var screens = {}

screens[1] = {} // hoofdpagina
screens[1]['columns'] = [1,2,3]
screens[1]['background'] = 'h.jpg';

screens[2] = {} // pagina met camera auto
screens[2]['columns'] = [4]
screens[2]['background'] = 'h.jpg';

screens[3] = {} // weer radar
screens[3]['columns'] = [5]
screens[3]['background'] = 'h.jpg';

screens[4] = {} // pagina met weer 1
screens[4]['columns'] = [6,7,10]
screens[4]['background'] = 'h.jpg';

screens[5] = {} // pagina met weer 2
screens[5]['columns'] = [8]
screens[5]['background'] = 'h.jpg';

screens[6] = {} // status pagina
screens[6]['columns'] = [9]
screens[6]['background'] = 'h.jpg';

Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz Beta 2.5.1 to 2.5.10 button.webcam issue

Post by Dave47 »

Maybe with: forcerefresh:true

Code: Select all

  buttons.webcam = {forcerefresh:true, width:12, isimage:true, refresh:2000, image: 'http://xxx.xxx.xxx.x:port/snapshot.cgi?user=user&pwd=pwd', url: 'http://xxx.xxx.xxx.x:port/snapshot.cgi?user=user&pwd=pwd'}	 
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz Beta 2.5.1 to 2.5.10 button.webcam issue

Post by Vomera »

Tnx this works for me! :) when i searched with "forcerefresh" there were some topics about it :)
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz Beta 2.5.1 to 2.5.10 button.webcam issue

Post by Dave47 »

Which deurbel you use? Which button outside?
When somebody is ringing you go to the webcam screen?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest