Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
weather-au-api
Advanced tools
NodeJS API library for accessing api.weather.bom.gov.au
This API is inspired by tonyallan/weather-au.
As the API is reversed engineered from the usage in https://weather.bom.gov.au with no information about future access arrangements or availability, use this module as your own risks.
Through npm
:
npm install weather-au-api
Through yarn
:
yarn install weather-au-api
let Api = require('weather-au-api');
let api = new Api();
# Set your current location
api.search('3053');
# Retrieve the daily forecasts for the next 7 days
let resp = await api.forecasts_daily();
console.log(resp)
When initialising a new Api
object, a geohash
can be optionally provided.
This will bypass the need to use the search()
function to set location.
# Set the location to Carlton, VIC
api = new Api('r1r0fyd');
Search by post code or location string and set the geohash
location to first location returned through the API.
When searching using location string, join the terms with +
.
Return a JSON list of locations found.
carlton = await api.search('3053');
console.log(carlton.data);
carlton2 = await api.search('Carlton+VIC');
console.log(carlton2);
Get bom.gov.au daily forecasts for the next 7-8 days.
A geohash
must be set when initialising or through running api.search()
.
Return a JSON list of daily forecasts.
forecasts = await api.forecasts_daily();
console.log(forecasts);
Get bom.gov.au current warnings. Might be empty if there is no warnings for current location.
A geohash
must be previously set.
Return a JSON list of warnings.
warnings = await api.warnings();
console.log(warnings);
Get the warning with warning_id
. Get warning_id
from api.warnings()
.
Return a JSON object.
warning = await api.warning('VIC_RC022_IDV36310');
console.log(warning);
Get the observations reading for the current location. Return a JSON object.
observations = await api.observations();
console.log(observations);
Get the last response timestamp.
timestamp = api.response_timestamp()
FAQs
NodeJS library for accessing api.weather.bom.gov.au
The npm package weather-au-api receives a total of 6 weekly downloads. As such, weather-au-api popularity was classified as not popular.
We found that weather-au-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.