Giter Club home page Giter Club logo

hipstudio's Introduction

HipStudio

About

HipStudio is a small web application to allow Visual Studio Online to post messages to a HipChat room.

VSO already supports HipChat, but I wanted to be able to better customize the messages being posted.

Prerequisites

This project is written in Python 3 and requires a few third-party libraries:

The first three can all be installed with pip.

pip3 install python-simple-hipchat bottle simplejson

python-dateutil has to be installed manually. Simply extract the file and run sudo python3 setup.py install.

OS X

  1. Install Homebrew
  2. Install Python 3, brew install python3
  3. Install libraries, pip3 install python-simple-hipchat bottle simplejson
  4. Install python-dateutil as noted above

FreeBSD

(Based on FreeBSD 10.1)

  1. Install Python 3, pkg install python3
  2. Install setuptools, pkg install py34-setuptools34
  3. Install pip, easy_install-3.4 pip
  4. Install libraries, pip3 install python-simple-hipchat bottle simplejson
  5. Install python-dateutil as noted above

Installation

There is no installation. Simply install the prerequisites, clone this repository somewhere, set up config.ini, and run hipstudio.py.

There is an included config.ini.example file. Copy this to config.ini and customize it to your liking.

The two values under [WebServer] set the IP to listen on (the default, 0.0.0.0, means all interfaces--you probably want this) as well as the port.

[HipChat] contains settings for HipChat. Name is the name of the bot; this is what messages in HipChat show as coming from. Room and Token are the room ID and API token, respectively.

[NameMappings] is used to use HipChat mentions in place of VSO's full names (e.g., 'Ross Nelson' => '@rnelson') when printing certain messages. To use this feature, simply add users in the form of hcname = VSO Name to that section. The code will automatically prepend a @ to hcname.

The included list_room_ids.py script will help you find the ID for your room. To use it, set an administrator token (not a notification token) in config.ini and simply run the script from the command line.

License

This software is licensed under the MIT license.

Copyright (c) 2014-2015 Ross Nelson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.