实时EV充电桩可用性监控
简介
基于 Google Places API 的充电桩监控工具,支持收藏夹与附近搜索,智能追踪状态变化即时通知,助车主实时掌握充电站空闲。
原始描述
Check EV charger availability (favorites, nearby search) via Google Places.
通过你的 Agent 添加
安装目录:charger/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
charger 是一款面向电动汽车车主的充电桩可用性查询技能,基于 Google Places (New) EV 充电数据构建。提供 CLI 工具与智能通知系统双模式:
- 收藏夹管理:
charger favorites add home --place-id <id>绑定常用充电点 - 即时查询:支持收藏夹别名、Place ID 或自然语言地址(如
"Wien Energie Charging Station Liniengasse 2") - 附近搜索:
charger nearby --lat 48.188 --lng 16.349 --radius 2000 --max 10按地理坐标检索 - 智能通知:
charger-notify.sh辅助脚本实现"状态变更触发"机制——仅当充电桩从不可用变为可用时推送 Telegram 消息,避免信息骚扰
显著优点
- 零依赖风险:纯 Shell/Node.js 实现,无第三方依赖包,供应链攻击面极小
- 安全编码规范:使用
set -euo pipefail,变量严格引用,无命令注入风险
- 隐私合规:API 密钥通过环境变量注入,无硬编码敏感信息,符合 GDPR/CCPA
- T2 可信来源:由 clawdbot 组织维护,GitHub 组织账号背书
- 状态感知通知:基于
~/.cache/charger-notify/ 的本地状态文件,实现边缘触发的精准通知
潜在局限
- 区域限制:依赖 Google Places 覆盖范围,部分偏远地区数据可能不完整
- API 成本:Google Places API 为付费服务,高频查询可能产生费用
- 单点依赖:未实现多源数据聚合(如 OpenChargeMap 备用源)
- 配置门槛:需手动申请 Google Places API Key 并完成 PATH 软链接配置
- 通知延迟:Cron 最小粒度限制(建议 5-10 分钟),非实时推送
适合人群
- 欧洲/北美地区 EV 车主,日常依赖固定通勤路线充电
- 已将 Clawdbot Gateway 作为智能家居中枢的技术用户
- 希望减少"桩满扑空"焦虑,偏好被动通知而非主动刷新的用户
常规风险
- API 密钥泄露:若
~/.clawdbot/.env 权限配置不当,存在本地文件读取风险
- 缓存状态漂移:极端情况下 Google 数据更新延迟可能导致通知与实际可用性不符
- Cron 任务堆积:若主机时间异常或脚本阻塞,可能造成通知重复或遗漏
- 地理坐标误用:
--lat/--lng 参数缺乏范围校验,输入错误坐标将返回无意义结果
set -euo pipefail,变量严格引用,无命令注入风险~/.cache/charger-notify/ 的本地状态文件,实现边缘触发的精准通知- 区域限制:依赖 Google Places 覆盖范围,部分偏远地区数据可能不完整
- API 成本:Google Places API 为付费服务,高频查询可能产生费用
- 单点依赖:未实现多源数据聚合(如 OpenChargeMap 备用源)
- 配置门槛:需手动申请 Google Places API Key 并完成 PATH 软链接配置
- 通知延迟:Cron 最小粒度限制(建议 5-10 分钟),非实时推送
适合人群
- 欧洲/北美地区 EV 车主,日常依赖固定通勤路线充电
- 已将 Clawdbot Gateway 作为智能家居中枢的技术用户
- 希望减少"桩满扑空"焦虑,偏好被动通知而非主动刷新的用户
常规风险
- API 密钥泄露:若
~/.clawdbot/.env 权限配置不当,存在本地文件读取风险
- 缓存状态漂移:极端情况下 Google 数据更新延迟可能导致通知与实际可用性不符
- Cron 任务堆积:若主机时间异常或脚本阻塞,可能造成通知重复或遗漏
- 地理坐标误用:
--lat/--lng 参数缺乏范围校验,输入错误坐标将返回无意义结果
- API 密钥泄露:若
~/.clawdbot/.env权限配置不当,存在本地文件读取风险 - 缓存状态漂移:极端情况下 Google 数据更新延迟可能导致通知与实际可用性不符
- Cron 任务堆积:若主机时间异常或脚本阻塞,可能造成通知重复或遗漏
- 地理坐标误用:
--lat/--lng参数缺乏范围校验,输入错误坐标将返回无意义结果
技能正文
name: charger
description: Check EV charger availability (favorites, nearby search) via Google Places.
metadata:
clawdbot:
config:
requiredEnv:
- GOOGLE_PLACES_API_KEY
stateDirs:
- config
- .cache
charger
Higher-level EV charger checker built on Google Places (New) EV charge data.
This skill includes a bin/charger CLI (Node.js) for checking charger availability.
Setup
-
Requirements:
- Node.js 18+ (Clawdbot already has Node)
GOOGLE_PLACES_API_KEY (recommended in ~/.clawdbot/.env)
-
Put the CLI on your PATH (example):
ln -sf "$(pwd)"/bin/charger /home/claw/clawd/bin/charger
-
Add a favorite:
charger favorites add home --place-id <placeId>
Commands
-
Check a favorite / place id / query:
charger check home
charger check "Wien Energie Charging Station Liniengasse 2 1060 Wien"
-
Find nearby:
charger nearby --lat 48.188472 --lng 16.348854 --radius 2000 --max 10
Notifications
Requirements:
- Node.js 18+ (Clawdbot already has Node)
GOOGLE_PLACES_API_KEY(recommended in~/.clawdbot/.env)
Put the CLI on your PATH (example):
ln -sf "$(pwd)"/bin/charger /home/claw/clawd/bin/charger
Add a favorite:
charger favorites add home --place-id <placeId>
-
Check a favorite / place id / query:
charger check homecharger check "Wien Energie Charging Station Liniengasse 2 1060 Wien"
-
Find nearby:
charger nearby --lat 48.188472 --lng 16.348854 --radius 2000 --max 10
Notifications
The recommended pattern is:
charger(this skill) produces a clearAny free: YES|NOresult.- A scheduled job (Gateway cron) runs a small helper that only prints output when it should notify.
Helper script (what actually decides to notify)
This bundle includes scripts/charger-notify.sh.
What it does:
- Runs
charger check <target> - If
Any free: YESand the last run was notYES, it prints a single notification line. - Otherwise it prints nothing.
So: no output = no notification.
State:
- Stores last state in
~/.cache/charger-notify/<target>.stateso it only notifies on the changeNO/UNKNOWN → YES.
Usage:
bash scripts/charger-notify.sh home
Example notification output:
EV charger available: Tanke Wien Energie Charging Station — Amtshausgasse 9, 1050 Wien, Austria — 1/2 available (OOS 0) (updated 2026-01-21T21:05:00Z)
Typical cron schedule (how you actually get Telegram pings)
Cron is the scheduler. It runs the helper script on a timer and sends you whatever the script prints. Because the helper prints only when it becomes available, you only get messages when it matters.
Check every 10 minutes:
*/10 * * * *
If you want me to wire this into Clawdbot Gateway cron (so you get Telegram pings), tell me:
- target (
home) - interval (every 5/10/20 min)
- quiet hours (optional)
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。