WebFileCreator
Create
.cob file (with web pages content)
Upload
web pages to the sensor
Directories
and file names structure
Files
with web pages (.cob files)
WebFileCreator
is utility that creates .cob files with web pages content for Comet sensors and
can upload the web pages (.cob files) into the sensors.
Note: WebFileCreator
utility doesn’t support web pages creation for Comet sensors and this document
doesn’t describe or report about it. Before you will create .cob files, you
have to finish source files first.
Press [Source] button and select directory, where are web pages source files saved. If you want to change some parameters of .bak files and/or .cob file creation, do appropriate setting (see Options). Then press [Create] button. You can see information about current action in the information window. New .cob file with web pages is released now. File name with relative path you can find in Web file edit field.
Select file with web pages (.cob) you want upload to the sensor in Web file edit field. If you want to upload file that you released in the previous step, you needn’t select it. Enter sensor IP address for web pages upload. By [Find device] button you can search sensor in the net (in then Find Device window select sensor and press [Connect]). Selected IP address is displayed in IP edit field. Finally press [Upload web] button. Information abou action you can see in the information window.
Web file options control .cob file creation and .cob file name (see Directories and file names structure). You can select New version or Rewrite last.
New version Process create new file (with unique name) and save web pages inside.
Rewrite last Process find last file in according collection and rewrite it.
Internal
utility generates backup files (.bak). You don’t need this
files – they are useless. You can remove this files from directory
checking Delete *.bak files from source option. (They are removing during
the creating process)
Sensor web pages source files are defined by the user (Section Files, item From). For easier utility use create source files in the subdirectories of the WebFileCreator utility root directory, please, or copy them here.
Example: We have
WebFileCreator utility in directory named C:/Utilities/WebFileCreator/. You
create subdirectory with web pages source files here, for example named
WebSource01 (C:/Utilities/WebFileCreator/WebSource01/).
Directory for web pages files (.cob files) is cob/ as subdirectory of utility main directory (C:/Utilities/WebFileCreator/cob/). Then files are separate by title of the web pages source files directory – subdirectory [Title] (for example C:/Utilities/WebFileCreator/cob/WebSource01/).
File names (web pages files) are defined like this:
File names = [Title][WebString][ID].cob
Title is generated from subdirectory with web pages source files (Example)
Web string is constant. Value is „_WEB1_“.
It is possible generate more then one output files (may be different versions of the web pages, etc.). That is why it is neccessary recognize this files. In the end of file name is append number ID.
Example: Let’s we need web pages file. You released source files and saved them to the directory C:/Utilities/WebFileCreator/WebSource01 (see Directories structure, Source files). Output file with web pages has name WebSource01_WEB1_01.cob and is saved to C:/Utilities/WebFileCreator/cob/ directory.