action openuv_get_protection { label: "get_protection" description: "Get daily protection time by location, UV Index from and UV Index to with 10 minutes accuracy. Optional altitide and ozone level could be provided." provider: openuv method: GET path: "/protection" encoding: json input: { type: "object" properties: { alt: { type: "number" description: "Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV Index value." } from: { type: "number" description: "UV Index from value for protection datetime lookup. From 0 to 40." } lat: { type: "number" description: "latitude, from -90.00 to 90.00" } lng: { type: "number" description: "longitude, from -180.00 to 180.00" } ozone: { type: "number" description: "Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default." } to: { type: "number" description: "UV Index to value for protection datetime lookup. From 0 to 40." } "x-access-token": { type: "string" description: "This header is used to send data that contains your OpenUV API key" } } required: ["from", "lat", "lng", "to", "x-access-token"] additionalProperties: false } output: { type: "object" required: ["ozone", "ozone_time", "uv", "uv_max", "uv_max_time", "uv_time"] properties: { ozone: { type: "number" } ozone_time: { type: "string" format: "date-time-only" } uv: { type: "number" } uv_max: { type: "number" } uv_max_time: { type: "string" format: "date-time-only" } uv_time: { type: "string" format: "date-time-only" } } } }