# Cloudflare Worker configuration for sigen-shelly-bridge # Replace YOUR_WORKER_NAME with a name of your choice (e.g. sigen-shelly-bridge) name = "YOUR_WORKER_NAME" main = "worker.js" compatibility_date = "2024-01-01" # Cron schedule: run every 5 minutes [triggers] crons = ["*/5 * * * *"] # KV namespace binding # Create the namespace in the Cloudflare dashboard first: # Workers & Pages -> KV -> Create namespace -> name it SIGEN_DATA # Then replace YOUR_KV_NAMESPACE_ID with the ID shown in the dashboard. [[kv_namespaces]] binding = "SIGEN_DATA" id = "YOUR_KV_NAMESPACE_ID" # Secret (set via CLI, not stored here): # npx wrangler secret put SIGEN_AUTH_KEY # -> enter: base64(AppKey:AppSecret) # # How to get the value: # Python: import base64; print(base64.b64encode(b"yourAppKey:yourAppSecret").decode())