Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aldotestino/arduino-temp-hu-system

Simple system to control temperature and humidty
https://github.com/aldotestino/arduino-temp-hu-system

Last synced: about 2 months ago
JSON representation

Simple system to control temperature and humidty

Awesome Lists containing this project

README

        

# arduino-temp-hu-system by aldotestino
## Simple system to control temperature and humidty

### Version: 4.0.0
## Setting up
* Run `TempAndHu.ino` from the `/server` folder on your Arduino.
* In `/server/src/index.ts` file change the `comPort` to match the one of your system.
* Create `/server/src/db/connectionString.ts` file, it will be used to connect to your mongodb database

```typescript
export default 'your connection string';
```

* Open your terminal and run the `run` script

```sh
chmod +x ./run.sh
./run.sh
```

This script will install `pm2` globally on your system, install and build both client and server and then it will start the project and save the pm2 configuration so you don't have to manually start the project.
* To run the project with `pm2` simply run

```sh
pm2 start ecosystem.config.js
```