Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kasseltrankos/riego-socket
jsverify
https://github.com/kasseltrankos/riego-socket
fantasy-land fantasy-land-spec socket-io
Last synced: 12 days ago
JSON representation
jsverify
- Host: GitHub
- URL: https://github.com/kasseltrankos/riego-socket
- Owner: kasselTrankos
- Created: 2019-05-20T17:09:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T20:43:26.000Z (almost 4 years ago)
- Last Synced: 2024-11-25T02:12:25.625Z (2 months ago)
- Topics: fantasy-land, fantasy-land-spec, socket-io
- Language: JavaScript
- Homepage:
- Size: 446 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![travis](https://travis-ci.org/kasselTrankos/riego-socket.svg?branch=master)
## The soket riego's legYou can made a irrigation calling 'made riego' or 'irrigate' socket.
Using Fantasy land to create the algebraic interfaz of Irrigation.
Irrigation uses the sigly linked list.## deprecated
Not uising reverse proxy with apache, this was temporal until dns is ok.
Now only using node server.
This is the socket server from port 3000 that comunicate directly with arduino and mobile.
Given apche2(v2.4+) configuration.
```
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:3000/$1 [P,L]
ProxyPass /socket.io http://localhost:3000/socket.io
ProxyPassReverse /socket.io http://localhost:3000/socket.io
```In next phase remove the ```pm2``` from server, better use native node behind run.
Info:
- using [pm2](http://pm2.keymetrics.io/) to always stay at work ```npm npm i -g pm2```.
- To run the sheduler by forever with logs use ```node sheduler.js > sheduler-out.log 2>&1 &```.
- To run the app by forever with logs use ```node ./node_modules/.bin/babel-node app.js > app-out.log 2>&1 &```.
- By pm2 ```pm2 start run.sh --max-memory-restart 6M --cron 30 2 * * *``` only 6M and restart every day ( there is a bug with apache and blocks it).- By pm2 ```pm2 start site.sh``` initialize the app for mantain data and server.