This is a part of the code I am using:
- Spoiler: show
Block 31 should be a weather block, only the favicon shows.
Block 32 should be Buienradar, nothing to see.
But all I get is this:

Does anyone know what I am doing wrong?
Regards, Peter
Moderators: leecollings, htilburgs, robgeerts
Hi Edwin, thanks for your reply.
Sorry Hans, it was too late for me
Code: Select all
blocks['31'] = {
type: 'weather',
layout: 1,
count: 7,
interval: 3
}
blocks['32'] = {
frameurl: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.50467&lng=4.97229&overnam>
scrollbars: false,
width:12,
aspectratio: 0.66
}
//Definition of columns
columns = {}
columns[1] = {
blocks : [11,12,13,14,15,16,tvguide.dutch],
width: 3}
columns[2] = {
blocks : ['11','graph_9'],
width: 6}
columns[3] = {
blocks : ['clock','sunrise','news',31,32],
width: 3}
Code: Select all
config['owm_country'] = 'nl';
config['owm_lang'] = 'nl';
Code: Select all
blocks[31] = {
type: 'weather',
provider: 'owm',
layout: 1,
count: 7,
interval: 3
}
Code: Select all
var frames = {}
frames.weather = {
frameurl: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.50467&lng=4.97229&overname=2&zoom=8&naam=made&size=3&voor=1',
scrollbars: false,
width:12,
aspectratio: '0.66'
}
Code: Select all
columns[1]['blocks'] = [31,frames.weather]
Hello Hans, thanks for the help so far, but it is still only showing a icon (the sun). I have exactly copied your lines.HansieNL wrote: ↑Monday 03 April 2023 18:59 Can you add extra:to your config.jsCode: Select all
config['owm_country'] = 'nl'; config['owm_lang'] = 'nl';
And I used block:Naamloos.pngCode: Select all
blocks[31] = { type: 'weather', provider: 'owm', layout: 1, count: 7, interval: 3 }
Code: Select all
{
"version": "3.10.0.1",
"branch": "master",
"last_changes": "Publictransport: Fix for OVAPI",
"changelog" : {
"3.10.0": "Beta derived from 3.10",
"3.10": "Master version"
}
}
THANKS! This is finally working!HansieNL wrote: ↑Monday 03 April 2023 19:08 For the frame you have to use the following block code:And add frames.weather to your column like:Code: Select all
var frames = {} frames.weather = { frameurl: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.50467&lng=4.97229&overname=2&zoom=8&naam=made&size=3&voor=1', scrollbars: false, width:12, aspectratio: '0.66' }
Code: Select all
columns[1]['blocks'] = [31,frames.weather]
If you use a number as block name, then Dashticz assumes you want to show a Domoticz device.peterspieg wrote: ↑Monday 03 April 2023 21:02THANKS! This is finally working!HansieNL wrote: ↑Monday 03 April 2023 19:08 For the frame you have to use the following block code:And add frames.weather to your column like:Code: Select all
var frames = {} frames.weather = { frameurl: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.50467&lng=4.97229&overname=2&zoom=8&naam=made&size=3&voor=1', scrollbars: false, width:12, aspectratio: '0.66' }
Code: Select all
columns[1]['blocks'] = [31,frames.weather]
I really appreciate your help.
Regards, Peter
Code: Select all
blocks['buien'] = {
frameurl: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=51.3578&lng=6.17428&overname=2&zoom=8&naam=5912TN&size=3&voor=1',
scrollbars: false,
width:12,
aspectratio: 0.66
}
For the weather block:peterspieg wrote: ↑Monday 03 April 2023 8:39Sorry Hans, it was too late for me.
Now I have changed to layout one, but still not showing. Only the favicon is visible.
Block 32 also doesn'nt show. But the "news" block does show. So, the internet connection is ok.Code: Select all
blocks['31'] = { type: 'weather', layout: 1, count: 7, interval: 3 } blocks['32'] = { frameurl: 'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.50467&lng=4.97229&overnam> scrollbars: false, width:12, aspectratio: 0.66 } //Definition of columns columns = {} columns[1] = { blocks : [11,12,13,14,15,16,tvguide.dutch], width: 3} columns[2] = { blocks : ['11','graph_9'], width: 6} columns[3] = { blocks : ['clock','sunrise','news',31,32], width: 3}
Code: Select all
git checkout beta
git pull
Code: Select all
blocks['myweather'] = {
type: 'weather',
provider: 'owm3' , //Add this line
layout: 1,
count: 7,
interval: 3,
}
Users browsing this forum: No registered users and 1 guest