This repository is now archived and is no longer maintained. This project has been superseded by https://github.com/ZachJMoore/smart-kiln-hardware
This is the Pi server for the "Smart Kiln" project.
The thermocouple are screwed directly to the amp. Neutral/ground coming back from the kiln elements can then also be screwed into the relay to programatically close the circuit
In the static folder, config needs to be filled in with your login credentials for an account on dashboard.smartkiln.xyz. Refer to config-example for format. Then rename exactly to config.json in the same folder.
Until otherwise decided. My server at smartkiln.xyz can be used for proxying requests and is open for people to use within reason (credits to this project for the proxy software). Everything is setup to run correctly if the above steps were followed.
in the root directory run in terminal the following to start the server
$npm install
$node js/server.js
In order to be able to run the server you will also need to go through the process of installing node and any other dependencies. Or you can run it in a docker container with the following.
$ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
$ usermod -a -G docker
$ docker build -t smart-kiln .
$ docker run -d -p 2222:2222 --restart=always --privileged --name sk-server smart-kiln
At the moment, this will only let you be able to check temperature from the web interface. Currently selecting a schedule and pressing start will only console log the recieved schedule. I have commented out the PID portion as it is not ready yet and needs more work.
The kiln object is now a class and has proper integration for firing a schedule. Very little error handling has been added, but the ability to fire a schedule completely from the web interface is now supported.
Help is very welcome, please feel free to make a pull request!