The Artima Developer Community
Sponsored Link

Java Buzz Forum
Automate your standup and wallboard with Crontabs

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mathias Bogaert

Posts: 618
Nickname: pathos
Registered: Aug, 2003

Mathias Bogaert is a senior software architect at Intrasoft mainly doing projects for the EC.
Automate your standup and wallboard with Crontabs Posted: Dec 16, 2013 1:35 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mathias Bogaert.
Original Post: Automate your standup and wallboard with Crontabs
Feed Title: Scuttlebutt
Feed URL: http://feeds.feedburner.com/AtlassianDeveloperBlog
Feed Description: tech gossip by mathias
Latest Java Buzz Posts
Latest Java Buzz Posts by Mathias Bogaert
Latest Posts From Scuttlebutt

Advertisement

On the Atlassian Marketplace team, we have a daily standup at 10:30 a.m Pacific. With one permanently remote team member, we were having to manually start a Google Hangout on the wallboard every morning. To make matters worse, our standup music was played by a small app which pulled the wallboard out of fullscreen mode. I took it upon myself to automate the wallboard and standup hangout completely within the browser, so in my spare time I wrote Crontabs. Crontabs is a simple Chrome extension which allows you to open, show, reload or close tabs on a schedule defined by a cron expression. We’ve been using it for serval months now without a hitch. Here’s how to set it up. Standup The command below will open the Google Hangout from 10:30 and 10:37. Simultaneously at 10:30, our HipChat bot, Marvin, will send a message to our HipChat room with the static hangout link. These static URLs can be created with a recurring Google calendar event. For the cron experts out there, yes, I’m using seconds in the expression. The library which backs crontabs thankfully supports this. Standup music To let people know that it’s standup time, it’s best to have some music to break them out their reverie. This expression opens a window to Pandora ten seconds before the hangout starts. The tab is closed forty seconds later, roughly coinciding with the start of the hangout. Regular tab rotation Running a regular tab rotation with a daily event is a little tricky as cron expressions let you specify different minute ranges for specific hours. The solution is to use two cron expressions: One for the hour the standup falls on, and one for every other hour. Our Bamboo build status tab 0 0-59/2 7-9,11-20 * * MON-FRI Trigger on the first second of every other minute from 07:00 through to 09:59 and also from 11:00 to 20:59, Monday to Friday. 0 0-29/2,37-59/2 10 * * MON-FRI Trigger on the first second of every other minute from 10:00 through to 10:29 and also from 10:37 to 10:59, Monday to Friday. Real-time Google Analytics   0 1-59/2 7-9,11-20 * * MON-FRI Show the tab on the first second of every other minute from 07:01 through to 09:59 and also from 11:01 to 20:59, Monday to Friday. 0 1-29/2,38-59/2 10 * * MON-FRI Show the tab on the first second of every other minute from 10:00 through to 10:29 and also from 10:37 to 10:59, Monday to Friday. Can you see a pattern arising? Two tabs in rotation (minute expression) Tab 1. 0-59/2 Tab 2. 1-59/2 Three tabs in rotation Tab 1. 0-59/3 Tab 2. 1-59/3 Tab 3. 2-59/3 Success? So now, using Crontabs, the standup starts and closes itself automatically and then goes back to its regular tab switching cadence. This is a technical success, I guess, but the real success is that the team takes it for granted. Crontabs is by no means finished. Future developments will allow controlling multiple browsers from a single […]

The post Automate your standup and wallboard with Crontabs appeared first on Atlassian Blogs.

Read: Automate your standup and wallboard with Crontabs

Topic: When something works, share it! Previous Topic   Next Topic Topic: Service Composition: Modularity for SOA and Event-Driven Applications, Part I

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use