From b3852a2125f1b7d52cc39e5652af2dd1a76f1832 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Wed, 27 Dec 2023 17:26:28 -0800 Subject: [PATCH] Add `map_maker` config prompt to backend configuration script --- neon_diana_utils/configuration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neon_diana_utils/configuration.py b/neon_diana_utils/configuration.py index 39d88a42..829f4af5 100644 --- a/neon_diana_utils/configuration.py +++ b/neon_diana_utils/configuration.py @@ -33,7 +33,7 @@ from enum import Enum from pprint import pformat from typing import Optional -from os import makedirs, listdir, walk, remove +from os import makedirs, listdir from os.path import expanduser, join, abspath, isfile, isdir, dirname from ovos_utils.xdg_utils import xdg_config_home from ovos_utils.log import LOG @@ -102,10 +102,12 @@ def make_keys_config(write_config: bool, alphavantage_key = click.prompt("AlphaVantage API Key", type=str) owm_key = click.prompt("OpenWeatherMap API Key", type=str) + maps_key = click.prompt("geocode.maps.co API Key", type=str) api_services = { "wolfram_alpha": {"api_key": wolfram_key}, "alpha_vantage": {"api_key": alphavantage_key}, - "open_weather_map": {"api_key": owm_key} + "open_weather_map": {"api_key": owm_key}, + "map_maker": {"api_key": maps_key} } click.echo(pformat(api_services)) keys_confirmed = click.confirm("Are these keys correct?")