WordPress plugin that displays and compares the environmental impact of various electric and gas vehicles based on Alberta Electric System Operator (AESO) data (http://ets.aeso.ca/ets_web/ip/Market/Reports/CSDReportServlet).
- Download latest release from https://github.com/gilyes/env-impact-comparison/releases
- Upload and activate plugin.
- On the plugin's Settings page upload CSV files containing EV and ICE vehicle data.
- The format of these CSV files is: vehicle_name, consumption (number), picture_url, fuel_type ('G', 'D')
- Do not add header row to CSV.
- Add the shortcode
[env-impact-comparison]
to a page.
The functionality is implemented as a React/Redux application:
- The source for this is in the
/app
directory. - The plugin uses the production build which is generated in
/app/dist
.
NOTE: Node.js is required to build the app.
To build for production:
cd app
npm run build
To run in dev mode:
cd app
npm start
./package.sh <version>