Set up the circuit as shown above in the diagram.
Insert the roller switches inside cardboard tubes so that the medication bottle presses the switch down. The bottle should press directly down onto the roller switches, so make the tube just large enough for the bottle. The roller switches should be in "open" mode so that when the bottle is lifted off the switch, the on signal is passed to the timeout Bits.
Set the timeouts so that there's enough time to take both medications and both will be on at the same time. Try using LED bits after the timeouts and after the double AND bit to get this right.
Set up the cloudBit to connect to your wifi network.
Create a filter in your Gmail account so that any emails sent to [email protected]
are marked as read, archived, and given the label "log."
Have IFTTT send an email to [email protected]
when the signal into the cloudBit turns on. Give the subject line something relevant like "[HEALTH] Medication taken today"
If you search your Gmail account for messages with the "log" label, you'll see all log entries.