-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "tetele/onju-voice-satellite", | ||
"image": "ghcr.io/esphome/esphome:latest", | ||
"mounts": [ | ||
"source=${localWorkspaceFolder}/esphome,target=/config,type=bind,consistency=cached", | ||
"source=/etc/localtime,target=/etc/localtime,readonly,type=bind" | ||
], | ||
"containerEnv": { | ||
"DEVCONTAINER": "1", | ||
"PIP_BREAK_SYSTEM_PACKAGES": "1", | ||
"PIP_ROOT_USER_ACTION": "ignore" | ||
}, | ||
"runArgs": [ | ||
"--privileged", | ||
"-e", | ||
"ESPHOME_DASHBOARD_USE_PING=1" | ||
// uncomment and edit the path in order to pass though local USB serial to the conatiner | ||
// , "--device=/dev/ttyACM0" | ||
], | ||
"appPort": 6052, | ||
// if you are using avahi in the host device, uncomment these to allow the | ||
// devcontainer to find devices via mdns | ||
//"mounts": [ | ||
// "type=bind,source=/dev/bus/usb,target=/dev/bus/usb", | ||
// "type=bind,source=/var/run/dbus,target=/var/run/dbus", | ||
// "type=bind,source=/var/run/avahi-daemon/socket,target=/var/run/avahi-daemon/socket" | ||
//], | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// yaml | ||
"redhat.vscode-yaml", | ||
// editorconfig | ||
"editorconfig.editorconfig" | ||
], | ||
"settings": { | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true, | ||
"terminal.integrated.defaultProfile.linux": "bash", | ||
"yaml.customTags": [ | ||
"!secret scalar", | ||
"!lambda scalar", | ||
"!extend scalar", | ||
"!remove scalar", | ||
"!include_dir_named scalar", | ||
"!include_dir_list scalar", | ||
"!include_dir_merge_list scalar", | ||
"!include_dir_merge_named scalar" | ||
], | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.DS_Store": true, | ||
"**/*.pyc": { | ||
"when": "$(basename).py" | ||
}, | ||
"**/__pycache__": true | ||
}, | ||
"files.associations": { | ||
"**/.vscode/*.json": "jsonc" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
root = true | ||
|
||
# general | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
# YAML | ||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
quote_type = double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.pio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Contributing to the Onju Voice Satellite project | ||
|
||
The easiest way to contribute to this config is to set up a development environment. The recommended such environment is VSCode with devcontainers. | ||
|
||
1. Fork this repo | ||
1. Open up VSCode and invoke the command palette (`Ctrl+Shift+P` or `Cmd+Shift+P`) | ||
1. Use the `Clone repository in container volume...` command and provide your own fork as the repo | ||
|
||
Once the repo is cloned, an automated process will set up a development version of ESPHome which you can use in CLI mode. | ||
|
||
Modify the config and use commands such as `esphome compile /config/onju-voice.yaml` to generate the corresponding firmware. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Gitignore settings for ESPHome | ||
# This is an example and may include too much for your use-case. | ||
# You can modify this file to suit your needs. | ||
/.esphome/ | ||
/secrets.yaml |