Metadata-Version: 2.1
Name: pyipma
Version: 2.0.5
Summary: Python library to retrieve information from Instituto Português do Mar e Atmosfera.
Home-page: https://github.com/dgomes/pyipma
Author: Diogo Gomes
Author-email: diogogomes@gmail.com
License: MIT License
Description: [![PyPI version](https://badge.fury.io/py/pyipma.svg)](https://badge.fury.io/py/pyipma)
        
        # pyipma
        Python library to retrieve information from [Instituto Português do Mar e Atmosfera](http://www.ipma.pt)
        
        ## Requirements
        - aiohttp
        - geopy
        
        ## Example
        
        ```python
        import asyncio
        import aiohttp
        
        from pyipma.api import IPMA_API
        from pyipma.location import Location
        
        async def main():
            async with aiohttp.ClientSession() as session:
                api = IPMA_API(session)
        
                location = await Location.get(api,  40.6517, -8.6573)
                print("Forecast for {}".format(location.name))
                print("Nearest station is {}".format(location.station))
        
                obs = await location.observation(api)
                print("Current weather is {}".format(obs))
        
                forecasts = await location.forecast(api)
                print("Forecast for tomorrow {}".format(forecasts[0]))
        
        asyncio.get_event_loop().run_until_complete(main())
        ```
        
        ## Changelog
        
        * 2.0.5 - Look for previous observations when no temperature/humidity available
        * 2.0.4 - Ignore Observation stations with temperature/humidity -99
        * 2.0.3 - Searches next closest station when offline
        * 2.0.2 - Adds Station Lat/Lon
        * 2.0.1 - fixes
        * 2.0.0 - Major refactor
        * 1.2.1 - Fix pip
        * 1.2.0 - Wind direction corrected 
        * 1.1.6 - Interpret -99 and unavailable
        * 1.1.5 - Cache values
        * 1.1.4 - New API
        * ...
        
        ## Credits
        Values are obtained from [IPMA](http://api.ipma.pt)
        
        
        ## Contributors
        @abmantis
        
        ## Copyright
        
        (C) 2018,2019,2020 Diogo Gomes <diogogomes@gmail.com> 
        
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
