DataFormat help

Upload Method

Upload of Data Files and Upload of Images is possible via "HTTP" and via "FTP".
"HTTP" (and "HTTPS") is available with all tarifs;
"FTP" is available with tarif "5GB" or higher;
The recommended method is HTTP
"SFTP" is not available;

File Names

File Type Method Description
Images (.jpg) FTP, Port 21 upload your images into the ftp-root-directory of your device;
The image will be moved into a subdirectory, which is created from the date of the image
The image will be renamed to timestamp.jpg (epoctime in seconds), and a thumbnail will be created;
The "date" of the image may be included in the filename, otherwise it may be the current date
Examples of supported filenames:
  • f140131095959485.jpg with Mobotix Ip Cameras "fYYMMDDhhmmssuuu.jpg"
  • 20140131095959.jpg with MobileWebCam or TriggerME App "YYYYMMDDhhmmss.jpg"
  • 20140131095959485.jpg with MobileWebCam or TriggerME App "YYYYMMDDhhssssuuu.jpg"
  • current.jpg with all Cameras
The filename "current.jpg" is not recommended with uploads faster than 1/300s.
Images (.jpg) HTTP, Port 80

use http://www.smartgage.net/MyLogger/cam.php to upload your images;
"MyLogger" is your registered directory name;
The image will be moved into a subdirectory, which is created from the date of the image
The image will be renamed to timestamp.jpg (epoctime in seconds), and a thumbnail will be created;
The "date" of the image may be included in the filename, otherwise it may be the current date
All filenames with extension jpg or jpeg are supportet.

Additional Parameters may be transmittet with HTTP Request "POST"

  • log: contains logfile of your device
  • latitude: gps coordinate, stored in file gps.csv
  • longitude: gps coordinate, stored in file gps.csv
  • alt: gps coordinate, stored in file gps.csv
  • battery: battery level of your device
  • event: use event to trigger alarm messages; With the App "TriggerME", the variable "event" is set to one of the following values: timer, usb, phonejack, touchscreen;

It is possible to transmit a string with HTTP Request "POST", without uploading a file.
This string will be stored in file "dump.txt";

Data Files (.dat) HTTP, Port 80

use http://www.smartgage.net/MyLogger/upload.php to upload your data files;
"MyLogger" is your registered directory name;
each line of the data file will be processed by a background job:

  • Scaling of measurement data
  • Adding headers, subheaders, units
  • Formatting output data
  • Appending output data to output files in subdirectories "year", "month", "week", ...
  • Surveying threshold levels
  • Creating plots of measurement data

The file is deleted when it is processed by the background job. All Filenames with extensions .dat and .txt are supported;

Additional Parameters may be transmittet with HTTP Request "POST"

  • log: contains logfile of your device
  • battery: battery level of your device

Examples of Supported File Formats

  • 31.01.2014 18:55:01|-0.38484|-0.07473|5.34132|6.31256
  • 31.01.2014 18:55:01|-0,38484|-0,07473|5,34132|6,31256
  • 31.01.2014 18:55:01;-0.38484;-0.07473;5.34132;6.31256
  • 2014-01-31T18:55:01;-0.38484;-0.07473;5.34132;6.31256
  • 2014-01-31T18:55:01	-0.38484	-0.07473	5.34132	6.31256

Example Upload Form

<!-- The Encoding-Type enctype must be "multipart/form-data" ! -->
<form enctype="multipart/form-data" action="upload.php" method="POST">

    <input type="hidden" name="MAX_FILE_SIZE" value="800000" />
    <input type="hidden" name="log" value="battery: 50" />
    <input type="hidden" name="battery" value="50" />    
    Upload this file: <input name="userfile" type="file" />
    <input type="submit" value="Send File" />
</form>	

Data Files (.dat) FTP, Port 21 upload your datafile into the ftp-root-directory of your device;
The data will be scaled, formatted, and moved into a subdirectory, which is created from the timestamp of the data.
The uploaded datafile will be deleted;
Examples of supported filenames:
  • gsvdata0.dat, gsvdata1.dat, ...gsvdata9.dat
File Formats are the same as upload via HTTP.

Status or Help-Topics