jsSauna

A Web Based Sauna Control System written in TypeScript.

Github Version NPM Version NPM Downloads License

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.

jsSauna - Webapp

Pick a target temperature and switch the sauna On / Off.

Quick Start

Install jsSauna globally:

$ npm i -g jssauna

Use the new command to start an instance:

$ jssauna --rp 14 --sp 4

CLI

Installation

As dependency:

$ yarn add jssauna

Play around and contribute to the project:

$ git clone https://github.com/ardean/jsSauna
$ cd jsSauna
$ yarn
$ yarn start

Production

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!

Troubleshooting

If you have problems installing jsSauna globally as root using sudo npm i -g jssauna, you can try the option --unsafe-perm.

TODO

License

MIT