scripting / feedToMasto

Node app that checks a list of feeds periodically, post new items to Mastodon.
MIT License
26 stars 0 forks source link

feedToMasto

A Node app that checks a list of feeds periodically, posting new items to Mastodon and/or Bluesky.

Bluesky, WordPress support added

Where ever you see "Mastodon" in the docs here, replace it in your mind with "Mastodon and/or Bluesky and/or WordPress."

I've started a separate section below for how to configure this app to post to Bluesky, and a section for WordPress.

Why did you do this?

These are things I believe, or goals I have.

Requirements

config.json

Setting up the feedToMasto app is all done in config.json. Open it in a text editor.

On your Mastodon account

Click on Preferences, in the right margin.

Click on Development in the left margin.

Click on the New application button in the upper right corner.

You should see a form that looks like this. We're going to fill in the form.

In the Scopes section do the following.

When you're done the Scopes section should look like this.

Finally click the Submit button at the bottom of the page.

You should then see a list of your applications, with this new app on the list.

Click on the name of the new app to bring up a screen with various numeric strings you'll add to config.json in the next section.

Back in config.json

Open config.json in an editor. This is what you should see.

On the screen in your browser you should see various numeric strings that you are going to copy into config.json.

Copy the three items, Client key, Client secret and Your access token from the browser to the xxx's in config.json as shown in this screen shot.

Enter the URL of your Mastodon server in urlMastodonServer in config.json.

Screen shot

Using with Bluesky

In config.json, at the top level, create a new object called bluesky.

Set it up as shown in the example file. Basically you're providing the same info you provide when you log in personally, your username, email address and password.

Why Bluesky? I wanted to start fanning out to support new social networks other than Mastodon. I was using Bluesky and had some good developer docs from my friend Manton Reece, so I decided the second platform would be Bluesky. This is not an endorsement of the product.

Using with WordPress

In config.json, at the top level, create a new object called wordpress.

Set it up as shown in the example file. Basically you're providing the same info you provide when you log in personally, your username, email address and password.

Why WordPress? It's like the Mount Everest of social media, so huge you often miss it. It also supports all the features of textcasting, so it's a way to test all the features, flowing from RSS, that also supports all the features of textcasting.

What the other items in config.json are for

The other values in config.json have default values that work well for a first run of the app. The only ones you should come back before running it for real are feeds and disclaimer.

Notes

Bug reports, not pull requests.

Comments, questions, feature requests, bug reports here.