UNPKG

homebridge-weather-noaa

Version:

Homebridge plugin providing temperature and humidity sensors using the NOAA / NWS API.

56 lines (55 loc) 1.61 kB
{ "pluginAlias": "NOAAWeather", "pluginType": "platform", "singular": true, "schema": { "type": "object", "properties": { "name": { "title": "Name", "type": "string", "default": "NOAA Weather" }, "latitude": { "title": "Latitude", "type": "number", "required": true, "minimum": -90, "maximum": 90 }, "longitude": { "title": "Longitude", "type": "number", "required": true, "minimum": -180, "maximum": 180 }, "stationId": { "title": "NOAA Station ID (Optional)", "description": "Override auto-discovery (e.g. KSEA). Letters and digits only, 3-8 chars.", "type": "string", "required": false, "pattern": "^[A-Za-z0-9]{3,8}$" }, "refreshInterval": { "title": "Refresh Interval (minutes)", "type": "integer", "default": 15, "minimum": 5, "maximum": 1440 }, "adaptivePolling": { "title": "Adaptive Polling", "description": "Stretch the polling interval (up to 4x) when readings are unchanged across consecutive polls. Resets immediately on change. Reduces NOAA API load.", "type": "boolean", "default": true }, "userAgentContact": { "title": "Contact (User-Agent)", "description": "Optional contact (email or URL) included in the NOAA User-Agent header so NWS can reach you about API issues. Recommended by NWS.", "type": "string", "required": false } } } }