├── .gitignore ├── LICENSE ├── README.md ├── hvac-controller ├── .gitignore ├── .secrets.env.example ├── CMakeLists.txt ├── Makefile ├── build.sh ├── config.nims ├── docker │ ├── Dockerfile │ ├── build_docker.sh │ └── config.fish ├── flash.sh ├── hvac_controller.nimble ├── main │ ├── .gitignore │ ├── CMakeLists.txt │ ├── hvac_controller.nim │ ├── hvac_utils.nim │ ├── nim.cfg │ └── server.nim ├── monitor.sh ├── run_docker.sh ├── sdkconfig ├── turn_off.sh └── turn_on.sh ├── sensor ├── .gitignore ├── README.md ├── build.sh ├── include │ └── README ├── lib │ └── README ├── monitor.sh ├── platformio.ini ├── src │ └── main.cpp ├── test │ └── README └── upload.sh ├── server ├── README.md ├── build-release.sh ├── db-sync.sh ├── nim.cfg ├── post-temperature.sh ├── restart.sh ├── src │ ├── thermopi.nim │ └── thermopipkg │ │ ├── datetime.nim │ │ ├── db.nim │ │ ├── routes.nim │ │ ├── tcontrol.nim │ │ ├── tdata.nim │ │ ├── temperature.nim │ │ ├── tutils.nim │ │ └── wiringPi.nim ├── systemd │ ├── clear-gpio-pins.service │ ├── clear-gpio-pins.sh │ ├── systemd-notes.txt │ ├── thermopi.service │ ├── turn-off-heater.sh │ └── turn-on-heater.sh ├── tables.sql ├── temperature-control.txt ├── tests │ └── nim.cfg ├── thermopi.nimble └── thermopi.sh └── web ├── .gitignore ├── README.md ├── auto-refresh.sh ├── build.sh ├── chrome-remote-debugging.sh ├── src ├── chartjs.nim ├── favicon.ico ├── momentjs.nim ├── temperature_units.nim ├── thermopi_web.nim └── url_js.nim ├── static ├── Chart.css ├── Chart.min.js ├── bulma.min.css ├── moment.min.js ├── thermopi.css └── thermopi.html └── thermopi_web.nimble /.gitignore: -------------------------------------------------------------------------------- 1 | nimcache/ 2 | server/thermopi.db* 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/README.md -------------------------------------------------------------------------------- /hvac-controller/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/.gitignore -------------------------------------------------------------------------------- /hvac-controller/.secrets.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/.secrets.env.example -------------------------------------------------------------------------------- /hvac-controller/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/CMakeLists.txt -------------------------------------------------------------------------------- /hvac-controller/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/Makefile -------------------------------------------------------------------------------- /hvac-controller/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/build.sh -------------------------------------------------------------------------------- /hvac-controller/config.nims: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/config.nims -------------------------------------------------------------------------------- /hvac-controller/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/docker/Dockerfile -------------------------------------------------------------------------------- /hvac-controller/docker/build_docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/docker/build_docker.sh -------------------------------------------------------------------------------- /hvac-controller/docker/config.fish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/docker/config.fish -------------------------------------------------------------------------------- /hvac-controller/flash.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | idf.py flash 3 | -------------------------------------------------------------------------------- /hvac-controller/hvac_controller.nimble: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/hvac_controller.nimble -------------------------------------------------------------------------------- /hvac-controller/main/.gitignore: -------------------------------------------------------------------------------- 1 | nimcache 2 | -------------------------------------------------------------------------------- /hvac-controller/main/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/main/CMakeLists.txt -------------------------------------------------------------------------------- /hvac-controller/main/hvac_controller.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/main/hvac_controller.nim -------------------------------------------------------------------------------- /hvac-controller/main/hvac_utils.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/main/hvac_utils.nim -------------------------------------------------------------------------------- /hvac-controller/main/nim.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/main/nim.cfg -------------------------------------------------------------------------------- /hvac-controller/main/server.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/main/server.nim -------------------------------------------------------------------------------- /hvac-controller/monitor.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/monitor.sh -------------------------------------------------------------------------------- /hvac-controller/run_docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/run_docker.sh -------------------------------------------------------------------------------- /hvac-controller/sdkconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/hvac-controller/sdkconfig -------------------------------------------------------------------------------- /hvac-controller/turn_off.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | http post hvac-controller power=off 3 | -------------------------------------------------------------------------------- /hvac-controller/turn_on.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | http post hvac-controller power=on 3 | -------------------------------------------------------------------------------- /sensor/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/.gitignore -------------------------------------------------------------------------------- /sensor/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/README.md -------------------------------------------------------------------------------- /sensor/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pio run --environment nodemcuv2 -------------------------------------------------------------------------------- /sensor/include/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/include/README -------------------------------------------------------------------------------- /sensor/lib/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/lib/README -------------------------------------------------------------------------------- /sensor/monitor.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pio device monitor --environment nodemcuv2 -------------------------------------------------------------------------------- /sensor/platformio.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/platformio.ini -------------------------------------------------------------------------------- /sensor/src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/src/main.cpp -------------------------------------------------------------------------------- /sensor/test/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/sensor/test/README -------------------------------------------------------------------------------- /sensor/upload.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pio run --target upload --environment nodemcuv2 -------------------------------------------------------------------------------- /server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/README.md -------------------------------------------------------------------------------- /server/build-release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/build-release.sh -------------------------------------------------------------------------------- /server/db-sync.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/db-sync.sh -------------------------------------------------------------------------------- /server/nim.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/nim.cfg -------------------------------------------------------------------------------- /server/post-temperature.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/post-temperature.sh -------------------------------------------------------------------------------- /server/restart.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sudo systemctl restart thermopi 3 | -------------------------------------------------------------------------------- /server/src/thermopi.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopi.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/datetime.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/datetime.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/db.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/db.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/routes.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/routes.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/tcontrol.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/tcontrol.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/tdata.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/tdata.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/temperature.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/temperature.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/tutils.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/tutils.nim -------------------------------------------------------------------------------- /server/src/thermopipkg/wiringPi.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/src/thermopipkg/wiringPi.nim -------------------------------------------------------------------------------- /server/systemd/clear-gpio-pins.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/systemd/clear-gpio-pins.service -------------------------------------------------------------------------------- /server/systemd/clear-gpio-pins.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/systemd/clear-gpio-pins.sh -------------------------------------------------------------------------------- /server/systemd/systemd-notes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/systemd/systemd-notes.txt -------------------------------------------------------------------------------- /server/systemd/thermopi.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/systemd/thermopi.service -------------------------------------------------------------------------------- /server/systemd/turn-off-heater.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/systemd/turn-off-heater.sh -------------------------------------------------------------------------------- /server/systemd/turn-on-heater.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/systemd/turn-on-heater.sh -------------------------------------------------------------------------------- /server/tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/tables.sql -------------------------------------------------------------------------------- /server/temperature-control.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/temperature-control.txt -------------------------------------------------------------------------------- /server/tests/nim.cfg: -------------------------------------------------------------------------------- 1 | --path:"../src/" 2 | -------------------------------------------------------------------------------- /server/thermopi.nimble: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/thermopi.nimble -------------------------------------------------------------------------------- /server/thermopi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/server/thermopi.sh -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- 1 | thermopi-debug.html 2 | nim-js-output.txt 3 | 4 | -------------------------------------------------------------------------------- /web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/README.md -------------------------------------------------------------------------------- /web/auto-refresh.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/auto-refresh.sh -------------------------------------------------------------------------------- /web/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/build.sh -------------------------------------------------------------------------------- /web/chrome-remote-debugging.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/chrome-remote-debugging.sh -------------------------------------------------------------------------------- /web/src/chartjs.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/src/chartjs.nim -------------------------------------------------------------------------------- /web/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/src/favicon.ico -------------------------------------------------------------------------------- /web/src/momentjs.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/src/momentjs.nim -------------------------------------------------------------------------------- /web/src/temperature_units.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/src/temperature_units.nim -------------------------------------------------------------------------------- /web/src/thermopi_web.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/src/thermopi_web.nim -------------------------------------------------------------------------------- /web/src/url_js.nim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/src/url_js.nim -------------------------------------------------------------------------------- /web/static/Chart.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/static/Chart.css -------------------------------------------------------------------------------- /web/static/Chart.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/static/Chart.min.js -------------------------------------------------------------------------------- /web/static/bulma.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/static/bulma.min.css -------------------------------------------------------------------------------- /web/static/moment.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/static/moment.min.js -------------------------------------------------------------------------------- /web/static/thermopi.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/static/thermopi.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/static/thermopi.html -------------------------------------------------------------------------------- /web/thermopi_web.nimble: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboisvert/thermopi/HEAD/web/thermopi_web.nimble --------------------------------------------------------------------------------