Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
iss-gateway
Advanced tools
Readme
ISS-Gateway for Domoticz is a gateway (really ?!) to display Domoticz devices into ImperiHome mobile interface. It run perfectly on a Raspberry Pi with a minimal footprint (approx. 50Mb) and can work in a cluster for performance improvment.
ISS-Gateway is a fork and also a portage from ISS-Domo.
Start by installing it using NPM :
$ sudo npm install iss-gateway -g
Ensure it's correctly installed :
$ iss-gateway
The result must be :
pi@raspberrypi:~ $ iss-gateway
------------------------------------------------------------------------------------
ISS-Gateway for Domoticz v0.0.4
Global config file is /usr/lib/node_modules/iss-gateway/config.json
User config must be placed in /etc/iss-gateway.json
Domoticz is configured on http://admin:admin@host_or_ip:8080/json.htm
------------------------------------------------------------------------------------
You can stop the process by typing CTRL+C in your console.
Create (only once time) your configuration file by copying it from the global configuration file :
sudo cp /usr/lib/node_modules/iss-gateway/config.json /etc/iss-gateway.json
See configuration steps before launching the gateway.
The best solution is to use PM2 (The awesome Process Manager for NodeJS processes) :
$ sudo npm install pm2 -g
Note that it can be also installed locally without -g option. In this case, config file path could be different depending of your system.
Then, start iss-gateway on PM2
$ pm2 start iss-gateway
The result must be :
$ pm2 status
┌────────────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├────────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────────────┼──────────┤
│ iss-gateway │ 0 │ fork │ 30475 │ online │ 0 │ 15m │ 58.160 MB │ disabled │
└────────────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────────────┴──────────┘
Generate an init script
$ sudo pm2 startup systemd
Is it possible to specify an user by adding -u at the end of the startup command.
If you have already installed a previous version of ISS-Gateway, to update do :
$ sudo npm update iss-gateway -g
Then, reload the current running instance :
$ pm2 reload iss-gateway
[PM2] Reloading process by name iss-gateway
[PM2][WARN] iss-gateway app can't be reloaded - restarting it
[PM2] restartProcessId process id 0
[PM2] All processes reloaded
[TO BE DONE]
See the config.json file below :
{
"port": 8000,
"debug": false,
"auth": null,
"domoticz": {
"ssl": false,
"host": "host_or_ip_of_domoticz",
"port": 8080,
"auth": {
"username": "admin",
"password": "admin"
},
"path": "/",
"user-agent": "ISS-Gateway",
"url_cam_video": "video/mjpg.cgi"
}
}
Set a username/password object to the 'auth' root node and specify an username and an password value:
auth: { "username": "admin", "password": "admin" }
FAQs
ISS Gateway for Domoticz
We found that iss-gateway demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).