0.0.14 • Published 1 year ago

angular-weather-any-degree v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Angular Weather Any Degree

alt text

Demo

Angular Weather any degree package for web applications . Easy and Highly customisable.

Getting Started

Installation

  • The angular Weather for any degree package is published on the npm Registry.
  • Install the package : npm install angular-weather-any-degree --save

  • Once installed import AngularWeatherAnyDegreeModule from the installed package into your module as follows:

Usage

Import AngularWeatherAnyDegreeModule into NgModule in app.module.ts. Angular's HttpClientModule and CommonModule is also required.

import { AngularWeatherAnyDegreeModule } from 'angular-weather-any-degree';

@NgModule({
  // ...
  imports: [
    AngularWeatherAnyDegreeModule,
    HttpClientModule,
    CommonModule
  ]
  // ...
})
  • We are using "openweathermap" api to get weather details so SIGNUP and genereate api key for your project.

Add the following component tag in you template (no properties)

 <mal-angular-weather-any-degree class="weather" [Units]="'metric'" [unitSymbol]="'C'"
    [APIKEY]="'your api key'">
  </mal-angular-weather-any-degree>

Full properties

 <mal-angular-weather-any-degree class="weather" [Units]="'metric'" [unitSymbol]="'C'"
    [APIKEY]="'your api key'" [width]="'380px'" [height]="'355px'" [isBoxShadow]="false"
    [borderRadius]="'0px'" [backgroundColor]="'transparent'" [locationFontSize]="'35px'" [locationFontColor]="'#20a8d8'"
    [status]="true" [statusFontColor]="'#20a8d8'" [statusFontSize]="'18px'" [temperature]="true"
    [tempratureFontColor]="'#20a8d8'" [tempratureFontSize]="'65px'" [weatherImages]="true" [weatherImageWidth]="'110px'"
    [weatherImageHeight]="'110px'" [geoLocation]="true" [location]="''" [isWind]="true" [windFontColor]="'#20a8d8'"
    [windFontSize]="'17px'" [humidityFontColor]="'#20a8d8'" [humidityFontSize]="'17px'">
  </mal-angular-weather-any-degree>

Properties

The following list of properties are supported by the component.

PropertyTypeDescriptionDefault Value
Unitsstringmetric(Celcious), Kalvin,Imperial(Farenhite)
UnitSymbolstringK-->Kalvin, F-->Farenhite, C-->Cilcious
APIKEYStringAPI key from APIUXAPIKEY
widthStringWidth of the weather card280px
heightStringHeight of the weather cardauto
backgroundColorStringBackground color of the weather card#2a2828
isBoxShadowBooleanBox shadow of the weather cardtrue
borderRadiusStringBorder-radius of the weather card5px
locationFontSizeStringFont size of the location text40px
locationFontColorStringColor of the location text#fff
statusBooleanCurrent weather statustrue
statusFontSizeStringFont size of the location text18px
statusFontColorStringColor of the status text#fff
temperatureBooleanTemperature of the locationtrue
tempratureFontSizeStringFont size of the temperature text80px
tempratureFontColorStringColor of the temperature text#fff
weatherImagesBooleanWeather icontrue
weatherImageWidthStringWeather icon width100px
weatherImageHeightStringWeather icon height100px
geoLocationBooleanAccess/Show weather of the user's locationtrue
locationStringShow one specific location's weather''
isWindBooleanWind of the locationtrue
windFontSizeStringFont size of the wind text20px
windFontColorStringColor of the wind text#fff
humidityFontColorStringFont size of the humidity text20px
humidityFontSizeStringColor of the humidity text#fff

This project was generated with Angular CLI version 15.1.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Run locally

  • Clone the repository or downlod the .zip,.tar files.
  • Run npm install
  • Run ng serve for a dev server
  • Navigate to http://localhost:4200/

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

License

MIT License.

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago