
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!Docker Pulls
该服务器从OpenWeatherMap.org拉取当前天气数据,通过本地API调用提供数据,并将数据存储在InfluxDB中用于绘图。
此服务旨在为https://github.com/jasonacox/Powerwall-Dashboard%E9%A1%B9%E7%9B%AE%E8%BD%BB%E6%9D%BE%E6%B7%BB%E5%8A%A0%E5%A4%A9%E6%B0%94%E6%95%B0%E6%8D%AE%E5%9B%BE%E8%A1%A8%E3%80%82
Docker: docker pull https://hub.docker.com/r/jasonacox/weather411
创建weather411.conf文件(可通过cp weather411.conf.sample weather411.conf复制示例文件),并更新为您的具体位置信息:
python[Weather411] DEBUG = no [API] # 监听请求的端口(默认8676) ENABLE = yes PORT = 8676 [OpenWeatherMap] # 从OpenWeatherMap.org注册并获取APIKEY APIKEY = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # 输入您的纬度和经度 LAT = xxx.xxxx LON = yyy.yyyy WAIT = 10 TIMEOUT = 10 # 单位:standard(标准)、metric(公制)或imperial(英制) UNITS = metric [InfluxDB] # 在InfluxDB服务器中记录数据 ENABLE = yes HOST = influxdb PORT = 8086 DB = powerwall FIELD = weather # 认证 - 不使用时留空 USERNAME = PASSWORD = # Influx 2.x - 不使用时留空 TOKEN = ORG = URL =
运行容器以监听8676端口:
bashdocker run \ -d \ -p 8676:8676 \ -e WEATHERCONF='/var/lib/weather/weather411.conf' \ -v ${PWD}:/var/lib/weather \ --name weather411 \ --restart unless-stopped \ jasonacox/weather411
当前天气网页:http://localhost:8676/
bash# 获取当前天气数据 curl -i http://localhost:8676/temp curl -i http://localhost:8676/all curl -i http://localhost:8676/conditions # 获取代理统计信息 curl -i http://localhost:8676/stats # 清除代理统计信息 curl -i http://localhost:8676/stats/clear
此文件夹包含server.py脚本,运行基于Python的多线程API Web服务器。
Dockerfile可用于容器化代理服务器,实现干净的安装和运行。
bash# 为本地架构构建 docker build -t weather411:latest . # 为所有架构构建 - 需要Docker实验性功能 docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t weather411:latest .
bashdocker run \ -d \ -p 8676:8676 \ -e WEATHERCONF='/var/lib/weather/weather411.conf' \ --name weather411 \ -v ${PWD}:/var/lib/weather \ --restart unless-stopped \ weather411
bashcurl -i http://localhost:8676/temp curl -i http://localhost:8676/stats
访问 http://localhost:8676/ 查看当前天气状况。
如果出现Python错误,请确保在docker run中正确输入了凭据。
bash# 查看日志 docker logs weather411 # 停止服务器 docker stop weather411 # 启动服务器 docker start weather411
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




来自真实用户的反馈,见证轩辕镜像的优质服务