Paul Sutton

Personal Blog

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

February STSCI lecture review

Donate using Liberapay

This months lecture Milky Way vs Andromeda: When galaxies collide. was really interesting, and covered material about how galaxies are formed, looking for life and what may happen when in 7 billion years, the Andromeda galaxy merges with our own, home galaxy.

The lecture also talked about how galaxies were first discovered and how, only in the last 100 years have we really started to learn a lot more about them. Why the two will merge is linked to the expansion of the universe.

Earth, of course, won't exist by then. The sun, being 4 billion years old, will have expanded to a red giant. As the duration of a 'main sequence star' is about 10 billion years (cite OU Open Learn The Sun)

So the lecture also included about how we could find earth 2.0, the fact that this. may not be easy given the time it will take to reach even the nearest start.

Proxima Centauri (4.2ly) and the planet around that isn't very hospitable.

Personal comment to add to this

I would guess it also raises the question if it will take 10's of 1000s of years to reach will it be the same or have developed to be more life friendly, then on the other side of that a planet that is life friendly now, may like the Earth not be so friendly i 1000's of years time.

Looking forward to the next lecture in March.

REFERENCES

TAGS

#YearOfTheFediverse,#galaxies,#space,#Telescope,#stsci,#Science,Physics,#Astronomy

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

Hedgewars

Donate using Liberapay

HEDGEWARS

Further to the post on Warmux, this is a nice game but no longer maintained. A similar game called Hedgewars [1]. The characters are different (hedgehogs), better graphics but the game play is still centred around artillery and strategy.

Screenshots

Hedgewars 1 Hedgewars 2 Hedgewars 3 Hedgewars 4

REFERENCES

TAGS

#YearOfTheFediverse,

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

Warmux

Donate using Liberapay

Warmux is a clone of the turn based artillery game Worms, which was very popular Team17 game from the 90's. This works really well on my set up and is a fun distraction.

Warmux Screenshot

Menuscreen showing various options

Warmux Screenshot

Ingame screen

Warmux Screenshot

Ingame screen

Warmux Screenshot

Ingame screen

REFERENCES

TAGS

#YearOfTheFediverse,#Games,Strategy,#Warmux, #FreeSoftware

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

LibreOffice 7.1 released

Donate using Liberapay

LibreOffice 7.1

LibreOffice 7.1 [1] has been released, more improvements and features, better compatibility with MS Office documents. OMG Ubuntu [2] has a run through of the new features.

REFERENCES

1 LibreOffice 2 OMG Ubuntu 3 Free Software Foundation

TAGS

#YearOfTheFediverse,#LibreOffice,#Office,#Writer,#Calc,#Base,#Draw,#Math.

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

Matrix

Donate using Liberapay

Matrix is a communication protocol. You can read a more detailed description here and I have found a video which an introduction below.

The Devon and Cornwall linux user group now have their IRC channel bridged to Matrix, this means that the channel #dcglug can be accessed by anyone who has either an IRC client, Matrix Client or connects to IRC via the web interface for example. This opens up the chat to far more people, which is a good thing.

DCGLUG Matrix channel : #freenode_#dcglug:matrix

REFERENCES

Other links

TAGS

#YearOfTheFediverse,#Matrix,#Decentralised, #communication,#Communication.#Element

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

The Milky Way vs. Andromeda: When Galaxies Collide

Space Telescope Science Institute Public lectures The Milky Way vs. Andromeda: When Galaxies Collide Tue 2nd Feb 2021

Link

#space,#telescope,#astronomy,#lecture,#public,#online,#talk, #science


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

Fosdem 21 Reminder

Fosdem 2021 takes place on the weekend of 6th and 7th Feb 2021.

FOSDEM is a free event for software developers to meet, share ideas and collaborate.

Will take place via Jitsi and Matrix

If you sign up to matrix via the link below the you can get access to all the chatrooms during the conference.

I am on there as zleap@zleap:fosdem.org

Social

#conference,#freesoftware,#freedom,#fosdem

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

CryptPad 4

Donate using Liberapay

A look at some of the features of the Rich Text Editor that comes with the recently released, version 4 of CryptPad.

This is a really nice package, and service, Cryptpad also comes as part of Disroot, which is also linked below. The best feature of course is the privacy.

REFERENCES

TAGS

#YearOfTheFediverse,#CryptPad,#RichText,#Editor,#Text, Cloud,#Privacy

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay

LaTeX : Flowcharts

Donate using Liberapay

Another useful resource and tutorial from LaTeX Draw for drawing flowcharts.

REFERENCES

TAGS

#YearOfTheFediverse,#LaTeX,#LaTeXDraw,#Flowchart,#Tutorial

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


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay