Skip to content

Abhi-H/IntelligentMedicineBox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

IntelligentMedicineBox

Software Engineering Course Project (BITS Pilani K. K. Birla Goa Campus) IS F341

This is the server backend code that gathers weight changes from weight sensors on a Raspberry Pi-enabled medicine box, and uses it to sends anomaly notifications to the patient and doctor as per needed through the companion android app.

It also keeps track of the medicines in the box along side the prescription timings.

Dependencies:

Python 3, Firebase Admin library, A Firebase account and authentication key

Instructions for Deployment:

  1. Installing firebase-admin library:
    $ sudo pip install firebase-admin
  2. To run tests: (Will take about 8 minutes to run)
    $ pytest src/test*.py
  3. To start the server:
    $ python3 src/main.py

Usage Instructions:

While running main, when it prompts for input with '>>>', give medicine box number (0 to 5 as per the current prescription), and give the new weight of medicines in that box.

It will calculate the difference in weight, count the number of pills, and compare it with the number of pills in prescripton, send an alert to firebase if needed. The alert will be shown on android app.

About

Software Engineering Course Project (BITS Pilani K. K. Birla Goa Campus) IS F341

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%