Unable to get weather information
Posted: Friday 11 November 2022 11:53
by Merlijn
Hi guys,
I'd like some help, i've been trying for days now and getting hopeless.
I am unable to get any type of weather information in Dashticz.
here's my config.js, hope someone see's what am doing wrong.
I'd like some help, i've been trying for days now and getting hopeless.
I am unable to get any type of weather information in Dashticz.
here's my config.js, hope someone see's what am doing wrong.
- Spoiler: show
-
var config = {}
config['domoticz_ip'] = 'xxx;
config['language'] = 'nl_NL';
config['app_title'] = 'Dashticz V3';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['use_favorites'] = 0; //Request all Domoticz Devices, not only favorites
config['auto_positioning'] = 0; // Use 0 this if you have defined your own columns
config['hide_topbar'] = 1;
config['spot_clientid'] = 'xxxx';
config['garbage_mapping'] = {
rest: ['grof', 'grey', 'rest', 'grijs','grijze'],
gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biod gradables', 'snoei'],
pmd: ['plastic', 'pmd', 'verpakking', 'kunststof', 'valorlux'],
papier: ['papier', 'blauw', 'blue', 'recycling bin collection'],
kca: ['chemisch', 'kca','kga'],
brown: ['brown', 'verre'],
black: ['black', 'zwart'],
milieu: ['milieu'],
kerstboom: ['kerst'],
};
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
brown: {kliko: 'brown', code: '#7c3607', 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: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
};
config['owm_api'] = 'https://api.openweathermap.org/data/3.0 ... &appid=xxx';
config['owm_city'] = 'xxx';
var tvguide = {}
tvguide.dutch = {
title: 'Tv gids',
key:'dutch',
icon: 'fas fa-tv',
width:6,
channels: [1,3,4,31,46,92],
maxitems: 5 }
var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Schakelaars';
blocks['blocktitle_2'] = {
type: 'blocktitle',
title: 'Elecktriciteitsverbruik',
}
blocks[1] = {
width: 6
}
blocks[40] = {
width: 6
blocks[177] = {
width: 4
}
blocks[178] = {
width: 4
}
blocks[179] = {
width: 4
}
blocks['weather'] = {
type: 'weather',
apikey: 'https://api.openweathermap.org/data/3.0 ... &appid=xxx',
}
blocks['buien'] = {
frameurl: 'https://gadgets.buienradar.nl/gadget/zo ... e=2&voor=0',
scrollbars: false,
width:12,
scaletofit: 256,
aspectratio: 1,
}
blocks['mygarbage'] = {
company: 'circulusberkel',
zipcode: 'xxx',
street: 'xxx',
housenumber: xx,
maxitems: 12,
width: 12
}
blocks['treinen']= {
station: 'xx',
title:'xxx',
show_lastupdate:true,
provider: 'treinen',
show_via: false,
icon: 'fas fa-train',
results: 4
};
blocks['ovapi'] = {
tpc: 'xxx',
title:'xxx',
show_lastupdate:true,
provider: 'ovapi',
show_via: false,
icon: 'fas fa-bus',
results: 4
};
var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['miniclock','settings']
columns[1] = {}
columns[1]['blocks'] = ['weather', 'blocktitle_2', 177, 178, 179]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1', 1, 40, tvguide.dutch, 'treinen', 'ovapi']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['basicclock', 'sunrise', 'mygarbage', 'spotify', 'buien']
columns[3]['width'] = 2;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]