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

https://github.com/bschwind/automation-server

An HTTP API server for controlling my air conditioner and ceiling light.
https://github.com/bschwind/automation-server

Last synced: 11 months ago
JSON representation

An HTTP API server for controlling my air conditioner and ceiling light.

Awesome Lists containing this project

README

          

Automation Server
=================

An HTTP API server for controlling my air conditioner and ceiling light.

Dependencies
------------
- [ir-slinger](https://github.com/bschwind/ir-slinger)
- NodeJS
```
$ sudo apt-get install nodejs
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
```
- npm
```
$ sudo apt-get install npm
$ sudo npm install -g npm
```

Build
-----
$ npm install

Run
---

$ node app.js

PM2 Startup
-----------

```
$ sudo npm install -g pm2
$ sudo env PATH=$PATH:/usr/local/bin pm2 startup systemd -u pi --hp /home/pi
$ pm2 start automationServer.json
$ pm2 save
```

```
$ cat /home/pi/automationServer.json
{
"apps" : [{
"name" : "automation-server",
"script" : "server.js",
"cwd" : "/home/pi/projects/automation-server/"
}]
}
```