Skip to main content

Final Fantasy XIV weather & time tools.

Project description

Pypi Pypi Build Status

EorzeaEnv

Installation

pip install EorzeaEnv

Usage

from EorzeaEnv import EorzeaTime
from EorzeaEnv import EorzeaWeather

Eorzea Time

>>> EorzeaTime.now() 
'EorzeaTime(Sixth Embral Moon, 11, 21, 56, 0.50, Althyk)'

>>> EorzeaTime.now().moon 
'Sixth Embral Moon'

>>> EorzeaTime.now().sun 
11

>>> EorzeaTime.now().hour 
21

>>> EorzeaTime.now().minute 
56

>>> EorzeaTime.now().phase 
0.50

>>> EorzeaTime.now().guardian 
'Althyk'

Weather Forecast

# defalut step value is 5
t = EorzeaTime.weather_period(step=3)

# defalut lang is 'en'
# defalut strict is True
weather_en = EorzeaWeather.forecast_weather('Eureka Pyros', t, strict=True)
weather_jp = EorzeaWeather.forecast_weather('Eureka Pyros', t, lang='ja', strict=True)
weather_de = EorzeaWeather.forecast_weather('Eureka Pyros', t, lang='de', strict=True)
weather_fr = EorzeaWeather.forecast_weather('Eureka Pyros', t, lang='fr', strict=True)

or

weather_en = []
for t in EorzeaTime.weather_period(step=3):
    w = EorzeaWeather.forecast_weather('Eureka Pyros', t)
    weather_en.append(w)
>>> print(weather_en)
['Thunder', 'Snow', 'Blizzards']

>>> print(weather_ja)
['雷', '雪', '吹雪']

>>> print(weather_de)
['Gewittrig', 'Schnee', 'Schneesturm']

>>> print(weather_fr)
['Orages', 'Neige', 'Blizzard']

Thanks

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
EorzeaEnv-1.2.12.tar.gz (12.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page