Matthias Kleine 9 роки тому
батько
коміт
129ed35d66
3 змінених файлів з 18 додано та 2 видалено
  1. 4 0
      README.md
  2. 1 1
      fhem/Dockerfile
  3. 13 1
      fhem/fhem.cfg

+ 4 - 0
README.md

@@ -26,3 +26,7 @@ docker-compose up
 - mySQL-Root-Password: adgbciBOZjwYXeATg
 - mySQL-User: fhemuser
 - mySQL-Password: 2jRHnEi3WuNSQAcX7
+
+## Updating FHEM
+
+Since all data in the container is static, you have to delete the container and recreate it to update fhem.

+ 1 - 1
fhem/Dockerfile

@@ -40,7 +40,7 @@ libxml-simple-perl
 RUN wget -qO - https://debian.fhem.de/archive.key | apt-key add -
 RUN echo "deb https://debian.fhem.de/stable ./" | tee -a /etc/apt/sources.list.d/fhem.list
 RUN apt-get update
-RUN apt-get -y --force-yes install fhem telnet
+RUN apt-get -y --force-yes install fhem telnet usbutils
 
 RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
 

+ 13 - 1
fhem/fhem.cfg

@@ -1,34 +1,46 @@
 attr global userattr DbLogExclude DbLogInclude cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride
 attr global autoload_undefined_devices 1
+attr global icon it_network
 attr global logfile ./log/fhem-%Y-%m.log
 attr global modpath .
 attr global motd none
+attr global room System
 attr global sendStatistics onUpdate
 attr global statefile ./log/fhem.save
 attr global updateInBackground 0
 attr global verbose 2
 
-
 define telnetPort telnet 7072 global
+attr telnetPort room System
 
 define WEB FHEMWEB 8083 global
 attr WEB CssFiles hausautomatisierung-com/styles.css
 attr WEB JavaScripts codemirror/fhem_codemirror.js
 attr WEB editConfig 1
+attr WEB icon it_i-net
 attr WEB menuEntries haus-automatisierung.com,https://haus-automatisierung.com/
 attr WEB plotWeekStartDay 1
+attr WEB room System
+attr WEB roomIcons Log:edit_paste System:it_network Save.config:message_attention Everything:it_i-net Unsorted:unknown Commandref:system_fhem Remote.doc:message_mail Edit.files:edit_copy Select.style:edit_open Event.monitor:edit_settings
+attr WEB title FHEM Docker (haus-automatisierung.com)
 
 # Fake FileLog entry, to access the fhem log from FHEMWEB
 define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
+attr Logfile icon edit_paste
+attr Logfile room Log
 
 define autocreate autocreate
 attr autocreate filelog ./log/%NAME-%Y.log
+attr autocreate room System
 
 define eventTypes eventTypes ./log/eventTypes.txt
+attr eventTypes room System
 
 # Disable this to avoid looking for new USB devices on startup
 define initialUsbCheck notify global:INITIALIZED usb create
+attr initialUsbCheck room System
 define DBLogging DbLog /opt/fhem/contrib/dblog/db.conf .*:.*
+attr DBLogging icon time_note
 attr DBLogging room Log
 define DBLogging_Reopen at +*00:15:00 set DBLogging reopen
 attr DBLogging_Reopen room Log