Skip to content

Queries the weather api and sends push notification only if it is going to rain

Notifications You must be signed in to change notification settings

deshpandeamrut/notify-if-rains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify If It Rains

Application that alerts with push notifications to sunscribed users about rain forecast for the day.

Motivation

Drenched myslef on the way back to home and was waiting for rain to stop, which made me to think of this app, although it could have been achieved with IFTT, considering issues with IFTT had to implement this.

Tech/framework used

-Spring Boot
-APIs from Accuweather and DarkSky
-OneSignal for Push Notifications

Built with

Features

-Sends out the alert in the morning if the forecast is positive for rain
-Light weight as no installation as such

Installation

-Clone the repo
-Run the app locally with mvn spring-boot:run

API Reference

https://accuweather.com
https://darksky.net/

##Deployment Currently deployed in Heroku at http://notify-if-rains.herokuapp.com/ Following are the services supported

  1. GET /weather/forecast/accu
  2. GET /weather/forecast/darksky
  3. GET /weather/predict

How to use?

Visit
http://nammabagalkot.in/rainalerts
and subscribe to push notifictaions, you will start getting alerts everyday. Note: Currently Bangalore,IN is set as default location in application.properties file.

About

Queries the weather api and sends push notification only if it is going to rain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages