Page 1 of 2

Mastodon support

Posted: Sat Dec 17, 2022 10:29 am
by WessexWeather
Hello,

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

Thanks,

Re: Mastodon support

Posted: Thu Dec 22, 2022 6:27 am
by admin
I have to inspect how to implement that. I put it on the wish list.

Re: Mastodon support

Posted: Mon Feb 06, 2023 10:36 pm
by ConligWX
If twitter pulls the plug on the free API then that would a great idea to implement an alternative to post too.

Re: Mastodon support

Posted: Wed Jul 26, 2023 11:27 am
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?

Re: Mastodon support

Posted: Sat Jul 29, 2023 3:00 pm
by ConligWX
following.....

Re: Mastodon support

Posted: Sat Jul 29, 2023 7:37 pm
by Churchtownweather
Following

Re: Mastodon support

Posted: Sun Jul 30, 2023 5:14 pm
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.

Re: Mastodon support

Posted: Mon Jul 31, 2023 12:15 am
by WessexWeather
That’s true, but this thread is about adding Mastodon support to Meteobridge…

Re: Mastodon support

Posted: Tue Aug 01, 2023 4:34 pm
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

Re: Mastodon support

Posted: Tue Aug 01, 2023 7:13 pm
by WessexWeather
Thanks Simon, can you tell us a bit more about this? I’m not familiar with it.

Re: Mastodon support

Posted: Wed Aug 02, 2023 3:17 pm
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

Re: Mastodon support

Posted: Wed Aug 02, 2023 7:29 pm
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.

Re: Mastodon support

Posted: Fri Aug 04, 2023 8:57 am
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.

Re: Mastodon support

Posted: Mon Aug 07, 2023 1:47 pm
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

Re: Mastodon support

Posted: Mon Aug 07, 2023 4:35 pm
by admin
Nice reading. Unfortunately, toot is based on python which Meteobridge does not support (because of storage limitations).