Git Product home page Git Product logo

boppe-realweather's Introduction

boppe-realweather

Dependencies

  • qb-weathersync
  • yarn

Installation

  1. Create an account on RapidAPI
  2. Visit the WeatherAPI.com API page
  3. Click the blue subscribe button in the middle of the page
  4. Select the free plan
  5. Copy your X-RapidAPI-Key and paste it in the config.json file
  6. Set the zip code you'd like weather to be based on in the config.json file
  7. In qb-weathersync/config.lua, set Config.Disabled to true

Notice

I have not been able to run through all of the different weather types that the api returns to us. If, and when, you run into a weather type that isn't in the config, the script will default to SUNNY so there are no errors.

To add a new weather type, check your console for the log message stating what the weather type we got from the API was. Then go to config.json and add a new weather type, just like partly cloudy and light rain. ENSURE THE WEATHER TYPE RECEIVED FROM THE API IS TYPED INTO THE CONFIG IN ALL LOWERCASE. Then set that weather type equal to the equivalent given in the qb-weathersync configuration file.

I ask that anyone creates a pull request when they run into new weather types so I can update the repository!

boppe-realweather's People

Contributors

boppescripting avatar

Stargazers

 avatar .DK. avatar Zhoura avatar Ryuukii avatar  avatar  avatar

Watchers

.DK. avatar  avatar

Forkers

6utzeit

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.