npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

openevse_wifi

v1.0.2

Published

OpenEVSE WiFi server

Downloads

2

Readme

OpenEVSE WiFi Node Interface

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.

Requirements

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.

Produciton

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>

Development

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

Debugging

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

Run as a service

Using systemd

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

Using PM2

sudo npm install -g pm2
pm2 start app.js

For status:

pm2 info app
pm2 list
pm2 restart app
mp2 stop app

Serve via apache

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