Giter VIP home page Giter VIP logo

webhooks-slack's Introduction

In order to run this app:

  • Install node.js.
  • Install yarn.
  • Sign up for a free ipstack API key.
  • Clone the repository.
  • Install dependencies using yarn.
  • Make a new app at Heroku, and add the Heroku Redis add-on (free plan) and note the app URL.
  • Add a config var APP_URL (usually {app_name}.herokuapp.com)
  • Make a Slack webhook for a slack-channel and note the URL, add them as config vars named SLACK_URL & SLACK_CHANNEL.
  • Deploy to Heroku.
  • Have anyone who wants to contribute add the webhook on https://app.plex.tv/web/app#!/account/webhooks

Alternatively, deploy straight to Heroku now:

Deploy

You'll be asked to complete these config vars

SLACK_URL      # your slack webhook URL
SLACK_CHANNEL  # the slack #channel-name to post messages
APP_URL        # the App URL ({app_name}.herokuapp.com)
IPSTACK_KEY    # your ipstack API key

webhooks-slack's People

Contributors

bigaluk avatar dependabot[bot] avatar elan avatar jsclayton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webhooks-slack's Issues

heroku build failed

deploy to heroku fails, admitted newb with heroku so not sure if I'm doing something wrong. The instructions seem pretty straightforward, though, so I kinda doubt I am.

Build log below:

-----> Node.js app detected
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       
       Resolving node version 6.x via semver.io...
       Downloading and installing node 6.10.2...
       Using default npm version: 3.10.10
-----> Restoring cache
       Skipping cache restore (new runtime signature)
-----> Building dependencies
       Installing node modules (package.json)
       
       > [email protected] install /tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/node_modules/lwip
       > node-gyp rebuild
       
       make: Entering directory `/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/node_modules/lwip/build'
       CXX(target) Release/obj.target/lwip_decoder/src/decoder/init.o
       CXX(target) Release/obj.target/lwip_decoder/src/decoder/util.o
       CXX(target) Release/obj.target/lwip_decoder/src/decoder/buffer_worker.o
       ../src/decoder/buffer_worker.cpp: In constructor ‘DecodeBufferWorker::DecodeBufferWorker(Nan::Callback*, v8::Local<v8::Object>&, buf_dec_f_t)’:
       ../src/decoder/buffer_worker.cpp:8:58: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
       _height(0), _channels(0), _trans(false), _metadata("") {
       ^
       CXX(target) Release/obj.target/lwip_decoder/src/decoder/jpeg_decoder.o
       CXX(target) Release/obj.target/lwip_decoder/src/decoder/png_decoder.o
       CXX(target) Release/obj.target/lwip_decoder/src/decoder/gif_decoder.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jmemnobs.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jcomapi.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdapimin.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdapistd.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdatadst.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdatasrc.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdcoefct.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdcolor.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jddctmgr.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdhuff.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdinput.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmainct.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmarker.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmaster.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdpostct.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdsample.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jerror.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctflt.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctfst.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctint.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctflt.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctfst.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctint.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jutils.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jmemmgr.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdarith.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmerge.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jaricom.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jquant1.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jquant2.o
       CC(target) Release/obj.target/lwip_decoder/src/lib/png/png.o
       In file included from ../src/lib/png/png.c:14:0:
       ../src/lib/png/pngpriv.h:805:4: error: #error ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h"
       #  error ZLIB_VERNUM != PNG_ZLIB_VERNUM     ^
       make: *** [Release/obj.target/lwip_decoder/src/lib/png/png.o] Error 1
       make: Leaving directory `/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/node_modules/lwip/build'
       gyp ERR! build error
       gyp ERR! stack Error: `make` failed with exit code: 2
       gyp ERR! stack     at ChildProcess.onExit (/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
       gyp ERR! stack     at emitTwo (events.js:106:13)
       gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
       gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
       gyp ERR! System Linux 3.13.0-112-generic
       gyp ERR! command "/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/.heroku/node/bin/node" "/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
       gyp ERR! cwd /tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/node_modules/lwip
       gyp ERR! node -v v6.10.2
       gyp ERR! node-gyp -v v3.4.0
       gyp ERR! not ok
       [email protected] /tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a
       ├─┬ [email protected]
       │ ├─┬ [email protected]
       │ │ ├─┬ [email protected]
       │ │ │ └── [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ ├── [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ ├── [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ ├── [email protected]
       │ │ ├── [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ └── [email protected]
       ├─┬ [email protected]
       │ ├── [email protected]
       │ ├─┬ [email protected]
       │ │ ├─┬ [email protected]
       │ │ │ └── [email protected]
       │ │ └─┬ [email protected]
       │ │   ├── [email protected]
       │ │   ├── [email protected]
       │ │   └── [email protected]
       │ ├─┬ [email protected]
       │ │ ├── [email protected]
       │ │ ├─┬ [email protected]
       │ │ │ ├── [email protected]
       │ │ │ ├── [email protected]
       │ │ │ ├── [email protected]
       │ │ │ └── [email protected]
       │ │ └── [email protected]
       │ ├─┬ [email protected]
       │ │ └── [email protected]
       │ ├── [email protected]
       │ └── [email protected]
       ├─┬ [email protected]
       │ └─┬ [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├─┬ [email protected]
       │   │ └── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├─┬ [email protected]
       │   │ └── [email protected]
       │   ├─┬ [email protected]
       │   │ ├─┬ [email protected]
       │   │ │ ├── [email protected]
       │   │ │ └─┬ [email protected]
       │   │ │   └── [email protected]
       │   │ └── [email protected]
       │   ├─┬ [email protected]
       │   │ ├── [email protected]
       │   │ ├── [email protected]
       │   │ ├── [email protected]
       │   │ └── [email protected]
       │   ├─┬ [email protected]
       │   │ ├── [email protected]
       │   │ ├─┬ [email protected]
       │   │ │ ├── [email protected]
       │   │ │ ├── [email protected]
       │   │ │ ├── [email protected]
       │   │ │ └── [email protected]
       │   │ └─┬ [email protected]
       │   │   ├── [email protected]
       │   │   ├── [email protected]
       │   │   ├── [email protected]
       │   │   ├─┬ [email protected]
       │   │   │ └── [email protected]
       │   │   ├── [email protected]
       │   │   ├─┬ [email protected]
       │   │   │ └── [email protected]
       │   │   ├── [email protected]
       │   │   ├── [email protected]
       │   │   └── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├── [email protected]
       │   ├─┬ [email protected]
       │   │ └── [email protected]
       │   ├── [email protected]
       │   └── [email protected]
       ├─┬ [email protected]
       │ ├── [email protected]
       │ ├── [email protected]
       │ └── [email protected]
       ├─┬ [email protected]
       │ ├── [email protected]
       │ └── [email protected]
       └─┬ [email protected]
       └─┬ [email protected]
       ├── [email protected]
       └── [email protected]
       
       npm ERR! Linux 3.13.0-112-generic
       npm ERR! argv "/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/.heroku/node/bin/node" "/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/.npmrc"
       npm ERR! node v6.10.2
       npm ERR! npm  v3.10.10
       npm ERR! code ELIFECYCLE
       
       npm ERR! [email protected] install: `node-gyp rebuild`
       npm ERR! Exit status 1
       npm ERR!
       npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
       npm ERR! Make sure you have the latest version of node.js and npm installed.
       npm ERR! If you do, this is most likely a problem with the lwip package,
       npm ERR! not with npm itself.
       npm ERR! Tell the author that this fails on your system:
       npm ERR!     node-gyp rebuild
       npm ERR! You can get information on how to open an issue for this project with:
       npm ERR!     npm bugs lwip
       npm ERR! Or if that isn't available, you can get their info via:
       npm ERR!     npm owner ls lwip
       npm ERR! There is likely additional logging output above.
       
       npm ERR! Please include the following file with any support request:
       npm ERR!     /tmp/build_4d001b81511928402d4df9ba2e104e1e/plexinc-webhooks-slack-328f72a/npm-debug.log
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Node version not specified in package.json
       https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

Only rating messages work

The only messages that appear in slack are rating messages... I am on PMS Version 1.8.0.4109. QNAP TS-453 mini, FW version 4.3.3.0262 Build 20170727

Crash when starting on heroku

I can't get the app to start when using the 'Deploy To Heroku' button in the README. After configuring all of the params and starting the app I get the following in the logs:

2017-02-23T18:07:21.221494+00:00 heroku[web.1]: Starting process with command `npm start`
2017-02-23T18:07:25.124147+00:00 app[web.1]: 
2017-02-23T18:07:25.124174+00:00 app[web.1]: > [email protected] start /app
2017-02-23T18:07:25.124175+00:00 app[web.1]: > node index.js
2017-02-23T18:07:25.124176+00:00 app[web.1]: 
2017-02-23T18:07:26.251495+00:00 app[web.1]: dns.js:112
2017-02-23T18:07:26.251507+00:00 app[web.1]:     throw new TypeError('Invalid arguments: ' +
2017-02-23T18:07:26.251508+00:00 app[web.1]:     ^
2017-02-23T18:07:26.251509+00:00 app[web.1]: 
2017-02-23T18:07:26.251510+00:00 app[web.1]: TypeError: Invalid arguments: hostname must be a string or falsey
2017-02-23T18:07:26.251511+00:00 app[web.1]:     at lookup (dns.js:112:11)
2017-02-23T18:07:26.251511+00:00 app[web.1]:     at lookupAndConnect (net.js:991:3)
2017-02-23T18:07:26.251512+00:00 app[web.1]:     at Socket.connect (net.js:936:5)
2017-02-23T18:07:26.251513+00:00 app[web.1]:     at Object.exports.connect.exports.createConnection (net.js:74:35)
2017-02-23T18:07:26.251513+00:00 app[web.1]:     at RedisClient.create_stream (/app/node_modules/redis/index.js:251:31)
2017-02-23T18:07:26.251514+00:00 app[web.1]:     at new RedisClient (/app/node_modules/redis/index.js:159:10)
2017-02-23T18:07:26.251515+00:00 app[web.1]:     at Object.exports.createClient (/app/node_modules/redis/index.js:1084:12)
2017-02-23T18:07:26.251515+00:00 app[web.1]:     at Object.<anonymous> (/app/index.js:16:25)
2017-02-23T18:07:26.251516+00:00 app[web.1]:     at Module._compile (module.js:570:32)
2017-02-23T18:07:26.251517+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:579:10)
2017-02-23T18:07:26.278338+00:00 app[web.1]: 
2017-02-23T18:07:26.294877+00:00 app[web.1]: npm ERR! Linux 3.13.0-105-generic
2017-02-23T18:07:26.295222+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2017-02-23T18:07:26.295459+00:00 app[web.1]: npm ERR! node v6.10.0
2017-02-23T18:07:26.295697+00:00 app[web.1]: npm ERR! npm  v3.10.10
2017-02-23T18:07:26.295930+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2017-02-23T18:07:26.296128+00:00 app[web.1]: npm ERR! [email protected] start: `node index.js`
2017-02-23T18:07:26.296299+00:00 app[web.1]: npm ERR! Exit status 1
2017-02-23T18:07:26.296499+00:00 app[web.1]: npm ERR! 
2017-02-23T18:07:26.301192+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script 'node index.js'.
2017-02-23T18:07:26.301372+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2017-02-23T18:07:26.301527+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the plex-notifications package,
2017-02-23T18:07:26.301684+00:00 app[web.1]: npm ERR! not with npm itself.
2017-02-23T18:07:26.301862+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2017-02-23T18:07:26.302035+00:00 app[web.1]: npm ERR!     node index.js
2017-02-23T18:07:26.302182+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2017-02-23T18:07:26.302322+00:00 app[web.1]: npm ERR!     npm bugs plex-notifications
2017-02-23T18:07:26.302463+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2017-02-23T18:07:26.302604+00:00 app[web.1]: npm ERR!     npm owner ls plex-notifications
2017-02-23T18:07:26.302753+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2017-02-23T18:07:26.311493+00:00 app[web.1]: 
2017-02-23T18:07:26.311783+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2017-02-23T18:07:26.311929+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2017-02-23T18:07:26.463845+00:00 heroku[web.1]: Process exited with status 1
2017-02-23T18:07:26.483413+00:00 heroku[web.1]: State changed from starting to crashed

Am I configuring something wrong? My params look like this:

SLACK_URL="https://hooks.slack.com/services/..."
SLACK_CHANNEL="#general"
APP_URL="https://myapp.herokuapp.com"

Error while creating the app on Heroku

I have a problem when creating the application on heroku since link in the file README.md
The deployment on is in error.

Here are the logs he returns

-----> Node.js app detected
       
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false
       
-----> Installing binaries
       engines.node (package.json):  >=10.15
       engines.npm (package.json):   unspecified (use default)
       engines.yarn (package.json):  unspecified (use default)
       
       Resolving node version >=10.15...
       Downloading and installing node 12.4.0...
       Using default npm version: 6.9.0
       Resolving yarn version 1.x...
       Downloading and installing yarn (1.16.0)...
       Installed yarn 1.16.0
       
-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.16.0
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       info [email protected]: The platform "linux" is incompatible with this module.
       info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
       [3/4] Linking dependencies...
       [4/4] Building fresh packages...
       error /tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/node_modules/sharp: Command failed.
       Exit code: 1
       Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
       Arguments: 
       Directory: /tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/node_modules/sharp
       Output:
       info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.0/libvips-8.7.0-linux-x64.tar.gz
       make: Entering directory '/tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/node_modules/sharp/build'
         TOUCH Release/obj.target/libvips-cpp.stamp
         CXX(target) Release/obj.target/sharp/src/common.o
       In file included from ../../nan/nan_new.h:189:0,
                        from ../../nan/nan.h:223,
                        from ../src/common.cc:24:
       ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
       ../../nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
          return v8::StringObject::New(value).As<v8::StringObject>();
                                            ^
       In file included from /app/.node-gyp/12.4.0/include/node/node.h:63:0,
                        from ../src/common.cc:22:
       /app/.node-gyp/12.4.0/include/node/v8.h:5380:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
          static Local<Value> New(Isolate* isolate, Local<String> value);
                              ^~~
       /app/.node-gyp/12.4.0/include/node/v8.h:5380:23: note:   candidate expects 2 arguments, 1 provided
       In file included from ../../nan/nan_new.h:189:0,
                        from ../../nan/nan.h:223,
                        from ../src/common.cc:24:
       ../../nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before ‘>’ token
          return v8::StringObject::New(value).As<v8::StringObject>();
                                                                 ^
       ../../nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before ‘)’ token
          return v8::StringObject::New(value).As<v8::StringObject>();
                                                                   ^
       In file included from /usr/include/c++/7/cassert:44:0,
                        from /app/.node-gyp/12.4.0/include/node/node_object_wrap.h:26,
                        from ../../nan/nan.h:55,
                        from ../src/common.cc:24:
       ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
       ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
            assert(persistent().IsNearDeath());
                                ^
       ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
       ../../nan/nan_object_wrap.h:127:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
            assert(wrap->handle_.IsNearDeath());
                                 ^
       In file included from ../src/common.cc:27:0:
       ../src/common.h: At global scope:
       ../src/common.h:78:20: error: ‘Handle’ is not a member of ‘v8’
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
                           ^~~~~~
       ../src/common.h:78:37: error: expected primary-expression before ‘>’ token
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
                                            ^
       ../src/common.h:78:39: error: ‘obj’ was not declared in this scope
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
                                              ^~~
       ../src/common.h:78:56: error: expected primary-expression before ‘attr’
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
                                                               ^~~~
       ../src/common.h:78:60: error: expression list treated as compound expression in initializer [-fpermissive]
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
                                                                   ^
       ../src/common.h:79:29: error: ‘Handle’ is not a member of ‘v8’
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
                                    ^~~~~~
       ../src/common.h:79:46: error: expected primary-expression before ‘>’ token
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
                                                     ^
       ../src/common.h:79:48: error: ‘obj’ was not declared in this scope
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
                                                       ^~~
       ../src/common.h:79:65: error: expected primary-expression before ‘attr’
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
                                                                        ^~~~
       ../src/common.h:80:38: error: ‘Handle’ is not a member of ‘v8’
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr);
                                             ^~~~~~
       ../src/common.h:80:55: error: expected primary-expression before ‘>’ token
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr);
                                                              ^
       ../src/common.h:80:57: error: ‘obj’ was not declared in this scope
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr);
                                                                ^~~
       ../src/common.h:80:74: error: expected primary-expression before ‘attr’
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr);
                                                                                 ^~~~
       ../src/common.h:81:48: error: ‘Handle’ is not a member of ‘v8’
          template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
                                                       ^~~~~~
       ../src/common.h:81:65: error: expected primary-expression before ‘>’ token
          template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
                                                                        ^
       ../src/common.h:81:67: error: ‘obj’ was not declared in this scope
          template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
                                                                          ^~~
       ../src/common.h:81:84: error: expected primary-expression before ‘attr’
          template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
                                                                                           ^~~~
       ../src/common.h:81:37: warning: variable templates only available with -std=c++14 or -std=gnu++14
          template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
                                            ^~~~~~
       ../src/common.h:81:90: error: expected ‘;’ before ‘{’ token
          template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
                                                                                                 ^
       ../src/common.h:84:37: error: ‘Handle’ is not a member of ‘v8’
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                            ^~~~~~
       ../src/common.h:84:54: error: expected primary-expression before ‘>’ token
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                                             ^
       ../src/common.h:84:56: error: ‘obj’ was not declared in this scope
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                                               ^~~
       ../src/common.h:84:73: error: expected primary-expression before ‘attr’
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                                                                ^~~~
       ../src/common.h:84:26: warning: variable templates only available with -std=c++14 or -std=gnu++14
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                 ^~~~~~
       ../src/common.h:84:79: error: expected ‘;’ before ‘{’ token
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                                                                      ^
       ../src/common.h:87:37: error: ‘Handle’ is not a member of ‘v8’
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, int attr) {
                                            ^~~~~~
       ../src/common.h:87:54: error: expected primary-expression before ‘>’ token
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, int attr) {
                                                             ^
       ../src/common.h:87:56: error: ‘obj’ was not declared in this scope
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, int attr) {
                                                               ^~~
       ../src/common.h:87:61: error: expected primary-expression before ‘int’
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, int attr) {
                                                                    ^~~
       ../src/common.h:84:26: warning: variable templates only available with -std=c++14 or -std=gnu++14
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
                                 ^~~~~~
       ../src/common.h:87:71: error: expected ‘;’ before ‘{’ token
          template<typename T> T AttrTo(v8::Handle<v8::Object> obj, int attr) {
                                                                              ^
       ../src/common.h:93:9: error: ‘Handle’ is not a member of ‘v8’
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                ^~~~~~
       ../src/common.h:93:26: error: expected primary-expression before ‘>’ token
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                                 ^
       ../src/common.h:93:28: error: ‘input’ was not declared in this scope
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                                   ^~~~~
       ../src/common.h:93:28: note: suggested alternative: ‘ino_t’
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                                   ^~~~~
                                   ino_t
       ../src/common.h:93:70: error: expected primary-expression before ‘&’ token
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                                                                             ^
       ../src/common.h:93:71: error: ‘buffersToPersist’ was not declared in this scope
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                                                                              ^~~~~~~~~~~~~~~~
       ../src/common.h:93:87: error: expression list treated as compound expression in initializer [-fpermissive]
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
                                                                                              ^
       ../src/common.cc:34:20: error: redefinition of ‘bool sharp::HasAttr’
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr) {
                           ^~~~~~
       In file included from ../src/common.cc:27:0:
       ../src/common.h:78:8: note: ‘bool sharp::HasAttr’ previously defined here
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
               ^~~~~~~
       ../src/common.cc:34:20: error: ‘Handle’ is not a member of ‘v8’
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr) {
                           ^~~~~~
       ../src/common.cc:34:37: error: expected primary-expression before ‘>’ token
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr) {
                                            ^
       ../src/common.cc:34:39: error: ‘obj’ was not declared in this scope
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr) {
                                              ^~~
       ../src/common.cc:34:56: error: expected primary-expression before ‘attr’
          bool HasAttr(v8::Handle<v8::Object> obj, std::string attr) {
                                                               ^~~~
       ../src/common.cc:37:29: error: redefinition of ‘std::string sharp::AttrAsStr’
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
                                    ^~~~~~
       In file included from ../src/common.cc:27:0:
       ../src/common.h:79:15: note: ‘std::string sharp::AttrAsStr’ previously declared here
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
                      ^~~~~~~~~
       ../src/common.cc:37:29: error: ‘Handle’ is not a member of ‘v8’
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
                                    ^~~~~~
       ../src/common.cc:37:46: error: expected primary-expression before ‘>’ token
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
                                                     ^
       ../src/common.cc:37:48: error: ‘obj’ was not declared in this scope
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
                                                       ^~~
       ../src/common.cc:37:65: error: expected primary-expression before ‘attr’
          std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
                                                                        ^~~~
       ../src/common.cc:40:38: error: redefinition of ‘std::vector<double> sharp::AttrAsRgba’
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr) {
                                             ^~~~~~
       In file included from ../src/common.cc:27:0:
       ../src/common.h:80:23: note: ‘std::vector<double> sharp::AttrAsRgba’ previously declared here
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr);
                              ^~~~~~~~~~
       ../src/common.cc:40:38: error: ‘Handle’ is not a member of ‘v8’
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr) {
                                             ^~~~~~
       ../src/common.cc:40:55: error: expected primary-expression before ‘>’ token
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr) {
                                                              ^
       ../src/common.cc:40:57: error: ‘obj’ was not declared in this scope
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr) {
                                                                ^~~
       ../src/common.cc:40:74: error: expected primary-expression before ‘attr’
          std::vector<double> AttrAsRgba(v8::Handle<v8::Object> obj, std::string attr) {
                                                                                 ^~~~
       ../src/common.cc:51:9: error: redefinition of ‘sharp::InputDescriptor* sharp::CreateInputDescriptor’
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                ^~~~~~
       In file included from ../src/common.cc:27:0:
       ../src/common.h:92:20: note: ‘sharp::InputDescriptor* sharp::CreateInputDescriptor’ previously defined here
          InputDescriptor* CreateInputDescriptor(
                           ^~~~~~~~~~~~~~~~~~~~~
       ../src/common.cc:51:9: error: ‘Handle’ is not a member of ‘v8’
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                ^~~~~~
       ../src/common.cc:51:26: error: expected primary-expression before ‘>’ token
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                                 ^
       ../src/common.cc:51:28: error: ‘input’ was not declared in this scope
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                                   ^~~~~
       ../src/common.cc:51:28: note: suggested alternative: ‘ino_t’
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                                   ^~~~~
                                   ino_t
       ../src/common.cc:51:70: error: expected primary-expression before ‘&’ token
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                                                                             ^
       ../src/common.cc:51:71: error: ‘buffersToPersist’ was not declared in this scope
            v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
                                                                              ^~~~~~~~~~~~~~~~
       cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
       sharp.target.mk:134: recipe for target 'Release/obj.target/sharp/src/common.o' failed
       make: *** [Release/obj.target/sharp/src/common.o] Error 1
       make: Leaving directory '/tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/node_modules/sharp/build'
       gyp ERR! build error 
       gyp ERR! stack Error: `make` failed with exit code: 2
       gyp ERR! stack     at ChildProcess.onExit (/tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
       gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
       gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
       gyp ERR! System Linux 4.4.0-1044-aws
       gyp ERR! command "/tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/.heroku/node/bin/node" "/tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
       gyp ERR! cwd /tmp/build_bf5bc5a9d821bf8c0f1833a5087216f7/node_modules/sharp
       gyp ERR! node -v v12.4.0
       gyp ERR! node-gyp -v v3.8.0
       gyp ERR! not ok
       info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Dangerous semver range (>) in engines.node
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

problem side of Heroku ?

Update to Readme file

Will you be able to update the read me file with installation details. Can't seem to get this app up & running on Heroku. Or maybe my Plex webhook is not pinging IPStack.

Can't really debug. Please help.

Does this still work?

I set this up in Heroku and added the heroku app url to the Plex webhook. Is there anything else I have to do to get this to work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.