From 15eaa12f0375b1ad80fc410d1136aa3777ee38c9 Mon Sep 17 00:00:00 2001
From: mfr69bs <>
Date: Sat, 20 Oct 2012 20:43:42 +0000
Subject: [PATCH] commandref for update added, small fix in module ipcam
git-svn-id: https://svn.fhem.de/fhem/trunk@1997 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/49_IPCAM.pm | 2 +-
fhem/docs/commandref.html | 73 +++++++++++++++++++++++++++++++++++++--
2 files changed, 71 insertions(+), 4 deletions(-)
diff --git a/fhem/FHEM/49_IPCAM.pm b/fhem/FHEM/49_IPCAM.pm
index 3513f99ec..168918ac0 100644
--- a/fhem/FHEM/49_IPCAM.pm
+++ b/fhem/FHEM/49_IPCAM.pm
@@ -197,7 +197,7 @@ IPCAM_getSnapshot($) {
$dateTime = TimeNow();
- $snapshot = GetFileFromURL($camURI);
+ $snapshot = GetFileFromURLQuiet($camURI);
$imageFormat = IPCAM_guessFileFormat(\$snapshot);
diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html
index c8c5aab06..021eb3e68 100644
--- a/fhem/docs/commandref.html
+++ b/fhem/docs/commandref.html
@@ -55,6 +55,7 @@
shutdown
sleep
trigger
+ update
updatefhem
usb
xmllist
@@ -788,10 +789,57 @@ A line ending with \ will be concatenated with the next one, so long lines
+
+
update
+
+ update [development|stable] [<file>|check|fhem|full] [force]
+
+ The installed fhem distribution and its installed extensions (just like the
+ webGUI PGM2) are updated via this command from the online repository. The
+ locally installed files will be checked against the online repository and
+ will be updated in case the files online are in a newer version. Modules
+ which are used while the update is in progress will be restarted in the new
+ version after the update has finished.
+
+
+ Notice: The former used command "updatefhem" will be replaced by the new
+ command "update" in the 5.3 distribution.
+
+
+ The new update function will process more advanced distribution information
+ as well as control commands for updating, removing or renaming existing files.
+ New file structures can also be set up by the new control command files.
+ The new update process will exclusively work with the file path which is
+ given by the global attribute "modpath" except for the fhem.pl file. The user
+ decides whether to use a stable, a developer- or a experimental-rated version
+ of fhem (experimental is not yet implemented).
+
+
+ Furthermore, the use of packages is supported just like in a manual installation
+ of fhem. On the moment this only refers to FHEM including PGM2 (FHEMWEB), others
+ may follow up. By using the update in this way, only files which are acutally
+ used will be updated.
+
+
+
+
+ Attributes
+
+
+
updatefhem
updatefhem [<changed>|<filename>|<housekeeping> [<clean>] [<yes>]|<preserve> [<filename>]]
+
+ This command is deprecated as of Fhem 5.3
+
Update the fhem modules and documentation from a nightly SVN checkout. For
this purpose Fhem contacts http://fhem.de/fhemupdate, compares the stored
@@ -1204,11 +1252,11 @@ A line ending with \ will be concatenated with the next one, so long lines
- backup_before_update
- If this attribute is set to 0, updatefhem skip always backing up your
+ If this attribute is set to 0, an update skip always backing up your
installation via the backup command. The default
is to backup always before updates.
Note: Set this attribute only if you know what you do!
- This Attribute is used by the updatefhem command.
+ This Attribute is used by the update command.
Example:
attr global backup_before_update 0
@@ -1268,7 +1316,7 @@ A line ending with \ will be concatenated with the next one, so long lines
- exclude_from_update
Contains a space separated list of file which will be excluded by an update.
- This Attribute is used by the updatefhem command.
+ This Attribute is used by the update command.
Example:
attr global exclude_from_update 21_OWTEMP.pm temp4hum4.gplot FS20.on.png FS20.off.png
@@ -1361,6 +1409,25 @@ A line ending with \ will be concatenated with the next one, so long lines
Used by the web frontend fhemweb.pl (webpgm2) as a Page title.
+
+ - updatebranch
+ The update branch will be set by the file FhemUtils/release.pm contained
+ in the modpath. For example, if a stable version (version 5.3 upwards) of
+ fhem is installed via a direct download connection of the archieve on the
+ fhem-website, then the branch of the update is automatically on "stable".
+ In this branch, only updates fixing confirmed errors, relevant security
+ fixes or new stable versions are provided.
+ By using the command "update development <filename>", particular files
+ or packages can always be installed directly from the development branch
+ (e.g. "update development <package>").
+ If you want to update from the development branch in stable verion in
+ general, you can force this behaviour by using the attribute "updatebranch DEVELOPMENT".
+ In case the installation of fhem should generally using the development
+ branch, this attribute would not have to be set. Instead, use "update development force"
+ to update all files including release.pm (containing the release-information)
+ to the newest version.
+
+
- userattr
A space separated list which contains the names of additional