Go to Post Strive for excellence in everything you do, but also recognize it in others when you see it, rather than try to drag it down. - Joe G. [more]
Home
Go Back   Chief Delphi > Other > FIRST-related Organizations > The Blue Alliance
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-04-2016, 12:56
plnyyanks's Avatar
plnyyanks plnyyanks is online now
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: [TBA]: TBA to Slack integration

Quote:
Originally Posted by mikhail View Post
This is so cool. Thanks for responses guys! I went ahead and created an account on Google App Engine for myself. They gave me 60 days of free trial - plenty for this season. Then we will see. Now I'm thinking what programming language to use. I'd guess following TBA it would be Python, right? Shall we create a project on GitHub? Of course it must be open source, not a tiny doubt about that.
App Engine actually has a free tier, and you shouldn't need any more resources that that. Python works nicely on App Engine, so that's a perfectly fine choice (other GAE choices are Java, Go, and PHP)

Quote:
Originally Posted by joelg236 View Post
Can I suggest a simple nodejs app that ingests TBA through this and serves slack JSON?

example
I'm not sure that library works if webhooks are used. The server wouldn't actually poll the TBA API, the flow would go something like this:

TBA ---(webhook)---> GAE (process, format) -----(Slack Message)---> Slack
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #2   Spotlight this post!  
Unread 01-04-2016, 12:57
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: [TBA]: TBA to Slack integration

Quote:
Originally Posted by plnyyanks View Post
App Engine actually has a free tier, and you shouldn't need any more resources that that. Python works nicely on App Engine, so that's a perfectly fine choice (other GAE choices are Java, Go, and PHP)



I'm not sure that library works if webhooks are used. The server wouldn't actually poll the TBA API, the flow would go something like this:

TBA ---(webhook)---> GAE (process, format) -----(Slack Message)---> Slack
You're totally right, I had it mixed up in my head. Makes sense.
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-04-2016, 00:41
mikhail's Avatar
mikhail mikhail is offline
Registered User
AKA: Mentor of The Software ERRORs
FRC #3130 (ERRORS)
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2013
Location: Minnesota
Posts: 16
mikhail is an unknown quantity at this point
Re: [TBA]: TBA to Slack integration

Update:
I finally succeeded connecting the two webhooks: from TBA to Slack. Yay! It's a -nasty hack- convoluted Python script running on Google Apps. So far it is very simplistic, basically just stripping JSON formatting for a couple of message types. I can't open-source it yet because all the URLs and secrets are hard coded into the script. I'll see how it works this upcoming weekend then will try to rewrite it in a more open-source-able form (after I'm done with my taxes as well). Stay tuned.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-05-2016, 23:45
mikhail's Avatar
mikhail mikhail is offline
Registered User
AKA: Mentor of The Software ERRORs
FRC #3130 (ERRORS)
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2013
Location: Minnesota
Posts: 16
mikhail is an unknown quantity at this point
Re: [TBA]: TBA to Slack integration

Alright. Sorry for the delay, our team 3130 happened to win its second regional and had to go to the world champs. So all our resources were taken by the preps. Now as the competitions season is over I managed to scratch some time to publish our code onto GitHub. Here it is.

https://github.com/team3130/TBA-push-to-Slack/

That's a very basic example we tested in our Slack team. So far only "Upcoming Match" and "Match Score" notifications are implemented. And even those are very basic.

I'd love to hear suggestions how to make the project more collaborative so others could contribute. For the starters the major conflict I already can see would be that if this project grows further everyone will want their own formatting for messages. For the meantime I have no idea how to handle that. Please chime in.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 19:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi