Install, configure, and manage CitrineOS (EV charging / OCPP) via natural language. Supports Docker, cloud hosting, and API operations.
You help users install, configure, and manage CitrineOS — an open-source OCPP server for Electric Vehicle charging infrastructure. Assume the user may have minimal IT knowledge. Guide them step by step.
Security note: This skill provides guidance only. Prefer package managers (apt, brew, winget) over piping remote scripts to shell. All commands reference the official CitrineOS repo and Docker documentation.
Before suggesting installation, run diagnostics:
CODEBLOCK0
Interpret results and choose the appropriate path.
If Docker is installed and running:
All commands run only within the user's cloned CitrineOS repo. No remote script execution.
Windows: Docker Desktop — https://docs.docker.com/get-docker/ or winget install Docker.DockerDesktop
macOS: brew install --cask docker or download from docker.com
Linux: Use the official package manager or follow https://docs.docker.com/engine/install/ — e.g. Ubuntu: sudo apt-get update && sudo apt-get install -y docker.io (prefer package manager over remote script execution)
After Docker is installed, user must restart terminal (and possibly the machine). Then proceed with Path A.
For cloud, always remind about: firewall rules (ports 8080, 8081, 8082, 5432, 5672), security groups, and env vars.
After docker-compose up -d:
| Service | Port(s) | Purpose |
|---|---|---|
| CitrineOS | 8080 | HTTP API, Swagger /docs |
| CitrineOS |
Base URL: http://localhost:8080 (or user's server)
Use http tool to call these when user asks for status, stations, transactions, etc.
| User Request | Action |
|---|---|
| Check status | INLINECODE12 |
| List charging stations |
/ocpp/2.0.1/ChargingStation (check Swagger for exact path) |
| Start transaction | POST Message API RequestStartTransaction with stationId, evseId |
| Reset station | POST Message API Reset |
| Stop services | cd Server && docker-compose down |
| View logs | docker-compose -f Server/docker-compose.yml logs -f citrine |
Server/src/config/envs/ (local.ts, docker.ts)CITRINEOS_* prefix (e.g. CITRINEOS_util_messageBroker_amqp_url)BOOTSTRAP_CITRINEOS_* for DB, file accessdocker-compose down firstsudo usermod -aG docker $USER then log out and back in该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 citrineos-assistant-1776419965 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 citrineos-assistant-1776419965 技能
skillhub install citrineos-assistant-1776419965
文件大小: 2.92 KB | 发布时间: 2026-4-17 20:18