Giter Club home page Giter Club logo

assateague-sites-finder's Introduction

Assateague Sites Finder

Helper code to find available sites on Assateague National Seashore. If you google this project then you are familiar with difficulty to find available camping spot at the summer. You should refer to Assateague Island National Seashore campground, MD quite often to find out free site. So I automated this process. I trace available sites by desired criteria. If free spot found, email with sites availability info is sent to specified recipients.

Setting search criteria

Search parameters are set in app.properties file.

  1. Campground groups are represented in campgroup.names property, seprated by semicolon and could be Bayside Loop A; Bayside Loop B; Bayside Loop C; Equestrian Non-Electric; Oceanside Group Sites; Oceanside Loop 1; Oceanside Loop 2; Oceanside Walk In 42-44, 51-82; Oceanside Walk In 83-104; Oceanside Walk-In 45-50.
campgroup.names=Oceanside Group Sites; Oceanside Loop 1; Oceanside Loop 2
  1. Desired days of week to stay stored in days.of.week property, separated by semicolon.
days.of.week=FRIDAY;SATURDAY;SUNDAY
  1. Min length of stay (in days)
min.length.of.stay=2
  1. Start of period to search in (format MM/dd/yyyy)
start.date=02/02/2019
  1. End of period to search in (format MM/dd/yyyy)
stop.date=03/01/2019
  1. Determine whether to send notification by email or not when available sites have been found
mail.send=true
  1. Send email even if no available sites found
mail.send.if.not.found=false

Mail configuration

If you want to send email notifications (I am sure you want :) ) you should create user.secret file in resource directory. Please, set authentication credentials mail.from.user and mail.from.password. Also, please, mention recipients email addresses in mail.to property, separated by semicolon. If you do not specify mail.to property then recipient will be mail.from.user.

mail.from.user=
mail.from.password=
mail.to=

Additionally you can set javax.mail configuration properties right in that user.secret file. Otherwise default mail configuration properties would be taken as Gmail SMTP. So, please, be aware when setting authentication user+password properties. See mail_default.properties.

How to run

After successfully configuring app.properties and creating user.secret, you can now run assateague-sites-finder.

  • Run using maven:
$ mvn compile exec:java

And email with results will looks like:

email body

That's it. I hope you will find this app quite useful for planning vacation at Assateague Seashore, MD. ;)

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.