https://github.com/sanpii/vmc
iot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sanpii/vmc
- Owner: sanpii
- License: mit
- Created: 2016-04-25T16:07:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T08:22:47.000Z (almost 9 years ago)
- Last Synced: 2025-03-02T21:44:35.617Z (over 1 year ago)
- Topics: iot
- Language: Shell
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automated VMC
This is a part of [Uncontrolled Mechanical
Ventilation](https://hackaday.io/project/12708-uncontrolled-mechanical-ventilation)
project.
## Hardware
* 1 raspberry pi 3 (or v2 with a wifi doggle) ;
* 1 relay module with 2 relais.

## Software
On a [minibian](https://minibianpi.wordpress.com/).
### Wifi configuration
See the [how to](https://minibianpi.wordpress.com/how-to/wifi/).
### Requirements
```
# apt install jq bc mosquitto-clients
```
### Configuration
Create a new `~/.config/vmc` file:
```
readonly MAX_HUMIDITY=90
readonly MIN_TEMPERATURE=3
readonly MAX_TEMPERATURE=30
readonly WINTER=1
readonly MQTT_HOST='192.168.1.1'
readonly GPIO_INT1=23
readonly GPIO_INT2=24
```
### Execution
Create a new unit for systemd in `/etc/systemd/system/vmc.service`:
```
[Unit]
Description=VMC
After=network.target
[Service]
ExecStart=/root/vmc/src/vmc
Restart=on-failure
```
Enable it:
```
# systemctl enable vmc.service
```
And launch it:
```
# systemctl start vmc.service
```