![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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 1 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.