This repository contains code for the Build your IoT skills by developing a door monitoring system tutorial published on IBM Developer blog. It is highly recommended to read the tutorial first before using this project.
Install the requirements using pip,
$ pip install -r requirements.txt
gateway_client.py
: Contains code for the gateway client.udp_listener.py
: The code for receiving and parsing SensorUDP data sent by the Android device over sockets.main.py
: The script that is supposed to run on raspberry pi as per the tutorial. It usesgateway_client
andudp_listener
internally.gateway_config.yml
: This configuration file needs to created by you. Please refer to the tutorial to understand what it should contain.
application.py
: Contains code for the application. The config for this can be provided by creating a file calledapp_config.yml
in the same directory. Please refer to the tutorial to understand what this file should contain.