Email or username:

Password:

Forgot your password?
Top-level
db0

@thomas Very nice. I'd love to run something like this for lemmy.dbzer0.com. Is this open sourced that you can share?

9 comments
Barkeeper Tom :damnified:

@db0 It's still in testing, therefore I have not published it, yet. And it's currently for Mastodon, only. Maybe it can be changed to support Lemmy, too.

db0

@thomas Ah I won't be able to adapt it easily then. Is it polling your DB directly, or using an API?

Barkeeper Tom :damnified:

@db0 the interface to Mastodon is actually just a Redis Pub/sub interface. A small patch for the Mastodon source makes Mastodon write the names of connected hosts to Redis. The hostnames are then retrieved by my tool, and translated into coordinates.

If there is a way to publish the hostnames of connected AP nodes to Redis, it should work for Lemmy as well.

db0

@thomas Oh that sounds simple enough I could easily cook up a little python script to extract them from the DB or access.log into a redis and then have your app pull them on the other side. Do let me know when you have something you can share :)

Barkeeper Tom :damnified:

@db0 I will :) It needs some polishing (e.g. Configuration of some hardcodes values) but after that I guess it's ready to be open sourced.

Cc @luca

db0

@thomas @luca Excellent. Rock on Bruder 🤘

Go Up