Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up config file setup #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
.DS_Store

sd/test/http/index.html

# Config files
sd/test/config/*
!sd/test/config/*.example
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ Configure the Yi camera on the memory card

You will need to set a static IP adresse to the camera. To check for the available IPs on your network, you can use the **Fing** application to scan the network on your Android smartphone.

To configure the wifi network to use, edit the file **test/wpa_supplicant.conf**.
To configure the wifi network to use, copy `test/config/wpa_supplicant.conf.example` to `test/config/wpa_supplicant.conf` and edit it.

To configure your IP address, open the file **test/yi-hack.cfg** and set the values.
To configure your IP address, copy `test/config/yi-hack.cfg.example` to `test/config/yi-hack.cfg` and set the values.

Start the camera
----------------
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions sd/test/yi-hack.cfg → sd/test/config/yi-hack.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ GATEWAY=192.168.1.254
NAMESERVER=192.168.1.254

### Led color after full boot
# The sequence will be :
# The sequence will be :
# - orange : startup
# - blue blinking : configuration
# - blue : configuration finished, camera ready
# - ??? : color set a few seconds after the camera is ready

# values :
# -boff -bfast : blue blinking
# -boff -bon : blue on
# -boff -boff : blue off
# -boff -yfast : yellow blinking
# -boff -yon : yellow on
# -boff -yoff : yellow off
# -boff -bon : blue on
# -boff -boff : blue off
# -boff -yfast : yellow blinking
# -boff -yon : yellow on
# -boff -yoff : yellow off
LED_WHEN_READY=-boff -bon

### Timezone
Expand Down
4 changes: 2 additions & 2 deletions sd/test/equip_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ log() {

get_config() {
key=$1
grep $1 /home/hd1/test/yi-hack.cfg | cut -d"=" -f2
grep $1 /home/hd1/test/config/yi-hack.cfg | cut -d"=" -f2
}


Expand Down Expand Up @@ -194,7 +194,7 @@ done
### INFORMATION : the 'clic' 'clic' is done before this line

### we copy our wpa_supplicant file in /home
cp /home/hd1/test/wpa_supplicant.conf /home/wpa_supplicant.conf
cp /home/hd1/test/config/wpa_supplicant.conf /home/wpa_supplicant.conf


### Init logs
Expand Down