Skip to main content

Marine Weather is a simple tool for getting marine weather data. It returns the current weather conditions in coordinates within the ocean and sea.

Project description

Marine Weather API

Marine Weather is a simple tool for getting marine weather data. It returns the current weather conditions in coordinates within the ocean and sea.

Build Status Code Climate Prod Ready

This is a Python API Wrapper for the Marine Weather API


Installation

pip install apiverve-marineweather

Configuration

Before using the marineweather API client, you have to setup your account and obtain your API Key.
You can get it by signing up at https://apiverve.com


Usage

The Marine Weather API documentation is found here: https://docs.apiverve.com/api/marineweather.
You can find parameters, example responses, and status codes documented here.

Setup

# Import the client module
from apiverve_marineweather.apiClient import MarineweatherAPIClient

# Initialize the client with your APIVerve API key
api = MarineweatherAPIClient("[YOUR_API_KEY]")

Perform Request

Using the API client, you can perform requests to the API.

Define Query
query = { "lat": 29.48003,  "lon": -37.62424 }
Simple Request
# Make a request to the API
result = api.execute(query)

# Print the result
print(result)
Example Response
{
  "status": "ok",
  "error": null,
  "data": {
    "location": {
      "lat": 29.48003,
      "lon": -37.62424
    },
    "weather": {
      "maxtempc": 26.9,
      "maxtempf": 80.4,
      "mintempc": 26.4,
      "mintempf": 79.5,
      "avgtempc": 26.7,
      "avgtempf": 80,
      "maxwindmph": 12.2,
      "maxwindkph": 19.7,
      "totalprecipmm": 1.5,
      "totalprecipin": 0.06,
      "totalsnowcm": 0,
      "avgviskm": 9.6,
      "avgvismiles": 5,
      "moonphase": "First Quarter",
      "moonillumination": 64
    }
  },
  "code": 200
}

Customer Support

Need any assistance? Get in touch with Customer Support.


Updates

Stay up to date by following @apiverveHQ on Twitter.


Legal

All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.


License

Licensed under the The MIT License (MIT)

Copyright (©) 2024 APIVerve, and Evlar LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiverve_marineweather-1.1.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

apiverve_marineweather-1.1.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file apiverve_marineweather-1.1.4.tar.gz.

File metadata

File hashes

Hashes for apiverve_marineweather-1.1.4.tar.gz
Algorithm Hash digest
SHA256 6d01cdfbb11ed671bf3750870a865820aca02c4718542692f5bfb504af096bc5
MD5 a8ec2d3bf7d9e4edc5d7e430893bbd79
BLAKE2b-256 dfaf0d55a406b230e63820c06046c0f7085e21f7d201f1283e9fe4a3afbca247

See more details on using hashes here.

File details

Details for the file apiverve_marineweather-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for apiverve_marineweather-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 64a5a1efac377f42daf182b55b1ac126c6499dc8648689ecc6a21fc0776c9154
MD5 870de59627369624719ac4f5a9c6e2be
BLAKE2b-256 ad0bcff240f92e86fa49a1ff7282c484a30c1ef7f52352228ea6697fd11b46f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page