Skip to content

Latest commit

 

History

History
38 lines (19 loc) · 1.64 KB

README.md

File metadata and controls

38 lines (19 loc) · 1.64 KB

riverToTweets

A JavaScript app that reads any number of "river" files and streams them as posts to Twitter.

Who is this for?

This is intended primarily for River4 users.

The instructions are brief. ;-)

It's probably sample code

I wanted to show people how to parse a river, and keep track of which items you've seen, and to stream them out to a service like Twitter.

It might be too much work to set up your own nodeStorage server. Feel free to substitute any code of your own to send a message. You could send an email, or a WhatsApp message, or whatever.

You can use my Twitter gateway if you want, as long as you're not sending hundreds of tweets a day.

It might be easier to understand the code reading in an outliner.

Setup

  1. It runs in Node.js.

  2. Edit config.json. For each river, give it a name. The name must be unique among the other rivers in config.json.

  3. If you're running your own nodeStorage server, substitute the address of your server for mine. (If so, the values of token and tokenSecret will come from your nodeStorage installation, not mine.)

  4. The token and tokenSecret are the values used in Radio3 (which is the domain the gateway is serving).

I'm running this code

It's how the nbariver and nyt accounts on Twitter get their content.

Support

Post questions on the River4 mail list.