- Spoiler: show
One other question: can the days of the week be formated with a first capitalized char? Monday instead of monday etc.
Moderators: leecollings, htilburgs, robgeerts

Code: Select all
blocks['weather1'] = {
type: 'weather',
width: 12,
refresh: 3600,
decimals: 0,
scale: 1,
layout: 2
}
Please double check that you added 'weather1' to a column.sammyke007 wrote:Anyone know how to fix this please?
The old widget was properly aligned to the center.
config.js:Code: Select all
blocks['weather1'] = { type: 'weather', width: 12, refresh: 3600, decimals: 0, scale: 1, layout: 2 }
config.js:Lokonli wrote: Monday 26 April 2021 22:59Please double check that you added 'weather1' to a column.sammyke007 wrote:Anyone know how to fix this please?
The old widget was properly aligned to the center.
config.js:Code: Select all
blocks['weather1'] = { type: 'weather', width: 12, refresh: 3600, decimals: 0, scale: 1, layout: 2 }
Can you post your custom.css?
Verstuurd vanaf mijn AC2003 met Tapatalk
Code: Select all
columns[2] = {
blocks: ['weather1','weather2','bt4','49_1','TempZolder','TempOutside','bt2','Sammy','Vero','MC',62],
width: 4
}
Code: Select all
/*
CUSTOM CSS FILE
*/
.transbg[class*="col-xs"] {
border-radius: 10px; /* Rounded corners */
}
.transbg[class*="col-xs"] {
border: 3px solid rgba(255,255,255,0); /* border: 7px -> 3px - Smaller space between blocks */
}
span.av_temp {
font-size: 16px; /* border: 24px -> 16px - Textsize weatherblock */
}
.trashcan {
width: 150% !important;
max-width: 50px;
}
/* Block 15 en 16 (alarm en arm status) minder hoog maken */
.block_15 {
height: auto !important;
}
.block_16 {
height: auto !important;
}
.warningred {
border-color: red !important;
}
.warningorange {
border-color: orange !important;
}
.warninggreen {
border-color: green !important;
}
/* background-color: green !important; */
/* border-color: green !important; */
/* ----- Alarmpaneel fullscreen 2 kleuren flikkeren ----- */
.alarm {
-webkit-animation: flash 1s infinite; /* Safari 4+ */
-moz-animation: flash 1s infinite; /* Fx 5+ */
-o-animation: flash 1s infinite; /* Opera 12+ */
animation: flash 1s infinite; /* IE 10+, Fx 29+ */
}
@keyframes flash {
0%, 49% {
background-color: #681717; /* DONKERROOD */
}
50%, 100% {
background-color: #e50000; /* ROOD */
}
}
/* Al deze secpanel CSS items staan in dashticz/css/creative.css rond lijn 2750 */
.sec-frame .keypad-header .fas {
-webkit-animation: none;
animation: none;
}
/* Geen strobe animatie in status van secpaneel */
.text-strobe {
animation: none;
color: white;
}
/*
.sec-frame {
background-image: none;
background: rgba(0,0,0,0.2);
-webkit-box-shadow: none;
box-shadow: none;
}
.sec-frame .keypad-header {
display: none;
}
*/
.sec-frame .keypad-footer {
display: none;
}
.sec-frame .screw {
display: none;
} */
Code: Select all
.weathercurrent .icon {
margin-left: 1em !important;
}
.weathercurrent .temp {
font-size: 22px !important;
margin-right: 1em !important;
margin-left: 1em !important;
}
.weathercurrent .city {
font-size: 22px !important;
font-weight: bold !important;
}
.weather_2 {
height: 70px !important;
Code: Select all
.transbg[class*="col-xs"] {
border-radius: 10px !important; /* Rounded corners */
}
Code: Select all
.weatherday {
border-radius: 10px !important; /* Rounded corners weather*/
}
I tried this piece of css but is does not seems to work.Lokonli wrote: Monday 26 April 2021 13:47
[data-id='mycoolweatherblock'].weather .weatherday {
padding-top: 0px;
padding-bottom: 0px;
}
[/code]

The styling of the current weather block, especially with static weather icons, was not very elegant.sammyke007 wrote: Monday 26 April 2021 23:03config.js:Lokonli wrote: Monday 26 April 2021 22:59Please double check that you added 'weather1' to a column.sammyke007 wrote:Anyone know how to fix this please?
The old widget was properly aligned to the center.
config.js:Code: Select all
blocks['weather1'] = { type: 'weather', width: 12, refresh: 3600, decimals: 0, scale: 1, layout: 2 }
Can you post your custom.css?
Verstuurd vanaf mijn AC2003 met TapatalkCode: Select all
columns[2] = { blocks: ['weather1','weather2','bt4','49_1','TempZolder','TempOutside','bt2','Sammy','Vero','MC',62], width: 4 }
Your block boundaries are difficult to see. To change the empty space around the weather forecast blocks and the weather icons, add the following to custom.css:Chris12 wrote: Wednesday 28 April 2021 7:55I tried this piece of css but is does not seems to work.Lokonli wrote: Monday 26 April 2021 13:47
[data-id='mycoolweatherblock'].weather .weatherday {
padding-top: 0px;
padding-bottom: 0px;
}
[/code]
What I want to accomplish is that the space between the items can be smaller, see picture below.
The bottom of the OWM block for example has now a lot of empty space.
Code: Select all
.weatherday {
padding-top: 0px !important;
padding-bottom: 0px !important
}
/* Next block reduces the empty space around the animated weather icons
*/
.weatherday .skycon {
margin-top: 0px;
margin-bottom: 0px
}
/* Next block reduces the empty space around the static weather icons
*/
.weatherday .wi {
padding-top: 0.1em !important;
padding-bottom: 0.1em !important;
}
Code: Select all
.weatherday .description {
min-height: 1em !important
}

Code: Select all
div[data-id='weather-owm-new'] .skycon {width: 80px;margin-top: -5px;margin-left: -20px;display: inline-block !important;text-align:center !important;}
Code: Select all
div[data-id='weather-owm-new'] .skycon {width: 80% !important;height: 80% !important; }Code: Select all
.weatherday .skycon {
width: 75%
}
Code: Select all
div[data-id='weather-owm-new'] {height: 280px !important;}With UK language it will already be capitalized.Chris12 wrote: Monday 26 April 2021 17:38 One other question: can the days of the week be formated with a first capitalized char? Monday instead of monday etc.
Code: Select all
.weather .day {
text-transform: capitalize;
}
Thanks!!Lokonli wrote: Thursday 29 April 2021 20:17With UK language it will already be capitalized.Chris12 wrote: Monday 26 April 2021 17:38 One other question: can the days of the week be formated with a first capitalized char? Monday instead of monday etc.
To capitalize the Dutch words as well, add the following to custom.css:
Code: Select all
.weather .day { text-transform: capitalize; }
CSS is so powerful... I should dig in to it deeper. Tnx for all your tips and quick reply Lokonli!Lokonli wrote: Thursday 29 April 2021 20:17With UK language it will already be capitalized.Chris12 wrote: Monday 26 April 2021 17:38 One other question: can the days of the week be formated with a first capitalized char? Monday instead of monday etc.
To capitalize the Dutch words as well, add the following to custom.css:
Code: Select all
.weather .day { text-transform: capitalize; }
Code: Select all
blocks['weather4'] = {
type: 'weather',
layout: 4,
count: 6,
name: 'Amsterdam',
showDetails: false,
showHourly: false,
// monochrome: true,
colors: {
cloud: 'orange',
light_cloud: 'orange',
dark_cloud: 'orange',
}
}
Nice adition, just tried it and it works fine!
Users browsing this forum: No registered users and 1 guest