Qt托盘天气正式发布!
Tofloor
poster avatar
海天鹰
deepin
2016-11-17 00:50
Author

上次放出的版本不带自动更新,这次加入自动更新后正式发布。
依赖:>=Qt5.0
源码与下载:https://github.com/sonichy/weatherTray
由于深度桌面环境不支持托盘提示,实时天气提示文字显示不出,只能在窗口的第一排查看了。
诚邀小伙伴测试兼容性,特别是非深度系统环境。

Reply Favorite View the author
All Replies
avatar
电脑迷
deepin
2016-11-17 00:55
#1
The user is banned, and the content is hidden.
avatar
lingfengabc
deepin
2016-11-17 01:59
#2
支持楼主
Reply View the author
avatar
adslagri
deepin
2016-11-17 02:23
#3
网页上全是英文,不知道如何下载和使用?
Reply View the author
avatar
8***4@qq.com
deepin
2016-11-17 04:16
#4
楼主太6   想请问一下楼主怎么学习开发qt5  当初按照一些中文教程学习  感觉很繁琐?
Reply View the author
avatar
132******85
deepin
2016-11-17 17:52
#5
本帖最后由 onhao 于 2016-11-17 10:02 编辑

建议,鼠标以上去后,可以显示当天天气,或者直接在任务栏上显示,天气 温度[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/host/HY/Linux/Qt/weatherTray/weatherTray
Icon=/host/HY/Linux/Qt/weatherTray/icon.ico
Path=/host/HY/Linux/Qt/weatherTray/
Categories=Application;
Name[zh_CN]=托盘天气

weatherTray.desktop这个文件不具有通用性,运行程序,需要在终端执行 weatherTray(加可执行权限)

调试信息出来啦
  1. getWeather() QDateTime(2016-11-17 09:45:40.570 CST Qt::TimeSpec(LocalTime))
  2. "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json -> " "{\"ret\":1,\"start\":-1,\"end\":-1,\"country\":\"\\u4e2d\\u56fd\",\"province\":\"\\u5e7f\\u4e1c\",\"city\":\"\\u6df1\\u5733\",\"district\":\"\",\"isp\":\"\",\"type\":\"\",\"desc\":\"\"}"
  3. "http://hao.weidunewtab.com/tianqi/city.php?city=深圳 => " "101280601"
  4. "http://hao.weidunewtab.com/myapp/weather/data/indexInTime.php?cityID=101280601"
  5. "{\"weatherinfo\":{\"city\":\"\\u6df1\\u5733\",\"cityid\":\"101280601\",\"temp\":\"22\",\"SD\":\"92%\",\"WD\":\"\\u5317\\u98ce\",\"WS\":\"1\\u7ea7\",\"QY\":\"1001\",\"JS\":\"1%\",\"pm25\":\"48\",\"idx\":\"67\",\"lv_hint\":\"\\u826f\",\"aqiLevel\":2}}"
  6. "城市:深圳\n温度:22°C\n湿度:92%\n风力:北风1级\nPM2.5:48\n空气质量指数:2\n刷新:09:45:40"
  7. "http://hao.weidunewtab.com/myapp/weather/data/index.php?cityID=101280601"
Copy the Code
然后是 界面了



测试环境 :ubuntu 16.10 amd64
Reply View the author
avatar
leodemon
deepin
2016-11-17 18:06
#6
点赞。。。
Reply View the author
avatar
ylsc633
deepin
2016-11-17 18:13
#7
好东西!    顶一下!  

虽然我并不会装这个...
Reply View the author
avatar
海天鹰
deepin
2016-11-17 18:15
#8
https://bbs.deepin.org/post/132164
建议,鼠标以上去后,可以显示当天天气,或者直接在任务栏上显示,天气 温度[Desktop Entry]
Encoding=UTF- ...

desktop 文件需要修改路径。
鼠标放在任务栏图标上不动看看,已经写了当天天气,看系统支持不。
还有,这样的图表示天气API挂了。
感谢来自 ubuntu 的同学。
Reply View the author
avatar
海天鹰
deepin
2016-11-17 18:18
#9
https://bbs.deepin.org/post/132164
网页上全是英文,不知道如何下载和使用?

点击绿色的【Clone or download】,然后点击【Download ZIP】。
好好学习,天天向上,补习英文。
Reply View the author
avatar
132******85
deepin
2016-11-17 18:37
#10
https://bbs.deepin.org/post/132164
desktop 文件需要修改路径。
鼠标放在任务栏图标上不动看看,已经写了当天天气,看系统支持不。
还有,这 ...

鼠标放在任务栏图标上不动看看,已经写了当天天气,看系统支持不。----无效果,看来兼容性还有待提高啊。
Reply View the author
avatar
tudoubocai
deepin
2017-04-10 07:15
#11
已经安装,如果7天预报可以一直贴在左面上就好了。最好是开机启动。
也许可以,但我不会搞。
玩linux很多年了。但一直是菜鸟。

一直处于使用阶段。
Reply View the author
avatar
joyk3000
deepin
2017-04-10 09:49
#12
支持一下
Reply View the author
avatar
蒙笛
deepin
2017-04-10 16:26
#13
支持,不过15.4不是设置中心就有天气了么?
Reply View the author
avatar
py2659334
deepin
2017-04-12 22:27
#14
等会的人去安装,不知道怎么安装的路过!
Reply View the author
avatar
海天鹰
deepin
2017-04-15 23:29
#15
https://bbs.deepin.org/post/132164
等会的人去安装,不知道怎么安装的路过!

直接运行,无需安装。
Reply View the author
avatar
山西姚一
deepin
2017-04-16 08:51
#16
支持一个!
Reply View the author
avatar
海天鹰
deepin
2017-04-18 19:18
#17
https://bbs.deepin.org/post/132164
一个小建议:弹出窗口里面的“空气质量指数”显示会越界(大概是字体问题吧,深度默认是思源黑),个人建议 ...

这个简单,系统字体调小。
Reply View the author
avatar
海天鹰
deepin
2017-04-20 17:52
#18
https://bbs.deepin.org/post/132164
系统字体调小了其它一些界面会看不清字。

那么,我要写死字体大小了。
Reply View the author