Paul Sutton

Mastodon

Climate change threatens European forests

Interesting article posted to the Fediverse by the Science Daily bot.

So trees are essential for several things including CO2 reduction, so we are chopping down trees and also pumping more CO2 in to the atmosphere, which is causing climate change, which in turn is also causing trees to die.

One way to sow the seeds of our own destruction. Once Humans are gone, I think the Earth will recover, probably quite quickly.

We have seen evidence of how wildlife takes back control, during the first lock down in March –> May 2020, with no cars or people around, villages had animals take over. See BBC news link below.

Well worth reading the article, for a picture of what is happening.

Citation information:

Max-Planck-Gesellschaft. “Climate change threatens European forests: Well over half of Europe's forests are potentially at risk from windthrow, forest fire and insect attacks.” ScienceDaily. ScienceDaily, 1 March 2021. .

REFERENCES

TAGS

#YearOfTheFediverse,#Mastodon,#ScienceDaily,#Climate, #Change#Trees,#Dying,#Forests,#MaxPlanckInstituteforBiogeochemistry,

Donate using Liberapay

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

FOSS And Crafts Podcast

If you enjoy the LibreLounge podcast [2], Christopher Lemmer Webber [6] appears to have left this, and started up a new podcast called FOSS AND Crafts [3]. This is a “A podcast about free software, free culture, and making things together”

This is something that is worth checking out, as with LibreLounge you can subscribe to the podcast and also download on .ogg [5] and .mp3 file formats.

I wrote a post in December on how to subscribe to LibreLounge using vlc [7] so the procedure is the same.

REFERENCES

1 Free Software Foundation 2 LibreLounge 3 FOSS AND Crafts 4 Mastodon 5 FSF Ogg vorbis page 6 Christopher Lemmer Webber 7 Subscribe how_to

TAGS

#YearOfTheFediverse,#Podcast,#vlc.#Subscription,#rss, #Media,#help,#support,#FOSSandCrafts,#Mastodon,#ogg, #mp3

Donate using Liberapay

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

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