Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Craig Mulligan
Published © Apache-2.0

Occupied

A toilet queueing app for serious poopers. Uses resin.io, firebase and twilio to notify people when the toilet is open - runs on the RPI.

Full instructions provided8,944
Occupied

Things used in this project

Hardware components

raspberry pi b+
×1
Magnetic reed switch
×1
Ethernet cable or wifi dongle.
×1

Software apps and online services

balenaCloud
balenaCloud

Story

Read more

Code

config.py

Python
You can then access your resin environment variables like so. 
import os

# CONFIG
fbRef = os.getenv('FIREBASE')
twilio_acc_id = os.getenv('TWILIO_ACC_ID')
twilio_acc_auth_token = os.getenv('TWILIO_ACC_AUTH_TOKEN')
twilio_number = os.getenv('TWILIO_NUMBER')

file_13272.txt

Plain text
You can find your app's repository url on the apps page in the top right corner.
$ git remote add resin git@git.resin.io:USERNAME/YOUR-APP.git

file_13276.txt

Plain text
git push resin master

Credits

Craig Mulligan

Craig Mulligan

8 projects • 24 followers

Comments