6
mirror of https://github.com/AllSpiceIO/carbon-emission-calculator.git synced 2024-12-03 10:15:36 +00:00
An AllSpice Actions add-on for calculating the carbon emission of a PCBA given a data source with component data figures
Go to file
2024-12-02 09:39:23 -05:00
.github Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
.gitignore Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
action.yml Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
Dockerfile Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
entrypoint.py Strip and replace cleanup for str to float conversion 2024-07-22 14:47:42 -05:00
LICENSE Initial commit 2024-07-22 12:08:49 -05:00
pyproject.toml Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
README.md Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
requirements-test.txt Bump ruff from 0.6.8 to 0.8.1 2024-12-01 19:53:26 +00:00
requirements.txt Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00

Carbon Emissions Calculator for PCBA

An actions repository for demonstrating the calculation of the sum carbon emission for a PCBA given an input BOM and a data source with component emissions data

Usage

Add the following step to your actions:

- name: Generate carbon emissions report for a PCBA given its BOM
  uses: https://hub.allspice.io/Actions/carbon-emission-calculator@v1
  with:
    bom_file: bom.csv

Input BOM

The input BOM to this Action is assumed to be generated from the py-allspice BOM generation utility. The column names referenced and used in this Action script assume the naming convention as populated by the py-allspice BOM generation function. The user is to adjust the expected column positions and naming conventions when using their own BOM file input.

A typical workflow is to use the BOM generation Actions add-on to generate the BOM first, and use the generated BOM as an input to this Action.