piwebcam / PiWebcam

Turn a Raspberry Pi into a fully-featured and dummy-proof webcam
https://piwebcam.github.io
52 stars 13 forks source link

Slack legacy tokens are discontinued and can't be created anymore #32

Open daniellandau opened 4 years ago

daniellandau commented 4 years ago

The Slack integration can't be used anymore by new users as Slack doesn't allow creating new tokens anymore.

user2684 commented 4 years ago

Got it, thanks for letting me know! Let me look for alternative approaches and will report back

user2684 commented 4 years ago

webhook would have been the easiest replacement but does not allow to post images but only linking a url which not suitable here (https://stackoverflow.com/questions/35742775/is-it-possible-to-post-files-to-slack-using-the-incoming-webhook). Going through a full oauth 2.0 authorisation flow seems to be the only way to use the Web API (and hence files.upload) which is really tricky in bash for the complexity and requires to store the refresh token somewhere. Continue to research for simpler alternatives to implement

user2684 commented 4 years ago

@daniellandau may you please check if the solution described in #39 may work for you as well? The idea is to leverage an intermediate service like IFTTT or Zapier to dispatch the picture/video to many different places, Slack included. The integration is intended to take place through email since would require no changes on the PiWebcam side and seems to be the only one really working on both the free plans of IFTTT or Zapier. Thanks!