Mastodon support

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

User avatar
WessexWeather
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Apr 17, 2016 9:54 am
Location: Wimborne, Dorset, UK
Contact:

Mastodon support

Post by WessexWeather »

Hello,

With so many people leaving Twitter for Mastodon, would it be possible to add Mastodon as a Service?

Thanks,
Simon

Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Mastodon support

Post by admin »

I have to inspect how to implement that. I put it on the wish list.
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

If twitter pulls the plug on the free API then that would a great idea to implement an alternative to post too.
User avatar
WessexWeather
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Apr 17, 2016 9:54 am
Location: Wimborne, Dorset, UK
Contact:

Re: Mastodon support

Post by WessexWeather »

Twitter has finally pulled the plug, so the built-in Twitter event is no longer working. Twitter's days appear to be numbered, especially following the recent X rebrand.

Have you had a chance to look into Mastodon support?
Simon

Image
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

following.....
Churchtownweather
Junior Boarder
Junior Boarder
Posts: 34
Joined: Wed Sep 30, 2020 10:30 am

Re: Mastodon support

Post by Churchtownweather »

Following
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

What needs to be done is a server setup for weather.

There is a meteo.social but it's not accepting any new users.
User avatar
WessexWeather
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Apr 17, 2016 9:54 am
Location: Wimborne, Dorset, UK
Contact:

Re: Mastodon support

Post by WessexWeather »

That’s true, but this thread is about adding Mastodon support to Meteobridge…
Simon

Image
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

WessexWeather wrote: Mon Jul 31, 2023 12:15 am That’s true, but this thread is about adding Mastodon support to Meteobridge…
for the time being I am gonna use the cli toot utility for Mastodon and then "toot" post a file content (made by metoeobridge or CumulusMX) to this server:

https://wxcloud.social/

before Twitter support in Meteobridge I used a similar method with twidge
User avatar
WessexWeather
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Apr 17, 2016 9:54 am
Location: Wimborne, Dorset, UK
Contact:

Re: Mastodon support

Post by WessexWeather »

Thanks Simon, can you tell us a bit more about this? I’m not familiar with it.
Simon

Image
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

so I am probably going to use my cumulusMX server (ubuntu) to "toot" a post from a file.

CumulusMX allows me to create a template with cmx values (similar to what metoebridge should be able to do) this template is processed and writes to a file.

the file contents are then used to post onto mastodon using a cron job using the cli command installed from this package.

https://toot.bezdomni.net/

the command line will look something like this:

some bash script command line.....

Code: Select all

cat  mastodon.txt | toot post >> toot.out 2>> toot.err
The file "mastodon.txt" has the weather values that I'm posting.

"toot" is the "toot" binary file, so
that is the command being executed.

"post" is the parameter I'm passing to "toot" to tell it to post
the content that has been piped into it.

">> toot.out" means the output of the command is to be appended
to the file "toot.out"

"2>> toot.err" means any error output from the command will be
appended to the file "toot.err"

hope that helps. I'm not sure if you could install toot onto meteobridge itself and run it locally or you can save the file contents elsewhere and use toot from another linux device. then call the commandline from a crontab task.

src: https://lists.sr.ht/~ihabunek/toot-disc ... s.co.uk%3E
User avatar
WessexWeather
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Apr 17, 2016 9:54 am
Location: Wimborne, Dorset, UK
Contact:

Re: Mastodon support

Post by WessexWeather »

Thanks Simon, I’ll look into this.

I just wish Boris could implement this natively as he has with other services. Maybe it’s not as easy as we think.
Simon

Image
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

WessexWeather wrote: Wed Aug 02, 2023 7:29 pm Thanks Simon, I’ll look into this.

I just wish Boris could implement this natively as he has with other services. Maybe it’s not as easy as we think.
the hardest part was the registration process for the cli tool via CLI command. it just didn't work for me, but it does give you a URL to use. once the url was used in chrome, then registration process worked. using

Code: Select all

# toot post "whatever text your like" 
does work now. I will be testing out the "toots" this weekend and hopefully have it up and running soon.
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Mastodon support

Post by ConligWX »

ConligWX wrote: Fri Aug 04, 2023 8:57 am does work now. I will be testing out the "toots" this weekend and hopefully have it up and running soon.
Finally got it working, or there abouts....

https://wxcloud.social/@conligwx
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Mastodon support

Post by admin »

Nice reading. Unfortunately, toot is based on python which Meteobridge does not support (because of storage limitations).
Post Reply