GithubHelp home page GithubHelp logo

riego-socket's Introduction

travis

The soket riego's leg

You 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 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.

riego-socket's People

Contributors

kasseltrankos avatar

Stargazers

 avatar

Watchers

 avatar  avatar

riego-socket's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.