27/02/2016 – Tips of Using Web-Based Meteorological Forecast API– 晴天钟API使用备忘

(English version follows Chinese Part)

最近比较忙,又有挺久没更新日志了,趁稍稍有空赶紧写一篇。

Lots of works recently and less update of the log. One post must be done today when I had a break.

我在之前的Lab建设日志里提到过天文板块第一个工程是引用晴天钟的API,所以我研究了一下基本的搭建步骤。

I have mention about the 1st Project of Astronomy Part in my Lab in past lab log, which is a  web-based meteorological forecast. So I did some preview for building the page.

晴天钟的工作原理是通过检索或识别IP的方式,取得一个地理坐标,然后根据坐标点检索美国国家大气海洋局/气候环境预测局(NOAA/NCEP)“全球预测系统”(Global Forecast System, GFS)的天气数据,然后通过生成数据图表的形式,提供天气预报。

How 7Timer!  works? By searching a location or notifying IP add, coordinate is recognized and used to pick up weather data from the NOAA/NCEP-based numeric weather model, the Global Forecast System (GFS). A chart/graph would be generated and post on the web page, which is the meteorological forecast.

根据晴天钟API的介绍,通过提交:

According to the introduction of 7Timer!’s API, these data should be submited

lon, lat – 指定地点的经纬度,必须是浮点数,比如+23.090或-23.090,精确到0.001度即可。
ac – 高度改正,只对天文用途产品有效。可取0(默认)、2或7。
lang – 语言。对气象用途产品无效。
unit – 公制或英制。
output – 可设定为internal(图表输出)、xml或json。
tzshift – 时区微调,可取0、1或-1。

 

lon, lat – Geographic coordinates of the specified site, must be given as pure float numbers, such as +23.090 or -23.090. At this stage, the precision of any incoming coordinate float number is expected to be 0.001. Incoming float with higher precision will be rounded.
ac – Altitude Correction, only applicable in ASTRO forecast. Should be 0 (default), 2 or 7.
lang – Language. Not applicable in METEO product.
unit – Metric or British.
output – should be internal (for graphical output), xml or json.
tzshift – Adjustment of timezone, should be 0, 1 or -1.

的变量调用API,返回一个生成的数据图表,亦即天气预报。

to the API and the report graph will be processed.

如果要在GoYuWei的Lab里实现这一工作,就需要:

If I wish to run a graph forecast in my lab, things must be done:

  1. 申请一个Google或者百度的地理坐标API,编写一个函数,识别访问者的IP并转换成地理坐标,并输入经纬度变量。
  2. 将变量提交至晴天钟的API接口,返回一个或多个天气预报图标。
  3. 显示在一个尽可能美观的网页上。

 

  1. Apply for geography API of Google.com or Baidu.com, write down a function to recognize IP add of visitors and transform into coordinates.
  2. submit  those data to the 7Timer!’s API, then return the graphs.
  3. Build a well look web page with the forecast graphs.

关于晴天钟,请访问http://202.127.24.18/about.php?lang=zh-CN

About 7Timer! Web-Based Meteorological Forecast , visit http://202.127.24.18/about.php?lang=en

 

10/02/2016 – Some ideas about lab – 实验室的一点想法

(English version follows Chinese Part)

实验室板块主要的作用打算是发布一些关于专业和业余爱好方面的想法以及一些可以在web上实现的功能。

‘Laboratory’ block is aiming at posting ideas on professional fields and hobbies. Also, some experiments will be done in lab on special Web functions.

目前的打算是分专业板块,已经想好的板块是机械和天文。

First two fields have been chosen. Mechanical and astronomy.

机械方面有个打算是做一个web版的机械公差与配合查询器(基于国标GB1800~79),这个想法是得到了一个应用程序版机械公差与配合查询器的启发,这个查询器曾经给我的专业课、课程设计还有毕业设计提供了极大帮助,非常实用,所以我考虑在web上实现它。关于公差与配合查询器,你可以在这个链接(华军软件园)找到并下载它。

The idea on mechanical is setting up a web retriever of tolerances and fits. I was inspired by a retriever app (base on national standard GB1800~79) on PC, which support me in my specialized courses, course exercises and graduate design. So I chose to make a web version of it. About the app, you can find and download it on this page (link)

天文方面是最近发现的一个实用工具——晴天钟,一个web气象预告,期初是在星明天文台的官方网站(链接)发现了它,后来根据声明链接找到了晴天钟的官方网站(链接),我打算在我的实验室里利用它的API。

About astronomy, I was attracted by a tool that provides web weather forecast, named 7Timer!. The first time I found it was on official website of  Xingming Observatory (Link) , and I visit 7Timer! official website later. You can visit 7Timer! by this link. I plan to use its API in my lab here.

 

08/02/2016 – Happy Chinese New Year – 猴年快乐!

公历2016年2月7日是农历除夕,第二天就是中国农历新年,丙申猴年。

谨祝新春愉快,猴年大吉!

It is Chinese Lunar New Year ( Spring Festival ) on 8 February, 2016. The Year 2016 is also being called the Monkey Year according to the Chinese Zodiac.

Sincerely with my best wishes, Happy Chinese New Year!


为此我进行了网站的小规模更新,包括主页结构修改,增加“实验室”项目,增加“论坛”项目,“联系”项目合并入“关于”,更多细节应该会专门写一篇建设日志。当然, 还制作了猴年Doodle。

For this special day, I update my website including structure revising. Adding ‘Laboratory’ and ‘Forum’, merging “Contact” into “About”, there would be more information in a expecting site construction log. Particularly,  Chinese Lunar Monkey Year Doodle is posted.

Journal – 23/12/2015 – GoYuwei’s Doodle – GoYuwei的节日LOGO

(English version follows Chinese Part)

20151223-Doodle

Doodle本身的词义是“涂鸦,漫不经心地画画”,后经Google发扬光大,成为一种几年重大或特殊日子时网站特殊LOGO的代名词。

为了让GoYuwei.com更有意思些,也弄个Doodle来玩玩。虽然圣诞节对中国人来说是个舶来品,但在中国也渐渐成为一个有意思、有趣味的日子。那就从圣诞Doodle开始吧,圣诞快乐!

Doodle has the original meaning of “simple drawings that can have concrete representational meaning or may just be abstract shapes”. But Google let it take off, it is now becoming symbols of special days or festivals.

To have fun, I made my own Doodle for Goyuwei.com. As a western exotic, Christmas is not a important day for Chinese people. However, it is more and more popular in China and provides people an excuse to do something. Why don’t I just start with it?

Merry Christmas!

Journal – 18/12/2015 – WordPress Updating – WP升级

(English version follows Chinese Part)

近一个月时间虚拟主机的访问实在慢的不行,一点写文章的情绪都没有,这周好一些,WP也升级到了4.4版本。接下来就继续更新网站内容吧。

The connection to virtual host has been unstable for recent month, so I was in no mood for writing articles. WordPress updated into version 4.4 days ago and server access has been reinstated. Let me start to update my site again.