当前位置: 首页>>技术问答>>正文


有桌面天气应用吗?

, ,

问题描述

有没有适用于Ubuntu 12.04的天气应用程序?

我尝试了很多,包括screenlets。

似乎没什么用。

最佳解决方法

以下是您可能喜欢的一些变体:

第一种方式:城市镜头


software-recommendation,weather,ubuntu


在终端中安装这个类型(开始

Ctrl
Alt
T

sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update && sudo apt-get install unity-lens-utilities unity-scope-cities

第二种方式:天气指标


安装天气小程序指示器写入终端(启动Ctrl + Alt + T)

sudo apt-get install indicator-weather

或单击此按钮

software-recommendation,weather,ubuntu


第三种方式:我的天气指标


在终端中安装我的天气指示器类型(启动Ctrl + Alt + T):

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install my-weather-indicator

第四种方式:Stormcloud


付费申请(2.99美元),available at developers’ website


对于gnome shell用户


在这里,我们有一个令人惊叹的gnome shell扩展名为Weather或类似的东西。这是截图:


所以要安装这个只需移动到here并点击右边的switch-i就可以打开它,它会询问你是否要安装它。答应我。添加你的城市,你有另一个令人敬畏的天气应用程序为gnome!


替代方式:HTC-style天气时钟


这只是从here读取

次佳解决方法

对于那些不想付钱的人来说,有一个Stormcloud的分支。

Typhoon is a free and open source weather application. It is based on Stormcloud 1.1 ,however without the bells and whistles. It is and always will be free. We have not included features like multiple locations due to no one can live in more than one places in a specific time(except electrons!). If you want to check the weather of any other location, you have to change the location. Also, we have not included ‘chameleonic background’ as it would make the app resource hungry. It is now a couple of mbs but ‘chameleonic background’ would make it around 300 mb.

要安装Typhoon,请通过Ctrl + Alt + t启动终端,然后逐个运行以下命令:

sudo add-apt-repository ppa:apandada1/typhoon
sudo apt-get update
sudo apt-get install typhoon

资料来源:https://launchpad.net/typhoon

主页&安装:http://gettyphoon.tk/

第三种解决方法

这是从命令行运行的one-liner。打开终端(Ctrl + Alt + t)并输入以下命令:

curl -s wttr.in/<your location>

这会根据您指定的位置调用wttr.in网站。默认设置提供当前天气以及三天预测。在我的例子中,我使用以下命令:

curl -s wttr.in/bothell

这导致以下输出:

software-recommendation,weather,ubuntu

一般来说,我不需要整整三天的预测,我也希望显示当前的日期和时间,所以我把它包装在一个小的shell脚本中,名为weather.sh

#!/bin/bash
clear
date
curl -s wttr.in/bothell | head -7

这给了我以下输出到控制台:

Tue Aug 30 23:39:31 PDT 2016
Weather for City: Bothell, United States of America
 \   /     Clear 
  .-.      62 °F          
―(   ) ―   ↖ 8 mph        
  `-’      9 mi           
 /   \     0.0 in 

如果您对back-end代码感兴趣,可以在https://github.com/chubin/wttr.in找到我在commandlinefu上找到原始命令。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/2086.html,未经允许,请勿转载。