New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

restomax-weather

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restomax-weather

This library use wunderground api to get weather. U must to have an API Key to access on this API.

  • 1.6.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

REQUIRENT

This library use wunderground api to get weather. U must to have an API Key to access on this API.

Sign Up to www.wunderground.com and get the API Key to https://www.wunderground.com/api in "Key Settings" Tab.

INSTALL

Run npm i --save restomax-weather

USE RESTOMAX-WEATHER

Import Module to your project

import { RMXWeatherModule } from 'restomax-weather';

@NgModule({
  imports: [
    ...
    RMXWeatherModule,
    ...
  ],
  ...
})
export class AppModule {}

Use Module

import { OnInit } from '@angular/core';
import { RMXWeatherProvider } from 'restomax-weather';

@Component({
    selector:         'app-component',
    templateUrl:      'app-component.html',
    styleUrls:        ['app-component.scss']
})
export class AppComponent implements OnInit  {
    constructor(
        ...
        private pWeather:       RMXWeatherProvider,
        ...
    )

    ngOnInit() {
        this.pWeather.intialize({'yourWeatherApiKey', State: 'Your State', City: 'Your City'});
        this.pWeather.weatherSubject.subscribe(
            weather => {
                // ... weather;
            },
            error   => console.warn(error)
        );
        this.pWeather.predictSubject.subscribe(
            predict => {
                // ... predict;
            },
            error   => console.warn(JSON.stringify(error))
        );
    }
}

FAQs

Package last updated on 29 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc