This repo contains the code which runs my Hipchat notification icon. It consists of the following:
- icon-server - A simple webserver which provides an API which toggles a system tray icon.
- systemd - A systemd service description which starts the icon server on boot
- userscript.js - A tampermonkey userscript which sends messages to the icon server when things change in Hipchat.
- Make a separate Chrome instance for hipchat. Install Tampermonkey
- Clone this repo to ~/bin/mine/hipchat-icon
- Run the following command inside the icon-server directory: openssl req -new -nodes -x509 -subj "/C=AU/ST=Victoria/L=Melbourne/O=ZZ Squareweave/CN=localhost" -days 3650 -keyout server.key -out server.crt -extensions v3_ca -sha256
- Ensure the paths are correct in hipchat-icon.service
- Symlink hipchat-icon.service to ~/.config/systemd/user/hipchat-icon.service.
- Run systemctl --user enable ~/.config/systemd/user/hipchat-icon.service.
- Run systemct start hipchat-icon . You should see an icon in your system tray.
- Add the server.crt as a CA to your hipchat chrome instance.
- Install the userscript.js as a tampermonkey userscript. Reload the hipchat tab.
- Open the network tab on the chrome inspector. Check that communications are going from the userscript to the python web server.
- Get someone to send you a message. If things go well, the system tray icon should go red. If it doesn't, hopefully you'll get something logged to either