Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

kiran94/PlacementLogger

Repository files navigation

PlacementLogger

Project to help log day to day life on my university placement.

As part of my placement year in industry I am required by my university to produce a report which will be graded. It was adviced to log my daily activities and so I am developing a web application which will aid me in this.

The web application will be mobile friendly meaning that I can write up daily reports whilst on the go. The application will provide functionality to add new logs and then view them all.

Installation:

The application makes use of the LAMP stack

  1. Clone the repo and host the web application on a server.
  2. Use the SQL schema to create a table in a MYSQL database.
  3. Go to /api/connection_info.php and enter MYSQL details on where the table is located.
  4. Host the Python application and use creden.py found in the repo directory to enter your gmail username and password aswell as the URL of where your logs are hosted. youremail = The email you would like be to notified when you have not logged. ENSURE YOU MOVE THIS FILE INTO DailyChecker with the rest of the python files before running.

NOTE: Sometimes gmail will block an application using your gmail account due to security in this case go to: https://www.google.com/settings/security/lesssecureapps

  1. Run the python script using the command: sudo python main.py

Once the script is running it will check everyday to see if you have logged your day yet. If you have not it will email you to let you know you have not yet and then the URL.

The Web application will track your logs on a daily basis and store them in a MYSQL database.

EXAMPLE:

I have it organised so that the web application is hosted on online so I can access it from anywhere and so that the python script is running on a raspberry pi at home which is always running. The script is running on a thread on the pi using the 'screen' program.

Ideally I would want the python script to run on the same server the web application is running on however my web hosting provider does not provide this.

About

Project to help log day to day life on my university placement.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published