1.0.0 • Published 8 years ago

hubot-yt-track v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hubot-yt-track

Tracking new youtube videos from certain channels

See src/yt-track.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-yt-track --save

Then add hubot-yt-track to your external-scripts.json:

[
  "hubot-yt-track"
]

Configuration

To follow YT notification you need to configure pubsub :

Visit this page for full instruction

Or head over to pubsubhubbub page and set callback URL to your server address with open port

https://myaddress:9005

Set your topic url following pattern below

https://www.youtube.com/xml/feeds/videos.xml?channel_id=CHANNEL_ID

As channel id set channel id which you want to follow , set subscribe and click "Do It!" button

In order to use it you must set environment variables :

  • PUBSUB_PORT - Your pubsub port (9005)
  • PUBSUB_URL - Your pubsub callback url (http://myurl) - Must be without port
  • PUBSUB_TOPIC - Your topic from youtube api (https://www.youtube.com/xml/feeds/videos.xml?channel_id=CHANNEL_ID)
  • HUBOT_ROOM - Hubot room (codingphasedotcom/Lobby)

    Setting environment variables on Mac

    In order to set the environment variables, see the example below.

  • export PUBSUB_PORT=9005;

  • export PUBSUB_URL=https://someurl

    Setting environment variables on Windows

    In order to set the environment variables, see the example below.

  • set PUBSUB_PORT=9005;

  • set PUBSUB_URL=https://someurl

NPM Module

https://www.npmjs.com/package/hubot-yt-track

1.0.0

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago