Clear, dark observing windows tonight
observing_windowsIs tonight good for observing here, and when? The clear, dark windows of tonight, and of the next nights the hourly cloud forecast covers, for one place: astronomical night with the Moon down (or up, with moon "any"), under the MET Norway cloud forecast. The windows are the ones the CycleCalcs Observing Planner widget draws, and the rule below decides which count; the answer is the /api/observing-windows feed's. Returns summary (tonight in one sentence on the place's clock), go_tonight (true when tonight has a window that passes the rule), next (the first window ahead that passes, with start, end, minutes and starts_in_minutes), tonight and later. Give lat, lon and tz, or a place name; lat and lon are rounded to two decimals (about 1 km), the precision of the forecast. The right tool for "is it clear enough to stargaze tonight" or "when should I set up the telescope". For the moonless dark alone, without weather, or for nights past the forecast, use astro_dark_window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | The place's IANA timezone, such as "America/Chicago". Required with lat and lon: tonight and every time in the answer are on the place's clock. A resolved place supplies its own. | |
| lat | No | Latitude in decimal degrees, north positive. Send lat and lon together. | |
| lon | No | Longitude in decimal degrees, east positive (Lisbon is about -9.14). Send lat and lon together. | |
| moon | No | "down" (the default) counts only windows with the Moon below the horizon; "any" lets it be up. | |
| place | No | The place NAME only, one to three words, instead of lat/lon: "City" or "City,CC" with an ISO country code, e.g. "Lisbon,PT". Never a question or a sentence. Resolved server-side; the response then carries a required GeoNames CC BY 4.0 credit in its attribution field, which must be preserved when shown. | |
| cloudmax | No | The clear limit: an hour is clear when the forecast gives under this percent of total cloud (and under 25 percent fog, with no rain forecast). Default 30. | |
| min_minutes | No | The shortest window worth going out for, in minutes. Default 60. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tonight's clear, dark windows at one place under the cloud forecast, and the first one ahead that passes the rule. The same plan /api/observing-windows serves. | |
| rights | No | attribution_required when the cloud forecast or a resolved place name was used, else unrestricted. When attribution_required, the attribution line must be shown. | |
| warnings | No | Machine-readable notices about this answer. Present only when non-empty. Never changes whether the call succeeded. | |
| attribution | No | The credit line to display verbatim when rights is attribution_required. | |
| next_cursor | No | Present only when more rows exist. Send it back with the SAME start/end arguments as the first call to get the next page. | |
| not_computed | No | Data this API deliberately does not serve, and why. Present only when the question touched such a field. An absence named here is information: treat it as "withheld", never as "none exists". |