Giter Site home page Giter Site logo

dde-dock-weather's People

Contributors

sonichy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dde-dock-weather's Issues

Location by Geographic Coordinates

It would be interesting to look for the city by geolocation, not just by its name.
It could have two latitude and longitude fields below the city name field, because api openweathermap accepts geolocation.

API call:
By geographic coordinates

api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}

Parameters:
lat, lon coordinates of the location of your interest
Examples of API calls:
api.openweathermap.org/data/2.5/weather?lat=35&lon=139

API response:
{"coord":{"lon":139,"lat":35},
"sys":{"country":"JP","sunrise":1369769524,"sunset":1369821049},
"weather":[{"id":804,"main":"clouds","description":"overcast clouds","icon":"04n"}],
"main":{"temp":289.5,"humidity":89,"pressure":1013,"temp_min":287.04,"temp_max":292.04},
"wind":{"speed":7.31,"deg":187.002},
"rain":{"3h":0},
"clouds":{"all":92},
"dt":1369824698,
"id":1851632,
"name":"Shuzenji",
"cod":200}

Doesn't work in fashion mode

I'm using Manjaro (arch) linux.
When the dock is in fashion mode the plugin is not visible, however it shows up when in efficient mode.

Fashion Mode:
image

Efficient Mode:
image

It don't work with Deepin OS

(It doesn't** sorry for my engish) I was trying to install it, had some difficulty but I finally could. After doing the command "killall dde-dock" it says something like "The plugin libHTYWeather.so is not compatible with the system." (my Deepin is in Portuguese). What could I do maybe? Or is it a problem with the code?

一些问题

大佬,你写的这个城市显示不对,
错误提示为:城市名返回城市id为空

这个api获得数据好像不是很准

之前安装这个插件的时候,简介用的api也是 https://openweathermap.org
提供的数据。这个网站的实时数据还差不多,但是七天的数据偏差就比较大了,和手机上的天气预报偏差也比较大。建议国内天气直接抓包**气象站的数据比较准确一点。以山东省烟台市为例:
展示地址是:http://www.nmc.cn/publish/forecast/ASD/yantai.html

获取省份的api:http://www.nmc.cn/f/rest/province 返回一个json,可以拿到山东省的code是ASD;
获取城市的api: http://www.nmc.cn/f/rest/province/ASD 返回一个json,可以拿到烟台市的code是54765
通过http://www.nmc.cn/publish/forecast/ASD/yantai.html 可以直接调用浏览器打开页面
通过 http://www.nmc.cn/f/rest/real/54765 返回json可以拿到烟台市的天气,风力和预警警报
通过http://www.nmc.cn/f/rest/tempchart/54765 返回json可以拿到前七天和后七天的最高温度和最低温度,以及天气图片(数字表示)
还一个未来七天精确到每两个小时预报的那个太复杂,就算了,好像也用不到那个

15.11不兼容

墙裂要求添加 版本分支和编译指引 (狗头

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.