crscheid / image-watcher Goto Github PK
View Code? Open in Web Editor NEWA docker image that aggregates multiple image URLs from webcams or other sources into a single image and distributes it according to user preferences
License: MIT License
A docker image that aggregates multiple image URLs from webcams or other sources into a single image and distributes it according to user preferences
License: MIT License
[2016-10-29 22:55:53] image-watcher.ERROR: Exception found in trying to upload file to seafile. Try checking your configuration. This may occur if you are utilizing an encrypted library without an specified encryption key via CAM_SEAFILE_ENCRYPTION_KEY. Error message: Server error: `POST https://xx.xx.xx:12347/seafhttp/upload-api/b1e4f28b-c82b-4af6-baec-a3c9d11fa585` resulted in a `500 Internal Server Error` response: {"error": "Internal error "} [] []
[2016-10-29 22:55:53] image-watcher.INFO: Saved 2016-10-29-22-55-49.jpg to seafile [] []
Environment variables are not being auto detected unless specifically sought in the code. I believe this issue might be the culprit.
http://php.net/manual/en/reserved.variables.environment.php
If your $_ENV array is mysteriously empty, but you still see the variables when calling getenv() or in your phpinfo(), check your http://us.php.net/manual/en/ini.core.php#ini.variables-order ini setting to ensure it includes "E" in the string.
Need to robustify this a little more:
[2016-10-28 19:39:25] image-watcher.ERROR: Could not remove old files from Seafile. Error message: cURL error 7: Failed to connect to server.xxx port 12347: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) [] []
[2016-10-28 19:39:25] image-watcher.INFO: Requesting library decryption [] []
[2016-10-28 19:39:25] image-watcher.INFO: Decrypting library resource: 4bd34bc0-a274-4f89-bf7a-23adfb5f8154 [] []
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to server.xxx port 12347: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186
Stack trace:
#0 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Obje in /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
The process will fail if seafile is unavailable while it tries to decrypt the seafile resource.
[2016-10-26 16:49:41] image-watcher.INFO: Decrypting library resource: 4bd34bc0-a274-4f89-bf7a-23adfb5f8154 [] []
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to xxxx.xxxx.xxxx port 12347: Connection timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186
Stack trace:
#0 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Ob in /usr/src/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
Rather than writing the images to Seafile by default, allow the system to also write the image to a local path.
At the moment, the system downloads images in series. For slower or remote access, it may be helpful to have a parallel download process to accelerate the execution.
This is a test.
It may be useful to look at the Imagick "compare" function (difference threshold) (http://php.net/manual/en/imagick.compareimages.php)
It would be easier to review files if the system could more easily create some sort of high level overview for all of the images that one could watch quickly, then load the detailed image for a better look.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.