Networking | Linux | FOSS | Note-Keeping |

Pages

Friday, March 29, 2019

wttr.in - Eye Candy Weather Forecast in Linux Command Line & Browser

I recently came across an eye candy console-oriented weather forecast service tool wttr.in — the right way to check the weather!
wttr.in is a console-oriented weather forecast service that supports various information representation methods like terminal-oriented ANSI-sequences for console HTTP clients (curl, httpie, or wget), HTML for web browsers, or PNG for graphical viewers.
wttr.in uses wego for visualization and various data sources for weather forecast information. It uses the USCS units for the queries from the USA and the metric system for the rest of the world by default.
You can see it running here: wttr.in.
Weather Report

Usage

You can access the service from a shell or from a Web browser like this:
$ curl wttr.in
Weather for City: Paris, France

     \   /     Clear
      .-.      10 – 11 °C     
   ― (   ) ―   ↑ 11 km/h      
      `-’      10 km          
     /   \     0.0 mm         
You can get the weather information for a specific location by adding the desired location to the URL in your request like this:
$ curl wttr.in/London
$ curl wttr.in/Moscow
If you omit the location name, you will get the report for your current location based on your IP address.
Use 3-letter airport codes in order to get the weather information at a certain airport:
$ curl wttr.in/muc      # Weather for IATA: muc, Munich International Airport, Germany
$ curl wttr.in/bhv      # Weather for IATA: bhv, Bahawalpur Airport, Pakistan
You can also use IP-addresses (direct) or domain names (prefixed with @) to specify a location:
$ curl wttr.in/@github.com
$ curl wttr.in/@msu.ru
To get detailed information online, you can access the /:help page:
$ curl wttr.in/:help
Source:
Igor Chubin
Share:

Failure to download extra data files after installing "ttf-mscorefonts-installer" on Ubuntu 18.04 LTS

This package "ttf-mscorefonts-installer" is used to download Microsoft's font files (those files are made freely available by Microsoft) from the Internet and install them. Since, you must accept the EULA of Microsoft to use those font files, those fonts cannot be included in the package like other Free (Free as freedom) packages. Annoying messages of "failure to download extra data files from ttf-mscorefonts-installer in update notifier keep popping up after reboot. I have tried a lot of available solutions on Ubuntu forums and the following worked for me.

First of all, try to reinstall the package, and download the data files needed to configure the package.
sudo dpkg-reconfigure ttf-mscorefonts-installer

If it doesn't work, than opt for manual installation of ttf-mscorefonts-installer as below:

Go to Debian's Site and download the latest ttf-mscorefonts-installer_3.7

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb
sudo apt purge ttf-mscorefonts-installer -y
sudo dpkg -i ttf-mscorefonts-installer_3.7_all.deb

Now, you won't see the annoying notifications from update notifier.

HTH.

Credits:
Muaad ElSharif
Share:

Cisco Packet Tracer 7.2.1 Installation on Ubuntu 18.04 LTS Linux

Cisco Packet Tracer v7.2.1 was released in mid 2018, which doesn’t appear to need libicui18n.so.52 unlike CPT v7.1 (The bug was fixed in the latest release and v7.2.1 runs without any issue on Ubuntu 16.04). However, CPT v7.2.1 on Ubuntu 18.04 is unable to locate libpng12. Following solution (QT Libraries, libcu52 and libpng12 installation) fixed it for me:

Install Qt libraries:


sudo apt install libqt5webkit5 libqt5multimediawidgets5 libqt5svg5 libqt5script5 libqt5scripttools5 libqt5sql5


Install libcu52:


wget http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.8_amd64.deb

sudo dpkg -i libicu52_52.1-3ubuntu0.8_amd64.deb

Install libpng12:


wget http://ftp.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u3_amd64.deb

sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb

Now, CPT should start correctly via 'packettracer' command in terminal.


Credits: 

Stack Exchange

Share:

Sitemap

Contact Form

Name

Email *

Message *

Total Pageviews

Search This Blog