Unable to get weather information

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Merlijn
Posts: 12
Joined: Friday 11 November 2022 7:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: NL
Contact:

Unable to get weather information

Post 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.


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]
willemd
Posts: 631
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Unable to get weather information

Post by willemd »

The config file does not mean anything to me, sorry.

Did you follow the buienradar setup as explained in the wiki?
Does buienradar appear in the hardware list?
Do the buienradar devices appear in the device list and the various device tabs?
Any error messages in the log file?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Unable to get weather information

Post by HansieNL »

At config['owm_api'] = 'https://api.openweathermap.org/data/3.0 ... &appid=xxx'; you have only to add your api key, not the string you did.
Can you try if the block then works.
Blah blah blah
Merlijn
Posts: 12
Joined: Friday 11 November 2022 7:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: NL
Contact:

Re: Unable to get weather information

Post by Merlijn »

HansieNL wrote: Saturday 12 November 2022 15:22 At config['owm_api'] = 'https://api.openweathermap.org/data/3.0 ... &appid=xxx'; you have only to add your api key, not the string you did.
Can you try if the block then works.
Thanks alot! that was it!
User avatar
Sjonnie2017
Posts: 364
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Unable to get weather information

Post by Sjonnie2017 »

I have a somewhat similar problem. Since the update to Domoticz 2022.2 I seem to have lost my weather block in Dashticz. I checked the config.js file and I have an API key which should be working:

Code: Select all

config['wu_api'] = '';
config['wu_city'] = '';
config['wu_name'] = '0';
config['wu_country'] = 'NL';
config['owm_api'] = 'a985441ff3247e338823df1bed9bce77';
config['owm_city'] = 'My Home Town';
config['owm_name'] = 'My Home Town';
config['owm_country'] = 'nl';
config['owm_lang'] = 'nl';
config['owm_cnt'] = '5';
config['idx_moonpicture'] = '0';
config['owm_days'] = true;
config['owm_cnt'] = 5
config['owm_min'] = true;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
I replaced the actual location with My Home Town for this code snippet. Of course the config file has the actual town in it ;)

Tips on how to solve this?

TIA
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Unable to get weather information

Post by HansieNL »

@Sjonnie2017 Dashticz weather info has no connection to Domoticz.
Have you already tried to install the latest Dashticz beta and see if you still have the problem?
Blah blah blah
User avatar
Sjonnie2017
Posts: 364
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Unable to get weather information

Post by Sjonnie2017 »

Updated to beta. Refreshed Kiosk browser on my tablet but no luck. Will investigate further though
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest