Hallo Leute,
mein Tablett kann leider die neue Version vom Tablet Ui nicht. Nun zu meinem Problem.
Ich habe mich hier dran gehalten. Aber ich stelle mich zu dumm an.
FHEM Integration
This repository contains all the necessary stuff for adding the Material Design Icons to FHEM. Just follow the following install instructions.
Please report FHEM specific issues to this repository, not to the main repository!
Install
Add icons repository
update add https://raw.githubusercontent.com/fhem/FHEM-Icons-Material-Templarian/master/controls_icons-mdt.txt
update all https://raw.githubusercontent.com/fhem/FHEM-Icons-Material-Templarian/master/controls_icons-mdt.txt
This will take a long time, since there are ATM about 5.600 icons to download and install (took around 30 minutes on a dockerized test FHEM).
Add icon path
To display the icons, FHEM needs the know the path to the newly installed icons. Given your FHEMWEB device is also named FHEMWEB, add mdt to the iconPath attribute like this
attr FHEMWEB iconPath mdt:fhemSVG:openautomation:default
Reload icons
After setting the new icon path, FHEMWEB needs to reread the icons cache. Again, FHEMWEB is give as name for your FHEMWEB device, issue
set FHEMWEB rereadicons
Hauptseite (https://github.com/fhem/FHEM-Icons-Material-Templarian)
Was müsste ich noch Einfügen.
Hier ist der Ordner drunter abgelegt.
/opt/fhem/www/images/mdt
Mein Tablet Ui liegt unter
/opt/fhem/www/tablet
In Fhem habe ich den code auch so angelegt.
defmod WEB FHEMWEB 8083 global
attr WEB iconPath mdt:fhemSVG:openautomation:default
attr WEB longpoll 1
attr WEB styleData {\
"f18": {\
"Pinned.menu": "true",\
"hidePin": "true",\
"cols.bg": "FFFFE7",\
"cols.fg": "000000",\
"cols.link": "278727",\
"cols.evenrow": "F8F8E0",\
"cols.oddrow": "F0F0D8",\
"cols.header": "E0E0C8",\
"cols.menu": "D7FFFF",\
"cols.sel": "A0FFFF",\
"cols.inpBack": "FFFFFF",\
"savePinChanges": true,\
"hideLogo": true,\
"rightMenu": false\
}\
}
Warscheinlich muss ich irgendwas in meinem Index noch ändern. Aber ich weiß leider nicht was.
Danke für eure Hilfe schon mal.