Sign inSign up

super169/hkweather

By super169

•Updated almost 7 years ago

Reusable HK Weather Information extracted from HK Observatory

Image
0

4.2K

super169/hkweather repository overview

⁠HKWeather

A Node.js project to extract data from HK Observatory web site, and convert into simple data format for using in MCU local weather station.

Navigate to "http://{hostname}:{port}/h" for available options

GitHub Source: https://github.com/Super169/HKWeather⁠

Docker Image: https://cloud.docker.com/repository/docker/super169/hkweather⁠

​ Port used: 8080

VersionDesscription
1.0First release with WiFi Clock application
1.1Fix the problem in HKO data source⁠ which may have missing data.
Use the icon from Android 7 days forecast⁠ if available.
2.0Include Chinese forecasting message, and change the delimitator from "|" to "||" to avoid Chinese characters.
2.1Add epoch time in result
2.2HKO has made some change which will return https in request.href even called with http. So, it has to ignore http or https in checking url.
2.3Update libraries to latest version, and setup automated build from GitHub to Docker Hub.

As automated build may cause error with previous source, source code in GitHub starts from version 2.3.

Known issue:

HKO may have different teams working on the weather prediction, and the information has not synchronized, so there has different prediction from HKO, So, the data returned from this service may not match the one you are using even both of them may comes from HKO.

Due to the problem in http://pda.weather.gov.hk/locspc/android_data/7days_gs_c.xml⁠, it can return the information of day 0 - 6, or day 1 - 7, which will cause missing data in first or last date, and the system will use the data from http://maps.weather.gov.hk/ocf/text_e.html⁠. Looking for a better source which can cover all required information.

Tag summary

Content type

Image

Digest

Size

54.1 MB

Last updated

almost 7 years ago

docker pull super169/hkweather