Skip to content

RuuviTag Medication Reminder - For liquid Keppra Epilepsy Medication

License

Notifications You must be signed in to change notification settings

Farmer-Eds-Shed/Smart-Medicine-Bottle

Repository files navigation

Smart-Medicine-Bottle

RuuviTag Medication Reminder - For liquid Keppra Epilepsy Medication.
The project may be easily modified for any medication, but the 3d prints were made for this particular bottle size.

Disclaimer: This project depends on opensource software and hardware that is at best hobbiest grade and should not be considered medical grade.

Features:

  • A Node-Red flow for Home Assistant
    • sends a notification via NTFY if medication has not been given by a certain time.
    • Uses a RuuviTag BLE sensor to sense if bottle has been tipped over to load syringe.
    • 3D printed eclosure to attach BLE tag to bottom of Keppra bottle.

3D printing

3D model was generated using the free version of SketchUp
The current STL model file is a fraction too small and needs to be printed at 102% to fit Keppra Bottle snugly.

Bottle Sensor Bottle RuuviTag

Node-Red

The Node-Red flow has 2 parts:

  • The first listens for changes in the z axis accelerometer from a RuuviTag.
    • values around +1 mean the bottle is the right way up.
    • values around -1 mean the bottle has been tipped over for loading a syringe.
    • If the bottle has been tipped over the Home Assistant 'Keppra Given' Sensor changes to True.
    • The sensor automatically resets at noon and midnight.
  • The second part checks the Home Assistant 'Keppra Given' Sensor at set times in the morning and evening
    • If the sensor is false then a notification is sent to Phones subscribed to the NTFY topic.

Node-Red

Ruvitag

This project uses the Z axis accelerometor of a RuuviTag to determine orintation.
Accelerometers are not available with the RuuviTag Home Assistant integration so another gateway device is needed.
Ruuvi-Go-Gateway emulates the offical Ruuvi Gateway and is also available as a Home Assistant Addon here:

NTFY

This project depends on self hosted NTFY instance for notifications. But can easily be replaced with any other notification service.
A Home Assitant Addon is available here:

About

RuuviTag Medication Reminder - For liquid Keppra Epilepsy Medication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published