plane-notify icon indicating copy to clipboard operation
plane-notify copied to clipboard

Feature request: Mastodon API

Open eichkat3r opened this issue 2 years ago • 4 comments

The fediverse is gaining a lot of attention lately, with microblogging services like Mastodon and Pleroma being recognized as potential Twitter alternatives. Hence, it would be cool to connect plane-notify to the fedi as well.

For the sake of simplicity, I'd suggest to use Mastodon.py (https://mastodonpy.readthedocs.io/en/stable/), as it is very simple to set up.

What needs to be done to accomplish this:

  • [ ] Include Mastodon API key as a configurable value
  • [ ] Create defMastodon module that leverages Mastodon.py to post plane information on the fediverse, similar to way it was posted on Twitter
  • [ ] Integrate the defMastodon module such that it can be used by plane-notify (I currently don't know how this is done)
  • [ ] Setup instructions
  • [ ] Add Mastodon.py to requirements (Pipfile)

eichkat3r avatar Dec 14 '22 10:12 eichkat3r

even more relevant, considering that @Elonjet is now suspended on Twitter :P

dayeggpi avatar Dec 14 '22 12:12 dayeggpi

What about making it ActivityPub instead? So it'll work across the entire #fediverse

shamoons avatar Dec 14 '22 21:12 shamoons

What about making it ActivityPub instead? So it'll work across the entire #fediverse

I proposed the Mastodon frontend for a pragmatic reason, as using Mastodon.py to create a toot is essentially 4 lines of code. Also, Mastodon has decent interoperability with other platforms on the fediverse, such as friendica, pleroma or misskey. But I agree, going for ActivityPub directly would be a better choice with respect to generalization to a broader set of platforms on the fediverse. However, creating a generic ActivityPub service implies more effort to develop and test. My suggestion would be to open a separate issue.

eichkat3r avatar Dec 15 '22 08:12 eichkat3r

I'll accept #90 soon and will review it. I actually had not coded this already so thanks! I was manually posting there. Can someone message me in my Discord and explain how ActivityPub/Fediverse would work? New to the decentralized platforms

Jxck-S avatar Dec 22 '22 04:12 Jxck-S

Mastodon was implemented a while ago.

Jxck-S avatar May 12 '23 03:05 Jxck-S