Skip to content

Instantly share code, notes, and snippets.

View mrchrisadams's full-sized avatar

Chris Adams mrchrisadams

View GitHub Profile
$ check-energy --uri https://github.com/green-coding-solutions/nextcloud-gmt
Scenario Baseline(Wh) Recorded(Wh) Var Status
--------------------------------------------------------------------
usage_scenario_video 0.65 0.65 +0.4% PASS
usage_scenario_calendar 0.07 0.07 -1.0% PASS
usage_scenario_text 0.48 0.47 -2.3% PASS
usage_scenario_talk 0.25 0.26 +2.2% PASS
@mrchrisadams
mrchrisadams / csrd-performance-refactor-2026-08.plan.md
Created August 14, 2026 16:09
CSRD Performance Refactor — August 2026 Rebase Plan

CSRD Performance Refactor — August 2026 Rebase Plan

Background

PR #122 (csrd-performance-refactor branch) introduced significant performance improvements to CSRD document processing (~8–43x faster). The branch was based on commit a66e68c (main at the time of the PR). Since then, main has moved forward 48+ commits, including:

  • Guarded imports for arelle (the csrd extra) with _require_arelle() /
@mrchrisadams
mrchrisadams / README.md
Last active May 1, 2026 07:49
Energy Tracking Implementation Plan for Mistral Vibe

Energy Disclosure Standard for AI Providers

Executive Summary

This document defines a standard for AI providers (such as Mistral) to disclose energy consumption and carbon emissions data through their APIs. The goal is to enable clients to track and report the environmental impact of AI usage.

Background

AI model inference consumes significant energy. Users and organizations increasingly want visibility into:

  • Energy consumption (joules, watt-hours, kilowatt-hours)
@mrchrisadams
mrchrisadams / dirigera-guide.md
Last active June 20, 2026 13:50
Exporting temperature data from IKEA Dirigera hub to CSV

Exporting temperature data from IKEA Dirigera hub to CSV

Exporting Temperature Data from IKEA Dirigera to CSV

This guide covers how to install the ikea CLI, authenticate with your Dirigera hub, and export all temperature readings from your Alpstuga sensors into CSV files. Useful as documented evidence for a rent reduction (Mietminderung) claim.

Note: This uses the unofficial ikea-dirigera-client library. It is not affiliated with IKEA. A future hub firmware update could break it.


@mrchrisadams
mrchrisadams / devstral-small-2512-csrd-code-review.md
Last active March 20, 2026 15:05
CSRD Code Performance Review

CSRD Code Review - Performance Analysis and Optimization Opportunities

Summary

The CSRD document processing code in the carbon-txt-validator has several performance bottlenecks that can be addressed to improve speed and resource utilization. The main issues revolve around Arelle initialization, file loading, and redundant processing.

Current Performance Issues

1. Arelle Session Initialization Overhead

Dear colleague,

Thank you for your interest in participating in the stakeholder consultation on Minimum Performance Standards for data centers. The first stakeholder workshop will take place online on 24 March from 10:00–13:00 CEST (Microsoft Teams). If you would like to participate, please register using the link below:

https://ec.europa.eu/eusurvey/runner/2b7fd798-024a-9565-d628-1e9e347cda21

Dear Chris Adams,

We are contacting you because you previously participated in a study on data centre sustainability (EUDCEAR) or you were suggested as potentially interested stakeholder for the topic. The findings of the previous study informed two technical reports which are available online (Report 1Report 2) and helped identify key priorities for a sustainable data centre sector in the EU.

We are pleased to invite you to participate in the next phase of stakeholder consultation for a new study contracted by the European Commission Directorate-General for Energy (DG ENE

@mrchrisadams
mrchrisadams / 1.readme.md
Last active February 9, 2026 10:02
How to use Marimo with energy disclosing inference providers.
@mrchrisadams
mrchrisadams / 01 - PROPOSAL.md
Last active February 13, 2026 09:34
RFC: Energy Tracking as First-Class Citizen in OpenCode - Proposal for native energy/carbon tracking with plugin hooks

Proposal: Energy Tracking as a First-Class Citizen in OpenCode

Summary

This proposal adds native energy and carbon tracking to OpenCode by:

  1. Capturing measured energy data from providers that supply it (GreenPT, Neuralwatt)
  2. Estimating energy for providers that don't measure it
  3. Storing energy data alongside existing token/cost data
  4. Providing plugin hooks for customization and external integration
@mrchrisadams
mrchrisadams / opencode-energy-tracking.md
Last active April 28, 2026 20:03
Research: Energy and Carbon Tracking for OpenCode - Analysis of instrumenting OpenCode with energy/carbon data similar to llm-greenpt and llm-neuralwatt

Energy and Carbon Tracking for OpenCode

Research Document: Instrumenting OpenCode with Energy/Carbon Data

Date: January 2025
Author: Research analysis based on llm-greenpt, llm-neuralwatt, and OpenCode codebase


Executive Summary