Page 2 of 7

Re: Dashticz v3.8.2 beta: New weather block

Posted: Monday 26 April 2021 17:38
by Chris12
By using the follwoing code, I have managed to get the same look as with the old weather_owm:
Spoiler: show

Code: Select all

.standby .weather 	{font-size: 30px !important;}
.standby .weather .weatherday .icon .skycon	{width: 50% !important;height: 50% !important;}
.standby .weather .weatherday  .day	{font-size: 60px !important;font-weight: bold !important;}
Still not sure why this isn't working with the data-id, maybe I was missing an extra weather div.

One other question: can the days of the week be formated with a first capitalized char? Monday instead of monday etc.

Re: Dashticz v3.8.2 beta: New weather block

Posted: Monday 26 April 2021 22:32
by sammyke007
Anyone know how to fix this please?
The old widget was properly aligned to the center.

Image

config.js:

Code: Select all

blocks['weather1'] = {
    type: 'weather',
	width: 12,
	refresh: 3600,
	decimals: 0,
	scale: 1,
    layout: 2
}

Re: Dashticz v3.8.2 beta: New weather block

Posted: Monday 26 April 2021 22:59
by Lokonli
sammyke007 wrote:Anyone know how to fix this please?
The old widget was properly aligned to the center.

Image

config.js:

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.
Can you post your custom.css?

Verstuurd vanaf mijn AC2003 met Tapatalk


Re: Dashticz v3.8.2 beta: New weather block

Posted: Monday 26 April 2021 23:03
by sammyke007
Lokonli wrote: Monday 26 April 2021 22:59
sammyke007 wrote:Anyone know how to fix this please?
The old widget was properly aligned to the center.

Image

config.js:

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.
Can you post your custom.css?

Verstuurd vanaf mijn AC2003 met Tapatalk
config.js:

Code: Select all

columns[2] = {
  blocks: ['weather1','weather2','bt4','49_1','TempZolder','TempOutside','bt2','Sammy','Vero','MC',62],
  width: 4
}
custom.css:

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;
} */

Re: Dashticz v3.8.2 beta: New weather block

Posted: Monday 26 April 2021 23:28
by sammyke007
I "fixed" it for now temporarily with:

custom.css

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;

Re: Dashticz v3.8.2 beta: New weather block

Posted: Tuesday 27 April 2021 10:11
by sammyke007
Also, the code

custom.css

Code: Select all

.transbg[class*="col-xs"] {
  border-radius: 10px !important;                   /* Rounded corners */
}
doesn't work for weather_0 / layout 0. The corners stay sharp instead of rounded.

I needed to apply:
custom.css

Code: Select all

.weatherday {
  border-radius: 10px !important;                   /* Rounded corners  weather*/
}

Re: Dashticz v3.8.2 beta: New weather block

Posted: Wednesday 28 April 2021 7:55
by Chris12
Lokonli wrote: Monday 26 April 2021 13:47
[data-id='mycoolweatherblock'].weather .weatherday {
padding-top: 0px;
padding-bottom: 0px;
}
[/code]
I tried this piece of css but is does not seems to work.

What I want to accomplish is that the space between the items can be smaller, see picture below.
Image

The bottom of the OWM block for example has now a lot of empty space.

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 13:59
by Lokonli
sammyke007 wrote: Monday 26 April 2021 23:03
Lokonli wrote: Monday 26 April 2021 22:59
sammyke007 wrote:Anyone know how to fix this please?
The old widget was properly aligned to the center.

Image

config.js:

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.
Can you post your custom.css?

Verstuurd vanaf mijn AC2003 met Tapatalk
config.js:

Code: Select all

columns[2] = {
  blocks: ['weather1','weather2','bt4','49_1','TempZolder','TempOutside','bt2','Sammy','Vero','MC',62],
  width: 4
}
The styling of the current weather block, especially with static weather icons, was not very elegant.

In the most recent beta I split the total width into three pieces of 33%, and the icon, temperature and city are centered within each block.

If the default styling should be different let me know.

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 14:31
by Lokonli
Chris12 wrote: Wednesday 28 April 2021 7:55
Lokonli wrote: Monday 26 April 2021 13:47
[data-id='mycoolweatherblock'].weather .weatherday {
padding-top: 0px;
padding-bottom: 0px;
}
[/code]
I tried this piece of css but is does not seems to work.

What I want to accomplish is that the space between the items can be smaller, see picture below.
Image

The bottom of the OWM block for example has now a lot of empty space.
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:

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;
} 
weather.jpg
weather.jpg (6.86 KiB) Viewed 1279 times
Current the height of the weather description is fixed to two lines, since the text can be two lines (like 'zeer licht bewolkt').

You can set the height to auto, but then the vertical postition of the other blocks may be shifted downwards it the description text is two lines.

Code: Select all

.weatherday .description {
  min-height: 1em !important
}

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 16:39
by Chris12
Hi @lokonli,

I tried the css code, but I can see no difference in the padding.
Below a new screenshot, more clear (changed my background)

Image

Especially the padding below the rain forcast and the forecast and weatehr description, I want to half (50%) that space.

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 16:59
by Lokonli
The icon also is a bit smaller than what I would expect.
Can you post your complete custom.css?

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 18:56
by Chris12
Hi @lokonli, I just sent you a PM with my custom.css

I already found the part resising the icon:

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;}
When removing this the block is now much better fitted:
Image

now replaced that with:

Code: Select all

div[data-id='weather-owm-new'] .skycon			{width: 80% !important;height: 80% !important; }
So now I only need to know how to remove the padding at the bottem of the block (below the rain forecast).
As the padding options you suggested do not seem to work (yet).

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 19:13
by Lokonli
try:

Code: Select all

.weatherday .skycon {
  width: 75%
}


Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 19:19
by Chris12
thanks lokonli, the option you suggested per PM works fine.

Code: Select all

div[data-id='weather-owm-new'] 					{height: 280px !important;}

Re: Dashticz v3.8.2 beta: New weather block

Posted: Thursday 29 April 2021 20:17
by Lokonli
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.
With UK language it will already be capitalized.

To capitalize the Dutch words as well, add the following to custom.css:

Code: Select all

.weather .day {
    text-transform: capitalize;
}

Re: Dashticz v3.8.2 beta: New weather block

Posted: Friday 30 April 2021 9:04
by Chris12
Lokonli wrote: Thursday 29 April 2021 20:17
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.
With UK language it will already be capitalized.

To capitalize the Dutch words as well, add the following to custom.css:

Code: Select all

.weather .day {
    text-transform: capitalize;
}
Thanks!!

Re: Dashticz v3.8.2 beta: New weather block

Posted: Friday 30 April 2021 9:46
by sammyke007
Lokonli wrote: Thursday 29 April 2021 20:17
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.
With UK language it will already be capitalized.

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!

Re: Dashticz v3.8.2 beta: New weather block

Posted: Friday 30 April 2021 16:34
by Lokonli
And if you like colored weather icons, try latest beta.

It only works for the animated weather icons.
orangeclouds.jpg
orangeclouds.jpg (38.91 KiB) Viewed 1209 times
By default, the colors are not orange :)

I used the following block:

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',
    }
}
This is also an example of the added layout:4 option.

https://dashticz.readthedocs.io/en/beta ... ather.html

Re: Dashticz v3.8.2 beta: New weather block

Posted: Friday 30 April 2021 19:54
by Chris12
Lokonli wrote: Friday 30 April 2021 16:34 And if you like colored weather icons, try latest beta.
Nice adition, just tried it and it works fine!

Maybe also get an option to add the wind in the forecast overview as well, below the rain?
Like SW 3 or NO 15m/s etc.

Re: Dashticz v3.8.2 beta: New weather block

Posted: Friday 30 April 2021 20:06
by Chris12
Another question about the weather layout 3 option.

Is it possible to re-form the wind directon notation to "N-NW" instead of "noord-noordwest"?
And have the wind speed in Beaufort instead of m/s ? It somehow needs to be recalculated based on for example this table:
http://www.kuijntjes.nl/weer/windsnelheid.htm