mirror of https://github.com/arendst/Tasmota.git
Add v9 templates
This commit is contained in:
parent
90bb0292ed
commit
e105d5b4f4
File diff suppressed because it is too large
Load Diff
3364
TEMPLATES.md
3364
TEMPLATES.md
File diff suppressed because it is too large
Load Diff
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
- Python
|
- Python
|
||||||
- pip pycurl certifi
|
|
||||||
|
|
||||||
Instructions:
|
Instructions:
|
||||||
Execute command to produce file TEMPLATE.md as found in the Tasmota root folder
|
Execute command to produce file TEMPLATE.md as found in the Tasmota root folder
|
||||||
|
@ -324,7 +323,7 @@ def get_templates_list():
|
||||||
return response.text.split('\n')
|
return response.text.split('\n')
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print ("\n*** templates.py v20200514 by Theo Arends ***")
|
print ("\n*** templates.py v20201121 by Theo Arends and Barbudor ***")
|
||||||
|
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
month = now.strftime('%B')
|
month = now.strftime('%B')
|
||||||
|
@ -368,7 +367,7 @@ def main():
|
||||||
except json.decoder.JSONDecodeError as ex:
|
except json.decoder.JSONDecodeError as ex:
|
||||||
template = "Not available"
|
template = "Not available"
|
||||||
|
|
||||||
fout.write(f"{name:<{COLUMN}} {json.dumps(template)}\n")
|
fout.write(f"{name:<{COLUMN}} {json.dumps(template, separators=(',', ':'))}\n")
|
||||||
|
|
||||||
fout.write('```\n')
|
fout.write('```\n')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue