Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathanielng/nea-pythonista
Access NEA (National Environment Agency of Singapore) from the iOS Pythonista app
https://github.com/nathanielng/nea-pythonista
ios python pythonista-ios weather
Last synced: 10 days ago
JSON representation
Access NEA (National Environment Agency of Singapore) from the iOS Pythonista app
- Host: GitHub
- URL: https://github.com/nathanielng/nea-pythonista
- Owner: nathanielng
- License: mit
- Created: 2019-06-12T11:16:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-02T15:15:06.000Z (10 months ago)
- Last Synced: 2024-11-08T13:12:23.997Z (2 months ago)
- Topics: ios, python, pythonista-ios, weather
- Language: Python
- Homepage: https://nathanielng.github.io/nea-pythonista
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nea-pythonista
This is a library for access to weather information from the NEA (National Environment Agency of Singapore).
While it will work as a standalone library, the intention of this library is primarily aimed towards
use in the [Pythonista](http://www.omz-software.com/pythonista/) iOS app.## NEA API
The raw data returned from the NEA API can be viewed as follows:
```bash
curl -s https://api.data.gov.sg/v1/environment/2-hour-weather-forecast | jq "."
curl -s https://api.data.gov.sg/v1/environment/24-hour-weather-forecast | jq "."
curl -s https://api.data.gov.sg/v1/environment/4-day-weather-forecast | jq "."
curl -s https://api.data.gov.sg/v1/environment/air-temperature | jq "."
curl -s https://api.data.gov.sg/v1/environment/psi | jq "."
curl -s https://api.data.gov.sg/v1/environment/pm25 | jq "."
curl -s https://api.data.gov.sg/v1/environment/uv-index | jq "."
```