feat: read opening hours from Google Business Profile

Places API script normalizes regular and special hours; build uses a
snapshot, an orari sidecar refreshes /dati/orari.json every 6 hours for
the open-now sign. Adds the company legal name. Key stays in .env.server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 16:13:35 +01:00
co-authored by Claude Opus 5.5
parent 29d8700081
commit a651519dbe
15 changed files with 378 additions and 46 deletions
+22
View File
@@ -11,6 +11,28 @@ services:
# sulla rete Docker condivisa "a75" come officinezuliani-site:3000.
networks:
- a75
volumes:
# orari.json scritto dal servizio "orari" (sola lettura per nginx)
- orari-dati:/usr/share/nginx/html/dati:ro
orari:
# Legge gli orari dalla scheda Google Business Profile (Places API) ogni
# 6 ore e li scrive in orari.json (ADR 0005). La chiave sta solo nel .env
# del server, copiato da deploy.sh a partire da .env.server locale.
image: node:22-alpine
container_name: officinezuliani-orari
restart: always
env_file:
- .env
command: ["node", "/app/orari-google.mjs", "--out", "/dati/orari.json", "--ogni", "6"]
volumes:
- ./scripts:/app:ro
- orari-dati:/dati
networks:
- a75
volumes:
orari-dati:
networks:
a75: