Giter VIP home page Giter VIP logo

arduino-slack-bot's Introduction

Real-Time Slack Bot for Arduino

Copyright (C) 2016, Uri Shaked

License: MIT.

This bot let you control the colors of a NeoPixel Ring through Slack. It uses the Slack Real Time Messaging API to listen for slack messages.

โžœ Read more about it in my blog post

Before running this Sketch, make sure the set the following constants in the program:

  • SLACK_BOT_TOKEN - The API token of your slack bot
  • WIFI_SSID - Your WiFi signal name (SSID)
  • WIFI_PASSWORD - Your WiFi password

In addition, you will need to install the following Arduino libraries: ADAFruit_NeoPixel, WebSockets, ArduinoJson.

arduino-slack-bot's People

Contributors

axertion avatar msurguy avatar urish avatar x3l51 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-slack-bot's Issues

Connection refused - fingerprint

Hi!

Thank you for the useful tutorial. It was very good.

I am facing an issue:
Error: SSL error 40
HTTP GET failed with code -1

I already have my token created, but I am not sure about the SLACK_SSL_FINGERPRINT... how can I check if the one you guys have in your code is still valid?

Thanks!
Antonio.

SLACK_BOT_TOKEN error

Hey man, first of all: great job!

Im playing around with your code and tried to get it to work and it does give me an error at line 20

slackbot:20: error: invalid operands of types 'const char [39]' and 'const char [43]' to binary 'operator+'

 #define SLACK_BOT_TOKEN "xoxb-111111111111-abcdefghijklmnopqrstuvwx" // Get token by creating new bot integration at https://my.slack.com/services/new/bot 

                         ^

C:\Users\work\Desktop\arduino-slack-bot-master\arduino-slack-bot-master\slackbot\slackbot.ino:177:57: note: in expansion of macro 'SLACK_BOT_TOKEN'

   http.begin("https://slack.com/api/rtm.start?token=" + SLACK_BOT_TOKEN, SLACK_SSL_FINGERPRINT);

                                                         ^

exit status 1
invalid operands of types 'const char [39]' and 'const char [43]' to binary 'operator+'

Well has it to do with the format of the token? I can't change that. Thanks!

Had to run initial connection on HTTPS

For some reason I wasn't able to run this command over HTTP :

  http.begin("https://slack.com/api/rtm.start?token=" + SLACK_BOT_TOKEN);

Slack was refusing connection over HTTP and wanted me to use HTTPS.

I had to use HTTPS connection instead (which I got by examining certificate in a web browser):

#define SLACK_SSL_FINGERPRINT "AB F0 5B A9 1A E0 AE 5F CE 32 2E 7C 66 67 49 EC DD 6D 6A 38" // If Slack changes their SSL fingerprint, you would need to update this

  http.begin("https://slack.com/api/rtm.start?token=" + SLACK_BOT_TOKEN, SLACK_SSL_FINGERPRINT);

Want me to create a PR for this change?

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.