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:
|
Images (.jpg) | HTTP, Port 80 | use http://www.smartgage.net/MyLogger/cam.php to upload your images; Additional Parameters may be transmittet with HTTP Request "POST"
It is possible to transmit a string with HTTP Request "POST", without uploading a file. |
Data Files (.dat) | HTTP, Port 80 | use http://www.smartgage.net/MyLogger/upload.php to upload your data files;
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"
Examples of Supported File Formats
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:
|