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.
- Host: GitHub
- URL: https://github.com/bschwind/automation-server
- Owner: bschwind
- Created: 2016-02-27T16:24:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-11-14T04:22:38.000Z (over 4 years ago)
- Last Synced: 2025-06-28T02:02:11.328Z (12 months ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 14
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/"
}]
}
```