# iot-contact iot-contact is an IoT device to check if doors and windows are closed or open. Furthermore roller shutter motors should be controlled. ## Usage The source code can be retrieved with `git`. ``` git clone https://cgit.xengineering.eu/iot-contact cd iot-contact git submodule update --init ``` To sign the application firmware and thus to build the project a cryptographic signing key is required. It can be generated with `imgtool.py`. ``` mkdir ~/mcuboot ./imgtool.py keygen --key ~/mcuboot/key.pem --type ed25519 ``` The project is built with the Meson build system. ``` meson setup build meson compile -C build meson install -C build --destdir artifacts ``` The resulting artifacts can be listed with `tree`. ``` tree build/artifacts ``` These artifacts are organized as static website. It can be opened with Firefox. ``` find build/artifacts -name 'index.html' -exec firefox {} \; ```