Dashticz Coronavirus - Features, Fixes & Updates

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by Vomera »

Works like a charm, thank you so much

Image
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by Chris12 »

Is the Corona feature currently broken? in the last 2 beta's I do not get a graph anymore. I'm now running beta 3.6.4
Looked at my previous working code but culd not see any strange things.

Code: Select all

//Corona COVID-19
blocks['corona_graph'] = {
	title:'',
	type: 'corona',
	countryCode: 'NL',
	startDate: '01/03/2020',
	graph: 'bar',
	datasetColors: ['LightGreen','Orange','Purple', 'Red'],
	stacked: true,
	toolTipStyle: true,
	height: '350px',
	zoom: 'x'
} 
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by EdwinK »

Can't get it to work either. O well, something to sort out tomorrow.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by Lokonli »

The server that provides the Corona data is down.
Let's wait a few days: it might come back. Otherwise we have to find an alternative server.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by HansieNL »

Lokonli wrote: Monday 19 October 2020 9:40 The server that provides the Corona data is down.
Let's wait a few days: it might come back. Otherwise we have to find an alternative server.
Isn’t it better to kill the Corona virus and get rid off the block? ;)
Blah blah blah
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by EdwinK »

HansieNL wrote: Monday 19 October 2020 13:29
Lokonli wrote: Monday 19 October 2020 9:40 The server that provides the Corona data is down.
Let's wait a few days: it might come back. Otherwise we have to find an alternative server.
Isn’t it better to kill the Corona virus and get rid off the block? ;)
That would be nice if we can do that :) Unfortunately, we can't do so yet.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
lzwfkv
Posts: 37
Joined: Sunday 11 August 2019 16:54
Target OS: -
Domoticz version:
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by lzwfkv »

Lokonli wrote: Monday 19 October 2020 9:40 The server that provides the Corona data is down.
Let's wait a few days: it might come back. Otherwise we have to find an alternative server.
It didn't come back yet; therefore i tried an old provider used in coronavirus block and it still seems to work.
I have replaced (commented out):
https://cvtapi.nl/v2/
with
https://covid-tracker-us.herokuapp.com/v2/

in cornavirus.js.
Thiso
Posts: 6
Joined: Monday 05 October 2020 21:08
Target OS: -
Domoticz version:
Contact:

Re: Dashticz Coronavirus reporting

Post by Thiso »

Image

How to reduce the fontsize of the blocks? Mine are way to big.
Struggling to find the correct fields to add in the custom.css
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Coronavirus reporting

Post by HansieNL »

Spoiler: show
Thiso wrote: Wednesday 21 October 2020 10:44 Image

How to reduce the fontsize of the blocks? Mine are way to big.
Struggling to find the correct fields to add in the custom.css
@Thiso Can you post the code you use for the blocks? Than I'll take a look.
Blah blah blah
Thiso
Posts: 6
Joined: Monday 05 October 2020 21:08
Target OS: -
Domoticz version:
Contact:

Re: Dashticz Coronavirus reporting

Post by Thiso »

HansieNL wrote: Wednesday 21 October 2020 18:02
Spoiler: show
Thiso wrote: Wednesday 21 October 2020 10:44 Image

How to reduce the fontsize of the blocks? Mine are way to big.
Struggling to find the correct fields to add in the custom.css
@Thiso Can you post the code you use for the blocks? Than I'll take a look.
Spoiler: show
blocks['coronavirus_global_confirmed'] = {
report: 'confirmed',
type: 'corona',
width: 3
}

blocks['coronavirus_global_deaths'] = {
type: 'corona',
report: 'Deaths',
width: 3
}

blocks['coronavirus_gb_confirmed'] = {
type: 'corona',
countryCode:'BE',
report: 'Confirmed',
width: 3
}

blocks['coronavirus_gb_deaths'] = {
type: 'corona',
countryCode:'BE',
report: 'Deaths',
width: 3
}

blocks['coronavirus_gb_ratio'] = {
type: 'corona',
countryCode:'BE',
report: 'Ratio',
width: 3
}

blocks['coronavirus_gb_doubling'] = {
type: 'corona',
countryCode:'BE',
report: 'Doubling',
width: 3
}
Nothing special there to change the font size or icon size. I though that had to be through custom.css.
I find it hard to figure out for each of the modules how to handle them with custom.css. I typically just search the internet or try to dive in the code to find out myself. This is what I tried, sadly not working:
Spoiler: show
.block_coronavirus_global_confirmed .countryCode {
font-size: 10px;
}

.block_coronavirus_global_deaths .data {
font-size: 10px;
}
I looks ugly like this:
Screenshot 2020-10-22 081407.png
Screenshot 2020-10-22 081407.png (195.12 KiB) Viewed 826 times
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by Chris12 »

lzwfkv wrote: Wednesday 21 October 2020 6:29
Lokonli wrote: Monday 19 October 2020 9:40 The server that provides the Corona data is down.
Let's wait a few days: it might come back. Otherwise we have to find an alternative server.
It didn't come back yet; therefore i tried an old provider used in coronavirus block and it still seems to work.
I have replaced (commented out):
https://cvtapi.nl/v2/
with
https://covid-tracker-us.herokuapp.com/v2/

in cornavirus.js.
Thanks! that's works fine for now :D
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Coronavirus reporting

Post by HansieNL »

Spoiler: show
Thiso wrote: Thursday 22 October 2020 8:15
HansieNL wrote: Wednesday 21 October 2020 18:02
Spoiler: show
Thiso wrote: Wednesday 21 October 2020 10:44 Image

How to reduce the fontsize of the blocks? Mine are way to big.
Struggling to find the correct fields to add in the custom.css
@Thiso Can you post the code you use for the blocks? Than I'll take a look.
Spoiler: show
blocks['coronavirus_global_confirmed'] = {
report: 'confirmed',
type: 'corona',
width: 3
}

blocks['coronavirus_global_deaths'] = {
type: 'corona',
report: 'Deaths',
width: 3
}

blocks['coronavirus_gb_confirmed'] = {
type: 'corona',
countryCode:'BE',
report: 'Confirmed',
width: 3
}

blocks['coronavirus_gb_deaths'] = {
type: 'corona',
countryCode:'BE',
report: 'Deaths',
width: 3
}

blocks['coronavirus_gb_ratio'] = {
type: 'corona',
countryCode:'BE',
report: 'Ratio',
width: 3
}

blocks['coronavirus_gb_doubling'] = {
type: 'corona',
countryCode:'BE',
report: 'Doubling',
width: 3
}
Nothing special there to change the font size or icon size. I though that had to be through custom.css.
I find it hard to figure out for each of the modules how to handle them with custom.css. I typically just search the internet or try to dive in the code to find out myself. This is what I tried, sadly not working:
Spoiler: show
.block_coronavirus_global_confirmed .countryCode {
font-size: 10px;
}

.block_coronavirus_global_deaths .data {
font-size: 10px;
}
I looks ugly like this:
Screenshot 2020-10-22 081407.png
@Thiso can you try with following code if it does what you want:

Code: Select all

.coronavirus.block_report .title {
   font-size: 10px !important;
}
.coronavirus.block_report .report {
   font-size: 12px !important;
}
Blah blah blah
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Coronavirus - Features, Fixes & Updates

Post by Lokonli »

lzwfkv wrote: Wednesday 21 October 2020 6:29
Lokonli wrote: Monday 19 October 2020 9:40 The server that provides the Corona data is down.
Let's wait a few days: it might come back. Otherwise we have to find an alternative server.
It didn't come back yet; therefore i tried an old provider used in coronavirus block and it still seems to work.
I have replaced (commented out):
https://cvtapi.nl/v2/
with
https://covid-tracker-us.herokuapp.com/v2/

in cornavirus.js.
Thanks for finding the new server!

I've updated this in the latest beta (3.6.5)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest