Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-weather-forecast
Advanced tools
Readme
Collection of react components used to display weather at any location.
// Set up global configuration for weather components
<WeatherGlobal
apiKey={state.setApiKey}
by="day"
from={new Date()}
to={threeDaysLater}
loadingHandler={() => <div>Loading...</div>}
errorHandler={() => <div>Error!</div>}
storage={localStorage}
dateHandler={date => <span>{date.toLocaleDateString() + " " + date.toLocaleTimeString()}</span>}
units="metric"
lang="cz"
>
{/* List how much it rains in Prague */}
{<WeatherList kind="names" names={["Prague"]} type="rain" />}
{/* List what kind of weather is in Prague */}
{<WeatherConditions kind="geo" lat={50.073658} lon={14.418540} list />}
{/* List only cloudy types of weather */}
{<WeatherConditions kind="geo" lat={50.073658} lon={14.418540} type="Clouds" />}
{/* List temperature in Prague */}
{<WeatherGraph kind="ids" ids={[3067696]} type="clouds" label="Temperature" />}
{/* List temperature with custom extended component */}
{<ExtendedTemperatureInfo label="Temp" />}
{/* List weather phenomena with custom extended component */}
{<ExtendedWeatherInfo label="Weather list" />}
</WeatherGlobal>
export interface ExtendedTemperatureProps extends InfoQueryEnhancerProps {
label: string;
}
const ExtendedTemperature: FunctionComponent<ExtendedTemperatureProps> = props => (
<div>
<h3>
{props.label}
</h3>
<ul>
{props.data.map(result => <li>{result.value}</li>)}
</ul>
</div>
);
export default weatherEnhancer(ExtendedTemperature, {
kind: 'names',
names: ['Prague', 'cz'],
type: 'temp_max',
});
For non-react use refer to package https://www.npmjs.com/package/forecast-query
If you have any ideas or have discovered any bugs, please report them, I will take a look as soon as possible.
FAQs
Library of react components used for weather forecast from openweather api. Can be used with both pro and free accounts.
The npm package react-weather-forecast receives a total of 1 weekly downloads. As such, react-weather-forecast popularity was classified as not popular.
We found that react-weather-forecast 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.