Black screen - Resolution problems - smartphones and more
Posted: Wednesday 17 February 2021 17:57
Hey guys,
I have a problem.
I've been trying to tackle this one for a while.
I have my screens in config.js set up with max resolution. I'll post an example down below.
So the whole idea of this dashboard is that I want to use it on a 10" Tablet with a resolution 1920 x 1080. I also want a desktop version to check up on my Dekstop.
My main desktop monitor has a resolution of 2560 x 1440.
So when I put that resolution in my max_resolution it works on my dekstop with a big enough firefox or chrome window, otherwise it loads and just shows a black screen. This is the same for my phone and tablet.
As soon as I change max_resolution to 1920 x 1080 it always shows a black screen.
I even tried responsive mode in the developers tools of both browsers, with no succes.
Now I have also cleared my page cache several times, reloaded the page in chrome with empty cache & hard reload. Even (inside webinspector-network tab) ticked the box for disable cache.
I'll put the code for the screen below, I hope someone can help me cause this is driving me nuts..
Greetings,
Thirsty
Code:
1080P version, I made sure the total width of the collumns in here were max 12
Unless it has to do with individual block width..
The 1440P version, noticeonly the resolution at maxwidth and maxheight have changed in this snippet.
I have a problem.
I've been trying to tackle this one for a while.
I have my screens in config.js set up with max resolution. I'll post an example down below.
So the whole idea of this dashboard is that I want to use it on a 10" Tablet with a resolution 1920 x 1080. I also want a desktop version to check up on my Dekstop.
My main desktop monitor has a resolution of 2560 x 1440.
So when I put that resolution in my max_resolution it works on my dekstop with a big enough firefox or chrome window, otherwise it loads and just shows a black screen. This is the same for my phone and tablet.
As soon as I change max_resolution to 1920 x 1080 it always shows a black screen.
I even tried responsive mode in the developers tools of both browsers, with no succes.
Now I have also cleared my page cache several times, reloaded the page in chrome with empty cache & hard reload. Even (inside webinspector-network tab) ticked the box for disable cache.
I'll put the code for the screen below, I hope someone can help me cause this is driving me nuts..
Greetings,
Thirsty
Code:
1080P version, I made sure the total width of the collumns in here were max 12
Unless it has to do with individual block width..
Code: Select all
...
var columns = {}
columns[1] = {}
columns[1]['blocks'] = [title_presence, phone_thur, phone_peet, title_temperature, temperatuur_woonkamer, temperatuur_buiten, title_solar, solar_inverter, solar_nu, solar_totaal]
columns[1]['width'] = 2;
columns[2] = {}
columns[2]['blocks'] = [title_misc, 'garbage', title_gas_and_elektra, temp_woonkamer_setpoint, p1_gas_nu, p1_gas_totaal, p1_elektra_nu, p1_elektra_vandaag, p1_elektra_totaal, p1_grafiek_gas, p1_grafiek_elektra]
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['sunrise', buttons.log]
columns[3]['width'] = 2;
columns[5] = {}
columns[5]['blocks'] = [title_news, news_1, news_2, buttons.nos, buttons.telegraaf, buttons.nunlgames, buttons.nunltech, 'currentweather_big_owm', 'weather_owm']
columns[5]['width'] = 4;
columns[6] = {}
columns[6]['blocks'] = [title_tvguide_1, tvguide.dutch_1, tvguide.dutch_2]
columns[6]['width'] = 4;
columns[9] = {}
columns[9]['blocks'] = [title_raspberry, pi_up_time, pi_cpu_usage, pi_cpu_temperature, pi_memory_usage, pihole_status, pihole_ads_percentage, title_radio, 'streamplayer']
columns[9]['width'] = 4;
var screens = {}
screens[max_resolution_desktop] = {}
screens[max_resolution_desktop]['maxwidth'] = 1920;
screens[max_resolution_desktop]['maxheight'] = 1080;
screens[max_resolution_desktop][1] = {}
screens[max_resolution_desktop][1]['columns'] = [1,2,3]
screens[max_resolution_desktop][2] = {}
screens[max_resolution_desktop][2]['columns'] = [5,6,9]
Code: Select all
...
var columns = {}
columns[1] = {}
columns[1]['blocks'] = [title_presence, phone_thur, phone_peet, title_temperature, temperatuur_woonkamer, temperatuur_buiten, title_solar, solar_inverter, solar_nu, solar_totaal]
columns[1]['width'] = 2;
columns[2] = {}
columns[2]['blocks'] = [title_misc, 'garbage', title_gas_and_elektra, temp_woonkamer_setpoint, p1_gas_nu, p1_gas_totaal, p1_elektra_nu, p1_elektra_vandaag, p1_elektra_totaal, p1_grafiek_gas, p1_grafiek_elektra]
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['sunrise', buttons.log]
columns[3]['width'] = 2;
columns[5] = {}
columns[5]['blocks'] = [title_news, news_1, news_2, buttons.nos, buttons.telegraaf, buttons.nunlgames, buttons.nunltech, 'currentweather_big_owm', 'weather_owm']
columns[5]['width'] = 4;
columns[6] = {}
columns[6]['blocks'] = [title_tvguide_1, tvguide.dutch_1, tvguide.dutch_2]
columns[6]['width'] = 4;
columns[9] = {}
columns[9]['blocks'] = [title_raspberry, pi_up_time, pi_cpu_usage, pi_cpu_temperature, pi_memory_usage, pihole_status, pihole_ads_percentage, title_radio, 'streamplayer']
columns[9]['width'] = 4;
var screens = {}
screens[max_resolution_desktop] = {}
screens[max_resolution_desktop]['maxwidth'] = 2560;
screens[max_resolution_desktop]['maxheight'] = 1440;
screens[max_resolution_desktop][1] = {}
screens[max_resolution_desktop][1]['columns'] = [1,2,3]
screens[max_resolution_desktop][2] = {}
screens[max_resolution_desktop][2]['columns'] = [5,6,9]