360 Secure SkillHub
360 安全技能中心

Amber Electric 的实时电价、预测电价及站点信息

该 Skill 通过 Amber Electric 接口读取用户站点信息、当前电价及未来 24 小时价格预测,需配置 AMBER_API_KEY,提供 get_sites、get_current_price、get_forecast 三个动作,返回结构化 JSON 数据。

分类:生活
kingmaxmmxweisun
kingmaxmmxweisun
热度 38.03
最近更新 2026-05-11 17:28:50

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kingmaxmmxweisun/amber-electric-pro
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
amber_energy_manager
description
Access real-time electricity prices, forecasts, and site details from Amber Electric. Supports fetching current price data, 24-hour forecasts, and account site lists. 获取 Amber Electric 的实时电价、预测电价及站点信息。
parameters
{"action":{"type":"string","description":"The action to perform. Options: 'get_sites' (list sites), 'get_current_price' (get current price), 'get_forecast' (get price forecasts). 执行的操作:获取站点、实时电价或预测。"},"site_id":{"type":"string","description":"The unique ID of the site. Required for price/forecast actions. 站点的唯一 ID (执行实时价格或预测时必填)。"}}
handler
const baseUrl = 'https://api.amber.com.au/v1'; const headers = { 'Authorization': `Bearer ${process.env.AMBER_API_KEY}`, 'Accept': 'application/json' }; if (params.action === 'get_sites') { const res = await fetch(`${baseUrl}/sites`, { headers }); return await res.json(); } if (params.action === 'get_current_price') { if (!params.site_id) return { error: "site_id is required" }; const res = await fetch(`${baseUrl}/sites/${params.site_id}/prices/current`, { headers }); return await res.json(); } if (params.action === 'get_forecast') { if (!params.site_id) return { error: "site_id is required" }; const res = await fetch(`${baseUrl}/sites/${params.site_id}/prices/forecasts`, { headers }); return await res.json(); } return { error: "Invalid action" };

Amber Electric Energy Assistant | 能源助手

This skill enables OpenClaw to access wholesale electricity price data from Amber Electric (Australia). 此技能允许 OpenClaw 接入澳洲 Amber Electric 的批发电价数据。

Key Features / 主要功能

  • View Sites / 查看站点: Retrieve the NMI and Site ID(s). 获取你名下的 NMI 和站点 ID。
  • Real-time Pricing / 实时价格: Get current price levels (e.g., extremelyLow, spike). 获取当前电价等级和具体数值。
  • Price Forecasting / 电价预测: View 24-hour price trends. 获取未来 24 小时的价格趋势。

Configuration / 配置要求

需要在环境变量或 openclaw.json 中配置: AMBER_API_KEY: Your personal Amber API token. 你的 Amber API 令牌。