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": 25.8,
      "maxtempf": 78.4,
      "mintempc": 21.4,
      "mintempf": 70.5,
      "avgtempc": 24.9,
      "avgtempf": 76.7,
      "maxwindmph": 7.4,
      "maxwindkph": 11.9,
      "totalprecipmm": 0.92,
      "totalprecipin": 0.04,
      "totalsnowcm": 0,
      "avgviskm": 10,
      "avgvismiles": 6,
      "moonphase": "Waxing Gibbous",
      "moonillumination": 75
    }
  }
}

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.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

apiverve_marineweather-1.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for apiverve_marineweather-1.1.2.tar.gz
Algorithm Hash digest
SHA256 642694ac77d6688d3bb2f555b4f20c484e01b221643ac0978777d6792179f345
MD5 f638a284ad0eddab22ef163eaeb4e7db
BLAKE2b-256 7dbce3cc8f5cb14bf2c945df4651574ec0aef0f9f240d2d915cf0365fb59b0a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apiverve_marineweather-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb95102d61328ed92499d2da4ffc012690097a5cd851a87ac511844232bc5586
MD5 9067e5f9bee4da4633b6155af92727c1
BLAKE2b-256 761d7a6b40f5a3fbdaf50070894626c030b76c98902b0973397ada809e76fe65

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