Chris Jahn Posted November 20, 2016 Share Posted November 20, 2016 This is a repost of the instructions for logging information using programs ... We added an enhancement to the networking module that allows you to update files in /user/web when sending a notification from programs. This allows you to make custom HTML files, XML files, or do some custom logging to that directory.The interface requires the direct use of keywords, although at some point we may make a more user friendly version in the GUI. When creating a custom notification, do the following: Start the subject with @webpage: Optionally add @append: or @delete, nothing specified means create or overwrite the file Supply the relative file path to /user/web, e.g. specify myDir/hi.htm for /user/web/myDir/hi.htm You may update multiple files by supplying multiple @webpage:... entries separated by a space Add an actual e-mail subject if this is to be e-mailed as well. NOTE: You can fully use substitution variables to create the subject, allowing file names based on a variable for example. NOTE: File names are limited to the 8.3 format Examples:// Send notification with subject "My Status" (no file created)Subject: My Status// Create file /user/web/mydir/status.htm whose content is the body of this notification// Send e-mail notification with subject "My Status"Subject: @webpage:myDir/status.htm My Status// Create file /user/web/mydir/status.htm whose content is the body of this notification (no e-mail notification sent out)Subject: @webpage:myDir/status.htm// Append body of this message to file /user/web/mydir/status.htmSubject: @webpage:@append:/mydir/status.htm// Create file with name based on the value of a variable (e.g. if the variable=24, then file is /user/web/mydir/file24.txt)Subject: @webpage:/mydir/file${var.1.1}.txt// Delete a fileSubject: @webpage:@delete:/mydir/status.htm// - Create file /user/web/mydir/status.htm whose content is the body of this notification// - Append the content to /user/web/mydir/log.htmSubject: @webpage:mydir/status.htm @webpage:@append:mydir/log.htm Link to comment
G W Posted November 20, 2016 Share Posted November 20, 2016 Nice. Very nice. I'm Gary Funk and I approved this message. Link to comment
Michel Kohanim Posted November 20, 2016 Share Posted November 20, 2016 It's also on the Wiki: http://wiki.universal-devices.com/index.php?title=ISY-994i_Series_INSTEON:Networking#Dynamic.2FCustom_Page_Creation With kind regards, Michel Link to comment
Recommended Posts