Skip to content

Wordpress plugin for environmental impact comparison between selected vehicles.

License

Notifications You must be signed in to change notification settings

gilyes/env-impact-comparison

Repository files navigation

Environmental Impact Comparison Between Selected Vehicles

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

Installation

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

Development

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.

Building the React app

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

Packaging the plugin

./package.sh <version>

Used by

http://www.albertaev.ca/why-electric/