WebFileCreator

 

 

Content

Content 1

Utility description. 2

Basic informations. 2

Functions. 2

Create .cob file (with web pages content) 2

Upload web pages to the sensor 2

Options. 3

Web file. 3

*.bak files. 3

Directories and file names structure. 4

Directories structure. 4

Source files. 4

Files with web pages (.cob files) 4

File names. 4

Title. 4

Web string. 4

ID.. 4

Example. 5

 

 


 

Utility description

Basic informations

 

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.

 

Functions

 

Create .cob file (with web pages content)

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.

 

Upload web pages to the sensor

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.

 

 


 

 

Options

Web file

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.

 

*.bak files

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)


 

 

Directories and file names structure

Directories structure

Source files

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/).

Files with web pages (.cob files)

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

File names (web pages files) are defined like this:

 

File names = [Title][WebString][ID].cob

 

Title

Title is generated from subdirectory with web pages source files (Example)

Web string

Web string is constant. Value is „_WEB1_“.

ID

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

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.