Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zh/pushsub
PuSH subscriber with Websockets notifications
https://github.com/zh/pushsub
Last synced: 10 days ago
JSON representation
PuSH subscriber with Websockets notifications
- Host: GitHub
- URL: https://github.com/zh/pushsub
- Owner: zh
- Created: 2010-12-30T05:13:44.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-30T06:20:23.000Z (almost 14 years ago)
- Last Synced: 2023-04-10T23:24:06.337Z (over 1 year ago)
- Language: Ruby
- Homepage: http://pushsub.heroku.com/
- Size: 97.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PuSHSub
PuSH (PubSubHubbub) subscriber with Websockets notifications ( provided by [Pusher](http://pusherapp.com/) )
## Needed gems (.gems)
sinatra
sequel
simple-rss
json
pusher## Heroku config (environment variables)
heroku config:add PUSH_ID=1234
heroku config:add PUSH_KEY=xxxxxxxxxxxxxxxxxxxx
heroku config:add PUSH_SECRET=yyyyyyyyyyyyyyyyyyyy
heroku config:add AUSER=admin
heroku config:add APASS=secret## Usage
### Using preinstalled application on [http://pushsub.heroku.com/](http://pushsub.heroku.com/)
* Click the **"Create"** button. This will create a new subscription page.
* In the PuSH hub ( I prefer [Superfeedr](http://superfeedr.com/) ) subscription form enter:* Action: subscribe
* Topic: {some feed url}
* Callback: http://pushsub.heroku.com/sub/XXXXX - the Callback URL, displayed on the top of the page, you just created.
* When there are changes in your feed, the new items will be displayed in near real time on your subscription page.### Your own install
PuSHSub application is using [Pusher](http://pusherapp.com/) channels for Websockets notifications. If you do not need these notifications, do not define *PUSH_ID* environment variable.
If you decided to use Websockets notifications:
* In your [Pusher](http://pusherapp.com/) account - *"Add new app"*
* From the *"Api access"* page use the *API Credentials* to configure your *PUSH_ID*, *PUSH_KEY* and *PUSH_SECRET* environment variables
* In the PuSH hub subscription form use *http://{you_installation_url}/sub/XXXXX* for Callback URL