Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
openevse_wifi
Advanced tools
Readme
Node web app for OpenEVSE WiFi gateway, can be run on embeded Linux e.g Raspberry Pi or OrangePi connected to a openevse controller via serial.
sudo apt-get intall node nodejs npm
Tested with npm V5.6.0
and nodejs v9.5.0
.
If a new version of nodejs is not available for your distribution you may need to update, see nodejs install page.
Install NPM package:
npm install -g openevse_wifi
Run with, where <endpoint>
is the serial port where the open_evse controller:
openevse_wifi --endpoint <endpoint>
Install local version running from source:
git clone <this-repo>
npm install
Run using the following, where <endpoint>
is the serial port where the open_evse controller
npm start --port 3000 --endpoint <endpoint>
e.g
npm start -- --port 3000 --endpoint /dev/AMA0
For testing a http end-point of OpenEVSE WiFi gateway can be used e.g
npm start -- --port 3000 --endpoint http://192.168.0.43
or
npm start -- --port 3000 --endpoint http://openevse.local/
Then point your browser at http://localhost:3000/
Depending on your npm setup you may need to install the following:
npm install body-parser
npm install express
npm install
OpenEVSE WiFi uses the debug library as does a number of the dependant modules. To enable debug you set the DEBUG
variable to a filter indicating the modules you wish to receive debug from, eg;
export DEBUG=openevse*
npm start
for Linux or
$env:DEBUG="openevse*"
npm start
for Powershell on Windows
Note: the following is from the ESP8266 version, may not apply
Tip The OpenEVSE WiFi HTML/JS/CSS can be 'compiled' without building the full firmware using the command:
pio run -t buildfs
sudo cp openevse.service /etc/systemd/system/openevse.service
Edit service file to specify correct path to match installation location
sudo nano /etc/systemd/system/openevse.service
Run at startup:
sudo systemctl daemon-reload
sudo systemctl enable openevse.service
sudo npm install -g pm2
pm2 start app.js
For status:
pm2 info app
pm2 list
pm2 restart app
mp2 stop app
Install apache mod-proxy
module then enable it:
sudo apt-get install libapache2-mod-proxy-html
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod rewrite
copy example-openevse-apache.conf
to /etc/apache2/sites-available
making the relevant changes for your server then enable the site using a2ensite
. e.g.
sudo cp example-openevse-apache.conf /etc/apache2/sites-available/openevse.conf
sudo a2ensite openevse
Create log files, this step may not be needed but it's a good idea to check the permissions.
sudo touch /var/log/apache2/openevse_error.log
sudo touch /var/log/apache2/openevse_access.log
sudo service restart apache2
FAQs
OpenEVSE WiFi server
The npm package openevse_wifi receives a total of 0 weekly downloads. As such, openevse_wifi popularity was classified as not popular.
We found that openevse_wifi 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.