Giter VIP home page Giter VIP logo

spfxweather's Introduction

SharePoint Framework Weather WebPart

SharePoint Framework Helper

Hi Friends,

I have come up with a weather webpart, to let you know about the weather outside even when you are working inside. Weather webpart is the most common webpart many of the user love to have them on their site.

So, I have created a weather webpart which fetches its data from yahoo and displays in a very beautiful format.

SharePoint Framework Weather Webpart

WebPart Features!!

Weather webpart displays the following information

  • High Temperature
  • Low Temperature
  • Wind speed
  • Humidity
  • Sunrise
  • Sunset
  • Condition Image
  • Forecast for upto 10 days
  • Day and date display for easy readability

You can configure the webpart with just few clicks

  • Enter any City name and see the results right away
  • Option to select between the Celsius and Fahrenheit
  • Select how many days to be displayed in the forecast. Easy to use slider to select the days
  • Show the information when the information was last updated
  • Option to display only the header with the temperature information - compact and informative.

Webpart Settings

Deployment

For deployment follow the below steps

  • Clone the repository
  • Open the code in Visual Code or in any other IDE
  • Change the 'cdnBasePath' url inside the Config/write-manifest.json
  • Create the package
    • Run the following commands
    gulp
    gulp bundle --ship
    gulp package-solution --ship
    • Now upload the weather.sppkg file from sharepoint/solution folder
    • Upload the files inside temp/deploy to the cdnBasePath url
  • Now add the webpart to the page

Since I am using the Yahoo API which has restricted to the number of hits per day, so by default new data will be processed after 30 minutes (does not auto refresh but, gets data if the last updated is more that 30 min and page is refreshed manually). If you are having more than that please get the yahoo key and need to make changes in the query.

Do comment here on how you feel about the webpart and if there is anymore functionality that is missed and you would like to have.

Happy Coding

Sumit Kanchan

spfxweather's People

Contributors

sumitkanchan4 avatar

Watchers

James Cloos avatar

Forkers

kbworks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.