Skip to content

Helper program to find available sites on Assateague National Seashore.

Notifications You must be signed in to change notification settings

sheva/assateague-sites-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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. ;)

About

Helper program to find available sites on Assateague National Seashore.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages