Code Monkey home page Code Monkey logo

xiao_weather_widget's Introduction

简体中文 | English

flutter_server_box

lang countly license

一款实时显示天气的桌面小部件 Xiao_Weather_Widget for Windows by using Rainmeter.
Especially thanks to Stephi`s SWeather.

Introduction

Xiao_Weather_Widget是作者为了美化桌面开发的一款桌面天气小部件(以下简称小部件)

🔖 Feature

  • 实时显示天气信息
    • 温度湿度风力污染指数预警信息紫外线指数限行信息日出日落
  • 支持中文
    • 支持自定义语言,support for English, French, Spanish, Italian, Portuguese, German, Russian & Serbian
  • 支持自定义字体、字体颜色、字体大小
  • 支持自定义边框颜色
  • 支持自定义背景颜色、透明度、背景图片

🏙️ ScreenShots

⬇️ Installation and Using

下载小部件Releases
本小部件依赖Rainmeter提供支持。
Rainmeter是一款应用并管理小部件(Widgets)和模块(Modules)的免费开源应用,您可以选择去Rainmeter的官网或者其github仓库并根据官方介绍安装。需要注意Rainmeter在安装结束后可能会报错,此时请自行删除开始程序界面和桌面的快捷方式并自行创建快捷方式即可正常使用

I.当您安装了Rainmeter后,可直接双击小部件即可安装。

II.在桌面托盘打开Rainmeter,点击Xiao_Weather_Widget,展开目录,找到settings/settings.ini。您可以在这里设置界面的语言,边框颜色,城市代码等。
III.点击Divers,双击Weather Code(**气象台)和City Code(**天气网)后的代码即可修改,默认为Beijing
IV.请从源码文件夹或安装目录文件夹中找到**气象台和**天气网这两个文件夹,各城市代码已保存为.txt放置于这两个文件夹中。
V.在结束以上步骤后请重启您的电脑并联网,现在您应该看到小部件显示出正常的天气信息了。
Good luck and have a nice day!

如果您会一些编程,您也可以在源码或安装目录中找到Settings/settings.ini, Resources/measures/weather.inc这两个文件并自行修改需要展示的内容和位置等。
Languages文件夹和style.inc分别与语言及部件的位置和样式有关。其中设置界面默认采用英文,展示语言则默认注释了语言,采用Weather API返回的中文,您可以选择需要的语言并取消注释。

🧱 Contribution

本小部件在外观上二改引用了Stephi的SWeather的外观代码,并采用了SWeather所引用的6国Languages

许多天气小组件采用wxdata.weather.com提供的API,然而此API已经被弃用,SWeather同样使用此API,且无中文支持。同时wxdata.weather.com serves for America.本部件采用**气象台和**天气网提供的API,且支持中文,更适合**宝宝的体质。

Weather API

本小部件使用**气象台**天气网提供的API,具有权威性,准确性,实时性,且支持中文。默认每小时自动更新一次,您也可以在settings/settings.ini中修改更新频率。
注1:**气象台和**天气网的API应是长期有效的,但若因为某些原因失效,则除外观代码外其余部分将失效并无返回值。
注2:如若您想要更换API,则可以在settings/settings.ini中修改API的名称,但需要注意的是,您需要自行修改measures/weather.inc中的代码,以适应您所更换的API。
注3:过时数据显示为空
注4:本小部件默认将限行信息注释掉了,如需要可自行开启。

📝 LICENSE

因SWeather采用了Creative Commons Attribution-ShareAlike 4.0 International Public License(CC BY-SA 4.0 License),为尊重Stephi对本小部件的贡献,故本小部件仍采用CC BY-SA 4.0 License,您可以在这里找到该许可证的详细信息。

xiao_weather_widget's People

Contributors

bi1pbuthu avatar

Watchers

 avatar

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.