@borkdude
If this is a linux command line application similar to ansiweather
You shoud be able to use the toot app to direct the output to fedi
ansiweather -l London
Weather in London => 11 °C - Wind => 4.02 m/s SW - Humidity => 91 % - Pressure => 1012 hPa
ansiweather -l London > toot
You do need to set up toot so it is logged in but it works really nicely. Also works in reverse in that if you do toot < file.txt the contents of the file will be tooted.