Sends Reminder emails when Asset Maintenances are due on Snipe-IT
Set to send reminders at 8:00am everyday
- Configurable reminder times.
- functionality to send to non local mail server
- Connects to Snipe-IT instance and retrieves all Maintenances.
- Iterates over the maintenances checks the start date against time now
- Currently hard coded to be >= 30 (days) delta from time now
- If any maintenances meet the above condition's they are added to a result list.
- The results are entered into the MaintenanceMailer with processes them into a table
- An email is then send with this information.
- Snipe-IT
- API Key
- Download the Repo and place it on your docker host.
- Create a new file next to the "docker-compose.yml" called ".env" enter in all the required docker environment variables
docker-compose up --build
- Don't add the
-d
flag so you can see if any errors occur on startup.
If it starts successfully then stop and start the container again in detached mode.
- Don't add the
- SNIPEIT_SERVER {string} # URL of the Snipe-IT Server *Required
- SNIPEIT_SERVER_NAME {string} # Name of the Snipe-IT Server *Required
- SNIPEIT_TOKEN {string} # API Token from Snipe-IT *Required
- MAIL_SERVER {string} # DNS of local exchange server *Required
- MAIL_SERVER_PORT {string} # mail port *Required
- Defaults to 587
- MAIL_SERVER_USE_TLS # connected to the smtp using starttls
- MAIL_SERVER_USERNAME # Credentials
- *Required if using TLS
- Defaults to sender if not specified
- MAIL_SERVER_PASSWORD # Credentials
- *Required if using TLS
- MAIL_SENDER_ADDRESS {string} # what email to send from *Required
- MAIL_RECEIVER_ADDRESS {string} # Who to send the mail to *Required
- TZ = {string} # Timezone
- i.e
Australia/Sydney
- i.e
- LOG_SAVE_LOCATION {string} # Location to save log file
- This can be just a file name i.e "snipeit_maint_emails.log" or the full directory path "/app/storage/snipeit_maint_emails.log"
- DEBUG {bool} # logging level
- Runs the job immediately on launch to make it quicker to resolve errors
If no "save locations" are specified default names will be used and files will be placed in the working dir of the app
Slightly modified version of the dockerfile layed out here