Giter Site home page Giter Site logo

danamitegs / weather-watering Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 247 KB

An app that reminds you to water your plants based on weather data

Ruby 54.81% JavaScript 10.48% CSS 2.36% HTML 29.28% Batchfile 3.07%
ruby ruby-on-rails plant-watering

weather-watering's Introduction

Weather Watering

An app reminds you when to water your plants based on the weather in your area, daily water loss and the amount of water your plant requires to stay healthy.

Install

Clone the repository

$ git clone https://github.com/DanaGS/Weather-Watering

Check your Ruby version

$ ruby -v

This project uses Ruby version 3.1.0 and Rails version 7.0.2.2. If you you are using an older version, you can see instructions on how to install the latest release on: https://www.ruby-lang.org/en/downloads/.

Install dependencies

$ bundle install

Set environment variables

This project uses Figaro to store environment variables: https://github.com/laserlemon/figaro. You will need to replace database name and credentials.

This app uses external apis to obtain geolocation and weather data. You will need to sign up and obtain an api key for each:

https://openweathermap.org/

https://www.geoapify.com/

Initialize the database

$ rails db:create db:migrate db:seed

Serve

$ rails s

Run on localhost port:3000

Run Sidekiq and background tasks

The app uses Sidekiq with Redis server to run background jobs. These jobs include making scheduled calls to OpenWeatherMap API to update weather data, calculate daily evapotranspiration, update plants soil water deficit, and send email reminders.

To run Redis:

$ redis-server

To run Sidekiq:

$ sidekiq

weather-watering's People

Contributors

danamitegs avatar

Stargazers

 avatar

Watchers

 avatar

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.