Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
weather-api-parser-teamjw
Advanced tools
This is helper module to request KMA open API. (ForecastSpace, MIddle Forecast, Middle Forecast Land, Middle Forecast Temperature)
This is designed to help request KMA's open API such as forecast, middle forecast. It just need KMA's open API service key, forecast date, area code which is download KMA's web site.
This is forecast weather per 3 hours by 3 days.
const KmaHelper = require('./index.js');
const options = {
"date": "YYYYMMDD", //only change this field
"time": "0500", //base time (no change needed)
"nx" : "59", //area nx code
"ny" : "126" //area ny code
};
// nx, ny area code can be found on KMA's web site.
const serviceKey = '[Input Forecast KMA Open API Key]';
/**
* params
* serviceKey : serviceKey,
* type : service Type, (0 : forecast request, 1 : middle forecast request)
* success callback
* error callback
*/
KmaHelper.requestWeatherRequest(serviceKey, 0, options, (code, result)=>{
// This function is success callback which you need to customize.
console.log(result);
}, (err,code, msg) => {
// This function is error callback which you need to customize.
console.log(err);
} );
This is forecast middle weather land information, forecast report and middle temperature information.
const KmaHelper = require('./index.js');
const options = {
"landRegId": "11B00000", // landRegId for middle weather land forecast
"tempRegId": "11B20101", // tempRegId for middle weather temperature forecast
"stnId" : "109", //stnId code for weather forecast summary
"time" : "YYYYMMDD0600" //only change this field but time is not needed to change.
};
// landRegId, tempRegId, stnId code can be found on KMA's web site.
const serviceKey = '[Input Middle Forecast KMA Open API Key]';
/**
* params
* serviceKey : serviceKey,
* type : service Type, (0 : forecast request, 1 : middle forecast request)
* success callback
* error callback
*/
KmaHelper.requestWeatherRequest(serviceKey, 1, options, (code, result) =>{
// This function is success callback which you need to customize.
console.log(code, result);
}, (err,code, msg) => {
// This function is error callback which you need to customize.
console.log(err);
} );
FAQs
This is helper module to request KMA open API. (ForecastSpace, MIddle Forecast, Middle Forecast Land, Middle Forecast Temperature)
We found that weather-api-parser-teamjw 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.