Skip to content

Commit

Permalink
update readme and api port
Browse files Browse the repository at this point in the history
  • Loading branch information
kmussel committed Mar 23, 2020
1 parent 3403c67 commit 46a6af3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 33 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_PORT=80
34 changes: 2 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Using Prebuilt Raspberry PI Image
## Connect To Your Wifi Network
### Access Point:
1. Look for a wifi network called ancilla-setup-{....} and Join the network with password `ancilla1134`
2. In your browser you should be able to go to `http://ancilla.local:5000`
If for some reason that doesn't work you can go to the IP address `http://192.168.27.1:5000`
2. In your browser you should be able to go to `http://ancilla.local`
If for some reason that doesn't work you can go to the IP address `http://192.168.27.1`
3. Bottom left of the webpage you should see a gear. Click that and modal will appear where you can add your wifi credentials.
** There is an issue where as soon as it connects it changes networks so the call to connect never returns. If it fails try
refreshing the page and if you can't access ancilla.local then try going to the IP address.
Expand Down Expand Up @@ -126,33 +126,3 @@ docker rm $(docker ps -a -q)
docker rmi $(docker images | grep "<none>" | awk '{print $3}')
docker rmi $(docker images | awk '{print $3}')

sudo mv ancilla.service /lib/systemd/system/ancilla.service

sudo vi /lib/systemd/system/ancilla.service
sudo systemctl enable ancilla
sudo systemctl daemon-reload
<!-- systemctl enable ancilla -->


sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5000
sudo iptables -I INPUT -p tcp --dport 5000 -j ACCEPT

docker run --name=ancilla -d --restart=unless-stopped --privileged --net host -v "$HOME/.ancilla":"$HOME/.ancilla" layerkeep/ancilla:staging-972ea36

docker run --name=ancilla -d --restart=unless-stopped --privileged --net host -v "$HOME/.ancilla":"/root/.ancilla" layerkeep/ancilla:staging-972ea36

-v <HOST_PATH>/wpa_supplicant.conf:<CONTAINER_PATH>/wpa_supplicant.conf cjimti/iotwifi

docker run -d --restart=unless-stopped --privileged --net host -v $HOME/wificfg.json:/cfg/wificfg.json cjimti/iotwifi
-v <HOST_PATH>/wpa_supplicant.conf:<CONTAINER_PATH>/wpa_supplicant.conf cjimti/iotwifi


docker run -d --restart=unless-stopped --privileged --net host -v $HOME/wifinohost.json:/cfg/wificfg.json cjimti/iotwifi


Expand sd card
`sudo raspi-config --expand-rootfs`

Camera:

v4l2-ctl -d /dev/video0 --list-formats
3 changes: 2 additions & 1 deletion SetupImage.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ From Local Device: Copy ancilla.service, ancilla.sh, wificfg.json, config.json t

scp -r /path/to/ancilla/ancilla.service pi@192.XXX.XXX.XXX:/home/pi/ancilla.service
scp -r /path/to/ancilla/ancilla.sh pi@192.XXX.XXX.XXX:/home/pi/ancilla.sh
scp -r /path/to/ancilla/.env pi@192.XXX.XXX.XXX:/home/pi/.env

scp -r /path/to/ancilla/ancilla/wificfg.json pi@192.XXX.XXX.XXX:/home/pi/.ancilla/wificfg.json
scp -r /path/to/ancilla/ancilla/config.json pi@192.XXX.XXX.XXX:/home/pi/.ancilla/config.json
Expand Down Expand Up @@ -125,7 +126,7 @@ This will allow the ancilla script to generate a new one.

# Auto Resize Partition

sudo vi /boot/cmdline.txt
sudo vi /boot/cmdline.txt
`console=serial0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh`

// Maybe
Expand Down

0 comments on commit 46a6af3

Please sign in to comment.