Page 2 of 2
Re: batterylevel contacts
Posted: Thursday 31 December 2020 19:03
by Lokonli
and can you post the output of:
Re: batterylevel contacts
Posted: Thursday 31 December 2020 19:36
by red73390
Lokonli wrote: ↑Thursday 31 December 2020 19:03
and can you post the output of:
Extract of the config.js
- Spoiler: show
- var config = {}
config['language'] = 'fr_FR'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SE
config['domoticz_ip'] = 'https://192.168.0.54:443';
config['app_title'] = 'Domotique';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['use_favorites'] = 0; //Request all Domoticz Devices, not only favorites
config['auto_positioning'] = 0; // Use 0 this if you have defined your own columns
config['selector_instead_of_buttons'] = 1;
config['default_news_url'] = 'https://www.lalibre.be/rss.xml';
config['calendarlanguage'] = 'fr_FR';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '600';
config['batteryThreshold'] = 256;
Git Log.
- Spoiler: show
- dashticz $ git log --oneline
33fc76e (HEAD -> beta, origin/beta) Merge pull request #731 from lokonli/batteryLevel
946bcca battery level
bf81581 Merge pull request #730 from lokonli/index2
dd29e29 Update index2.html as well
d91342d Merge pull request #729 from lokonli/fixDoc
75b41d7 Fix update instructions
cd4f3a6 Merge pull request #728 from lokonli/agendaEmpty
3486e27 Calendar: agenda-empty class
b93bfcb Merge pull request #727 from lokonli/v3.7.2-beta
e354ad0 Security panel parameters
11821e9 Merge branch 'popups' into gitignore
234b73d 3.7.2-beta
59b00db Untrack files in custom and custom_2
d4e5e96 popup css changes
95b7750 Merge pull request #726 from HansieNL/patch-1
821fb6b Update clock.rst
23491c1 Merge pull request #725 from lokonli/graphAxis
efb8328 Graph: parameters axisLeft, axisAlternating
694ba5a Merge pull request #724 from lokonli/flipclock
735ad81 Flipclock showseconds and clockface
ee5d986 Merge pull request #722 from lokonli/colorpickerWhites
bb9ed4b Colorpicker warm/cold white improvements
Re: batterylevel contacts
Posted: Thursday 31 December 2020 19:48
by Lokonli
That all looks fine.
Can you open Devtools in Chrome by pressing F12. Refresh Dashticz. Do you see any error in the Devtools console tab?
Sent from my SM-A320FL using Tapatalk
Re: batterylevel contacts
Posted: Thursday 31 December 2020 20:06
by red73390
Lokonli wrote: ↑Thursday 31 December 2020 19:48
That all looks fine.
Can you open Devtools in Chrome by pressing F12. Refresh Dashticz. Do you see any error in the Devtools console tab?
Sent from my SM-A320FL using Tapatalk
- Spoiler: show
-
bundle.js?t=9:349 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
bundle.js?t=9:309 GET http://192.168.0.54:8082/custom/custom. ... 9441258830 404 (Not Found)
js/main.js:347 No valid custom css file: custom/custom.css. Skipping.
bundle.js?t=9:309 HEAD http://192.168.0.54:8082/custom/custom. ... 9441258830 404 (Not Found)
bundle.js?t=9:309 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
I can see 2 errors and 2 warnings.
Re: batterylevel contacts
Posted: Thursday 31 December 2020 20:09
by Lokonli
Ok, those are no problem.
Sent from my SM-A320FL using Tapatalk
Re: batterylevel contacts
Posted: Friday 01 January 2021 12:35
by michelscholte
Many thanks for implementing.
I've tested it, but to show the batterylevel I had to remove the "z-index: -1" within my "Devtools in Chrome" or change it to "z-index: 1". Am I doing something wrong?
Re: batterylevel contacts
Posted: Friday 01 January 2021 14:31
by Lokonli
michelscholte wrote: ↑Friday 01 January 2021 12:35
Many thanks for implementing.
I've tested it, but to show the batterylevel I had to remove the "z-index: -1" within my "Devtools in Chrome". Am I doing soething wrong?
Great that you found that!
Might be the same issue as @red73390 is experiencing.
I've made a fix in latest beta. Could you test? Update with 'git pull'
Re: batterylevel contacts
Posted: Friday 01 January 2021 14:46
by michelscholte
After updating to the latest beta I can see the batterylevel without changing anything,
Thank you.
Re: batterylevel contacts
Posted: Friday 01 January 2021 23:08
by red73390
Here also, after the update I have all the batery item.

Re: batterylevel contacts
Posted: Friday 01 January 2021 23:48
by Lokonli
Great!
Sent from my SM-A320FL using Tapatalk
Re: batterylevel contacts
Posted: Saturday 02 January 2021 12:02
by madpatrick
Is it possible to move the icon a little bit to the left ?
I've tried padding-left and margin-left, but this had no effect
Re: batterylevel contacts
Posted: Sunday 03 January 2021 7:35
by lzwfkv
madpatrick wrote: ↑Saturday 02 January 2021 12:02
Is it possible to move the icon a little bit to the left ?
I've tried padding-left and margin-left, but this had no effect
The right margins (or padding) should be increased, try with:
Code: Select all
.battery-level {
margin-right: 10px;
}
Re: batterylevel contacts
Posted: Sunday 03 January 2021 9:41
by madpatrick
Thanks !
Code: Select all
.battery-level {margin-right: 10px !important}
I needed to add also !important to get it work