mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-11-13 04:28:14 +00:00
Changed the way colours were managed in the SVG files to make them more amenable to scripting. Changed the scripts to automate icon resizing. Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
28 lines
1.2 KiB
Batchfile
28 lines
1.2 KiB
Batchfile
@echo off
|
|
rem -----------------------------------------------------------------------------------
|
|
rem
|
|
rem Distributed under MIT Licence
|
|
rem See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
|
|
rem
|
|
rem -----------------------------------------------------------------------------------
|
|
rem
|
|
rem GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
|
|
rem tested on a Venu 2 device. The source code is provided at:
|
|
rem https://github.com/house-of-abbey/GarminHomeAssistant.
|
|
rem
|
|
rem J D Abbey & P A Abbey, 28 December 2022
|
|
rem
|
|
rem Run the automatic translation script.
|
|
rem
|
|
rem -----------------------------------------------------------------------------------
|
|
|
|
rem 'pip' instructs us to add this to the PATH for 'websockets.exe' and 'httpx.exe'
|
|
PATH=%PATH%;%USERPROFILE%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts
|
|
rem pip install google-genai beautifulsoup4 lxml
|
|
rem Read the API key from a text file excluded from git.
|
|
rem Copy the API key from your project in https://aistudio.google.com/app/apikey into this file.
|
|
set /p GEMINI_API_KEY=<".\gemini_api_key.txt"
|
|
rem echo Using Gemini API Key: %GEMINI_API_KEY%
|
|
python translate.py
|
|
pause
|