A Web Based Sauna Control System written in TypeScript
MIT License
A Web Based Sauna Control System written in TypeScript.
I use this package to control my sauna with my raspberry pi.
There is a solid state relay to switch the heater On
and Off
, as well as a temperature
and humidity
sensor to measure the surroundings.
Pick a target temperature
and switch the sauna On
/ Off
.
Install jsSauna globally:
$ npm i -g jssauna
Use the new command to start an instance:
$ jssauna --rp 14 --sp 4
-p PORT
--port PORT
-t TARGET_TEMPERATURE
--target-temperature TARGET_TEMPERATURE
-m MAX_TEMPERATURE
--max-temperature MAX_TEMPERATURE
--rp RELAY_PIN
--relay-pin RELAY_PIN
--sp SENSOR_PIN
--sensor-pin SENSOR_PIN
--drive-strength DRIVE_STRENGTH
--username USERNAME
--pw PW
As dependency:
$ yarn add jssauna
Play around and contribute to the project:
$ git clone https://github.com/ardean/jsSauna
$ cd jsSauna
$ yarn
$ yarn start
I'm using pm2 on my production system to start jsSauna.
Make sure you install jsSauna with all optional dependencies! Otherwise you will use testdata for the sensors and On / Off requests will be ignored for the relay!
If you have problems installing jsSauna globally as root using sudo npm i -g jssauna
, you can try the option --unsafe-perm
.