Paul Sutton

mastodon

Libretranslate

Libretranslate is a an open source translation API which can be self-hosted.

Thank you to Gray for posting this.

https://www.apertium.org/index.eng.html?dir=eng-epo#translation

Found REFERENCES

TAGS

#YearOfTheFediverse,#Translation,#Libre,#API,#Open, #Mastodon,#Self,#Host

Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Mastodon Cheat Sheet

Mastodon can be controlled using the keyboard

Key(s) Function
r to reply
m to mention author
p to open author's profile
f to favourite
b to boost
enter, o to open toot
e to open media
x to show/hide text behind CW
h to show/hide media
up, k to move up in the list
down, j to move down in the list
1-9 to focus a toot in one of the columns
n to focus the compose textarea
alt+n to start a brand new toot
alt+x to show/hide CW field
backspace to navigate back
s to focus search
esc to un-focus compose textarea/search
g+h to open home timeline
g+n to open notifications column
g+l to open local timeline
g+t to open federated timeline
g+d to open direct messages column
g+s to open “get started” column
g+f to open favourites list
g+p to open pinned toots list
g+u to open your profile
g+b to open blocked users list
g+m to open muted users list
g+r to open follow requests list
? to display this legend

REFERENCES

TAGS

#YearOfTheFediverse,#Mastodon,#Keyboard,#Control

Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

20.04.2 LTS

Donate using Liberapay

Lubuntu 20.04.2, has been relesed, this is the lastest of the LTS (Long Term Support) updates for the system. You can find more info on the blog page.

Lubuntu is a derivative of the Ubuntu Operating system which in turn is built on Debian. Links in the list below.

Lubuntu is great for both low and high specification systems, and can help bring new life to old hardware, which given the number of people without devices could be a really effective way to help bridge the digital divide.

Organizations such as the good thing foundation help to build digital skills, sadly this does not cover fully free and open source software, let alone decentralized social media networks such as Mastodon.

There is no reason why LibreOffice can't be taught and promoted along side MS Office.

The more people to ASK for support with things like Lubuntu etc they will hopefully eventually provide the choice and associated support for alternatives.

REFERENCES

TAGS

#YearOfTheFediverse,#Lubuntu,#LTS,#release,#FreeSoftware,#Ubuntu,#Debian,#LibreOffice,#Mastodon

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Ansi Weather 2

Donate using Liberapay

Further to my previous post on ansi weather

I wrote this, which asks for your location, and displays the weather.

echo "where do you live ?"
read location
ansiweather -l $location

In my previous post I was trying to use sed to clean up the output, this isn't needed as the -a option removes the colour coding from the output

ansiweather -a false -l Plymouth, UK >> weatherinfo.txt

Produces

Weather in Plymouth => -10 °C – Wind => 1.72 m/s NNW – Humidity => 62 % – Pressure => 1028 hPa

Which is far better.

so our new shell script is

1 #send weather info to Mastodon
  2 # current date
  3 date > weatherinfo.txt
  4 # current weather
  5 # use -a false to remove colour from output, set location, output to a file
  6 ansiweather -a false -l Plymouth, UK >> weatherinfo.txt
  7 # output to console too
  8 ansiweather -a false -l Plymouth, UK
  9 #send to Mastodon
 10 toot post < weatherinfo.txt
 11 # done
 12 echo done

So the final output to Mastodon is

Final Output

There are more options in the READ.me file

Thank you to Noisytoot for helping with this.

If you now combine the 2nd script with the one I have at the top of this page you should be able to input your location, then get the local weather.

REFERENCES

TAGS

#YearOfTheFediverse,#ansiweather,#weather,#mastodon,#bash,#console,#terminal #information

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Ansi Weather

Donate using Liberapay

Getting weather information is really useful. What happens if you're at the command line in Linux? I found a really little application that can help

ansiweather

apt install ansiweather

ansiweather -l Plymouth, UK

Ansi Weather Output

So what else can we do with this

  1. Send the output to Mastodon with toot post

This is a two step process

  1. ansiweather -l Plymouth, UK > weather.txt
  2. toot post < weather.txt

Will send the weather info to Mastodon.

However this does not include any date info

We can fix this with

  1. date > weatherinfo.txt
  2. ansiweather -l Plymouth, UK >> weatherinfo.txt

then send the whole lot to Mastodon with

  1. toot post < weatherinfo.txt

So, if we put this in to a final shell script we need:-

#send weather info to Mastodon
# current date
date > weatherinfo.txt
# current weather
ansiweather -l Plymouth, UK >> weatherinfo.txt
#send to Mastodon
toot post < weatherinfo.txt
# done
echo done

Again released under GPLv3

I tried to get festival to speak the weather, it is not perfect but this sort of works, you will need to direct to weather.txt first.

festival —tts < weather.txt

Looking in to this further, the issue is the brackets etc, so this stackoverflow post

strips out the colour formatting

sed 's/\x1b[[^\x1b]*m//g' weatherinfo.txt

Therefore

sed 's/\x1b[[^\x1b]*m//g' weatherinfo.txt > weatherinfo2.txt

Sends the newly formatted text to weatherinfo2.txt

So running back through festival

festival —tts < weather.txt

Is perhaps a little better, but not perfect

So going back to what we wrote earlier to send to Mastodon, the new script

  1 #send weather info to Mastodon
  2 # current date
  3 date > weatherinfo.txt
  4 # current weather
  5 ansiweather -l Plymouth, UK >> weatherinfo.txt
  6 # clean up output with sed
  7 sed 's/\x1b\[[^\x1b]*m//g' weatherinfo.txt > weatherinfo2.txt
  8 #send to Mastodon
  9 toot post < weatherinfo2.txt
 10 # done
 11 echo done

Produces much nicer output. The top bottom part of this illustrates what was sent before we stripped out the colour formatting

However it still isn't perfect, as it removes part some of the wording, but it is hopefully getting there.

Weather Output (new)

REFERENCES

TAGS

#YearOfTheFediverse,#Weather,#Scripting,#Bash,#Linux, #Mastodon,#ProblemSolving,#AnsiWeather,#programming, #Stackoverflow,#sed,#cat,#grep,GPL3,#FSF

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Toot mastodon client

Donate using Liberapay

I have been experimenting with the toot mastodon client. This does have a curses interface.

toot curses. (q to quit)

However experimenting with this and bash scripting

So to begin with you will probably need to login

toot login_cli

toot post text here

will send that text to Mastodon (toy

fortune > fortuneout
#
# echo to screen
cat fortuneout
# post content of fortuneout to console
toot post < fortuneout
#
echo "done"

This will run the fortune program, send output to a file then send the output in to toot post.

The next example the script asks for some user input and then sends it to toot post

echo "Please Enter some Text"
read usertext
#
#
# post user input to mastodon
echo $usertext
toot post '$usertext'
#
echo "done"

The potential of the above could allow real time data to be posted to Mastodon for example.

The above scripts are released under GPLv3.

REFERENCES

TAGS

#YearOfTheFediverse,#toot,#mastodon,#client

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Mastodon Privacy and safety

So today I am presenting 3 more videos on Mastodon.

Firstly a video on how to hide sentitive content, which is more of a safety feature.

It is probably a good idea to hide all media, as different people have different views on what is sensitive.

The second video allows you to do two things

  1. Not be indexed by search engines
  2. Hides who you follow, and who follows you.

While the third video looks at how to ensure your timeline,feed etc remain private and away from public view. This also means people would have to sign up to the Fediverse to see and commuicate with you.

This is also an important safety feature as it reduces the risk of stalking, you also need to keep activity private from perhaps employers, potential employers or other parties.

My Mastodon sign up blog post is here

#Mastodon,#safety,#privacy,#settings,#YearOfTheFediverse

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Mastodon – Text Description

In mastodon after uploading an image you can click edit and add a text description to help persons with eyesight problem find out what the image is.

Picture Description

This is an excellent accessibility feature.

On 31/12/2020, I reported an issue with this feature. This is currently under investigation.

On a related note, there is a really nice promotional video for Mastodon.

My Mastodon sign up blog post is here

#mastodon,#accessibility,#picture,#description.

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Guide to the fediverse

With the Fediverse expanding it is really nice to have some great resources to explain how both the Fedivese ad in this case Mastodon work. This explanation is from torresjrjr

There is also a video on Peertube below.

More resources will be posted shortly, in the mean time you can sign up here

After which this website useful to help you find people with similar interests.

#fediverse,#mastodon,#ActivityPub,#guide.

Mastodon toot client

Tip of the day

if using the toot command line client, you can toot the contents of a file.

Lets say 'text.txt' contains the following

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam

If you login to toot, then type

toot post < text.txt then the contents of that file will be posted to Mastodon.

Please feel free to follow me on Mastodon here

#mastodon,#toot,#tips,#hints,#commandline,#cli,#client, #text,