Skip to content

Commit

Permalink
Updated libraries on Raspberry Pi and fixed image file names on hikvi…
Browse files Browse the repository at this point in the history
…sion.js
  • Loading branch information
ciaran-finnegan committed Sep 7, 2017
1 parent 175cda3 commit 81c1ec0
Show file tree
Hide file tree
Showing 2,312 changed files with 581,733 additions and 75 deletions.
10 changes: 5 additions & 5 deletions hikvision.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var imgOptions = {
// @google-cloud/storage options
var gcsconfig = {
projectId: 'Vision-test-01-9bbd739b0829' ,
keyFilename: './keys/Vision-test-01-9bbd739b0829.json'
keyFilename: './keys/Vision-test-01-197b246e73de.json'
};
var bucket = gcs.bucket('cctv001');
// mode-hikvision-api options
Expand Down Expand Up @@ -84,20 +84,20 @@ function getImages(){
// the .then () returns a promise
// so subsequent download.image() functions are executed synchronously
// see http://exploringjs.com/es6/ch_promises.html
imgOptions.dest = path + getDateTime() + '_img2.jpg';
imgOptions.dest = path + getDateTime() + '_img1.jpg';
download.image(imgOptions)
.then(({ filename }) => {
console.log('File saved to', filename);
console.log(getDateTime() + ' File saved to', filename);
storeImage(filename);
imgOptions.dest = path + getDateTime() + '_img2.jpg';
download.image(imgOptions)
.then(({ filename }) => {
console.log('File saved to', filename);
console.log(getDateTime() + ' File saved to', filename);
storeImage(filename);
imgOptions.dest = path + getDateTime() + '_img3.jpg';
download.image(imgOptions)
.then(({ filename }) => {
console.log('File saved to', filename);
console.log(getDateTime() + ' File saved to', filename);
storeImage(filename);
})
.catch((err) => {
Expand Down
Binary file added images/2017-09-07 23:12:24:553 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:15:19:860 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:17:05:717 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:28:20:835 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:35:44:229 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:40:57:344 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:42:49:595_img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:42:50:935_img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:42:52:944_img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:48:40:163 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:57:52:567_img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:57:52:854_img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-07 23:57:54:831_img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:03:18:159_img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:03:18:429_img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:03:20:360_img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:09:13:57 stillImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:22:37:301_img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:22:37:54_img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:22:38:353_img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:29:37:399_img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:29:38:644_img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2017-09-08 00:29:40:676_img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions node_modules/.bin/blessed

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/json2yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/mkdirp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/needle

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/pm2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/pm2-dev

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/pm2-docker

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/pm2-runtime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/shjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/yaml2json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 96 additions & 15 deletions node_modules/@google-cloud/storage/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions node_modules/amp-message/Readme.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 81c1ec0

Please sign in to comment.