Skip to content
ebiiii edited this page Oct 16, 2014 · 1 revision

##Image file wrapper (imagefile)

This wrapper loads images from local folder.

Parameters:

  • _directory _local directory to search for files
  • file-mask regular expression used for finding files in the local folder. The first group should contains the timestamp
  • _extension _file extension
  • time-format time format for the timestamp
  • _rate _update rate

Example:

<address wrapper="imagefile">
   <predicate key="directory">./images</predicate>
   <predicate key="file-mask">^image(\d{12}).png$</predicate>
   <predicate key="extension">png</predicate>
   <predicate key="time-format">yyyyMMddHHmm</predicate>
   <predicate key="rate">3600000</predicate> <!-- in milliseconds -->
</address>
<query>SELECT * FROM wrapper</query>

The output section of the virtual sensor should contain the right binary type:

<output-structure>
   <field name="image" type="binary:image/png"/>
</output-structure>
Clone this wiki locally