The Swackett Weather API is a perfect replacement for the Dark Sky API. In most cases the Swackett API can power your existing Dark Sky data consumption needs with no code changes. Expected Dark Sky data elements not present in the Swackett API have been added to make migrating to the Swackett API as easy as possible.
For example, the Dark Sky API includes a time zone offset element. This value represens the number of time zones east or west of Greenwich borough in London, England . The Swackett Weather API includes a timezoneOffset element representing the same thing — but in seconds (second required to be added to UTC-based time stamps in order to calculate the local time in a time zone). Both data elements appear in the Swackett Weather API to ease your migration.
Dark Sky’s time zone offset element contains a -4 value for Eastern Time Zone in the United States. Swackett’s timezoneOffset data element is -14400. To to make the migration to the Swackett API as easy as possible, a new element titled offset was added to Swackett API in the expected format of the Dark Sky API.
Other data elements have been added the Swackett API to match the Dark Sky API as much as possible.
Greenwich, England is notable for giving its name to the Greenwich Meridian (0° longitude) and Greenwich Mean Time or GMT.
Coordinated Universal Time (UTC) is the basis for civil time today. This 24-hour time standard is kept using highly precise atomic clocks combined with the Earth’s rotation.
Differences between the Dark Sky and Swackett Weather APIs
- An offset data element has been added to the Swackett API counting a value representing the number of time zones east or west of Greenwich, England.
- The nearestStormDistance and nearestStormBearing data elements have been added to the SwackettAPI for compatibility reason, but will not contain any data.
- The alerts data element will always appear in the Swackett API. It appears in the Dark Sky API as well, but only when active alerts exist for the location specified.
- The flags data element does not exist in the Swackett API, but the flags.units data element was added to the Swackett API for Dark Sky compatibility.
- The flags.sources and flags.nearest-station data elements do not exist in the Swackett API.
Extra data elements available in the Swackett Weather API
- currently, minutely, hourly and daily data elements each contain peep (people symbol) image name and peepEdition name values.