hassio yaml save lovelace convert

 avataruser_3364516
Publica year ago7 snippets
g_lovelace_default_convert.py
lovelace_3_move_converted.bat
lovelace_2_convert_py.bat
lovelace_1_get_copy.bat
yaml_3_get_storage_copy_move_date_folder.bat
yaml_2_get_copy_move_date_folder.bat
yaml_1_esphome_get_copy_move_date_folder.bat
g_lovelace_default_convert.py
try:
    import simplejson as json
except ImportError:
    print('simplejson missing, install with "pip install simplejson"')
try:
    import yaml
except ImportError:
    print('yaml missing, install with "pip install pyyaml"')

READFILE = r"E:\hassio\dailies\scratch\lovelace"
lovelace_3_move_converted.bat
@echo off
set "source=E:\hassio\dailies\scratch"
set "destination=E:\hassio\dailies"

REM Get the current date in YYYYMMDD format
for /F "tokens=1-3 delims=/ " %%a in ('date /T') do set "date=%%b-%%c-%%a"
REM "date=%%c%%b%%a"

REM Create a folder with the current date as the title
mkdir "%destination%\%date%"
lovelace_2_convert_py.bat
@echo off
"C:\Users\SSD-PC\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files (x86)\EventGhost\others\move_files\py_scripts\g_lovelace_default_convert.py"
lovelace_1_get_copy.bat
@echo off
set "source=\\192.168.1.114\config\.storage"
set "destination=E:\hassio\dailies\scratch"

REM Get the current date in YYYYMMDD format
REM for /F "tokens=1-3 delims=/ " %%a in ('date /T') do set "date=%%c%%b%%a"

REM Create a folder with the current date as the title
REM Rmkdir "%destination%\%date%"

yaml_3_get_storage_copy_move_date_folder.bat
@echo off
set "source=\\192.168.1.114\config\.storage"
set "destination=E:\hassio\dailies"

REM Get the current date in YYYYMMDD format
for /F "tokens=1-3 delims=/ " %%a in ('date /T') do set "date=%%b-%%c-%%a"
REM "date=%%c%%b%%a"

REM Create a folder with the current date as the title
mkdir "%destination%\%date%"
yaml_2_get_copy_move_date_folder.bat
@echo off
set "source=\\192.168.1.114\config"
set "destination=E:\hassio\dailies"

REM Get the current date in YYYYMMDD format
for /F "tokens=1-3 delims=/ " %%a in ('date /T') do set "date=%%b-%%c-%%a"
REM "date=%%c%%b%%a"

REM Create a folder with the current date as the title
mkdir "%destination%\%date%"
yaml_1_esphome_get_copy_move_date_folder.bat
@echo off
set "source=\\192.168.1.114\config\esphome"
set "destination=E:\hassio\dailies"

REM Get the current date in YYYYMMDD format
for /F "tokens=1-3 delims=/ " %%a in ('date /T') do set "date=%%b-%%c-%%a"
REM "date=%%c%%b%%a"

REM Create a folder with the current date as the title
mkdir "%destination%\%date%\esp-homes"