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

weather_en = []
weather_ja = []
weather_de = []
weather_fr = []

# defalut step value is 5
for t in EorzeaTime.weather_period(step=3):
    # defalut lang is 'en'
    # defalut strict is True
    w_en = EorzeaWeather.forecast_weather('Eureka Pyros', t, strict=True)
    w_ja = EorzeaWeather.forecast_weather('Eureka Pyros', t, lang='ja', strict=True)
    w_de = EorzeaWeather.forecast_weather('Eureka Pyros', t, lang='de', strict=True)
    w_fr = EorzeaWeather.forecast_weather('Eureka Pyros', t, lang='fr', strict=True)
    weather_en.append(w_en)
    weather_jp.append(w_ja)
    weather_de.append(w_de)
    weather_fr.append(w_fr)
>>> 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.

Source Distribution

EorzeaEnv-1.2.9.tar.gz (14.1 kB view hashes)

Uploaded Source

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