360 Secure SkillHub
360 安全技能中心

Contact Map Bm

通过 Python 脚本经 XML-RPC 读取 Odoo res.partner 联系人,优先使用已有坐标,缺失时用 Nominatim 依次地理编码,生成 Leaflet 交互式 HTML 地图,标记弹窗显示姓名、地址、邮箱、电话并可跳转对应 Odoo 记录;需配置 Odoo 连接凭据,可通过命令行参数按城市过滤。

分类:数据
bernhmueller
bernhmueller
热度 24.50
最近更新 2026-05-11 17:47:44

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bernhmueller/contact-map-bm
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
contact-map-bm
description
Generate an interactive Germany map of Odoo contacts (click markers to open the record in Odoo).
metadata
{"openclaw":{"emoji":"🗺️","requires":{"env":["ODOO_URL","ODOO_DB","ODOO_USERNAME","ODOO_PASSWORD"]},"primaryEnv":"ODOO_PASSWORD","triggers":["show contacts on map","contacts map","map contacts","contact map","show my contacts on a map"]}}

Contact Map (contact-map-bm)

This skill generates an interactive HTML map (Leaflet) with your Odoo contacts geocoded and shown as clickable markers that open the corresponding res.partner record in Odoo.

Features

  • Reads contacts from Odoo via XML-RPC (res.partner).
  • Attempts to reuse coordinate fields if present (common x_*/lat/longitude fields).
  • Geocodes addresses via Nominatim when coordinates are missing (one request/sec respectful usage).
  • Produces HTML at: ${workspace}/odoo_contacts_germany_map.html
  • Popups include contact name, address, email, phone and a link "Open in Odoo".

Requirements

  • Environment variables: ODOO_URL, ODOO_DB, ODOO_USERNAME, ODOO_PASSWORD (or ODOO_API_KEY).
  • Internet access for Nominatim geocoding (optional if your contacts have coordinates).

Usage

  • From the skill folder: python3 scripts/generate_map.py # Generate map for Germany (default) python3 scripts/generate_map.py --city Hamburg # Generate map filtered to a city

Integration

  • The skill declares trigger phrases so OpenClaw can surface it when you ask to see contacts on a map. If you want this to be the default handler for that UI action, I can enable the builtin mapping in OpenClaw config (requires confirmation).

Security

  • Do not commit ODOO passwords or API keys. The script reads the environment first and falls back to a local .env in the skill folder if present.

Files

  • scripts/generate_map.py — main generator script.