Skip to content

Commit

Permalink
WIP Auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleshot committed Feb 11, 2024
1 parent bbbf95c commit cff1da2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,27 @@
* https://www.distrelec.ch/de/kunststoffgehaeuse-82x80x55mm-dunkelgrau-abs-ip67-rnd-components-rnd-455-01032/p/30128636


'''bash
wget -O - https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/script.sh | sudo sh
'''
## Installation
### Initial Setup
```bash
wget -O - https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/script.sh | sudo sh
```
### Update
```bash
wget -O - https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/updateScript.sh | sudo sh
```

# Next TODOs
- [ ] Modularization -> graphics
- [ ] Advanced scheduling (start and end date)
- [ ] Test raspberry pi hq camera
- [ ] Improved settings validation
- [ ] Improve setup script
- [ ] Primitive software update possibility

-> get sample images for image processing
-> get solar panel

# TODOs
## Hardware
- [X] Upgrade to Witty Pi 4 (non mini)
- [X] Upgrade to Raspberry Pi Zero 2 W
Expand Down Expand Up @@ -107,7 +123,7 @@ wget -O - https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/script.sh

## General
- [ ] Extend documentation + improve installation script
* Add instruction: camera needs to be set to UTC time
* Add instruction: camera needs to be set to UTC time -> Should be done by installation script
* Add instruction: default camera state needs to be set to "on"
* Add instruction: Only works with raspberry pi os bullseye
- [ ] Open source the project
Expand Down
10 changes: 9 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,18 @@ echo '==========================================================================
wget -O /home/pi/main.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/main.py
sudo chmod 777 /home/pi/main.py # Execution permissions

# Download sim7600x.py
# Download modules
wget -O /home/pi/sim7600x.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/sim7600x.py

# Download witty_pi_4.py
wget -O /home/pi/witty_pi_4.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/witty_pi_4.py

# Download settings.py
wget -O /home/pi/settings.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/settings.py

# Download fileserver.py
wget -O /home/pi/fileserver.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/fileserver.py

# Download config.yaml
wget -O /home/pi/config.yaml https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/config.yaml

Expand Down Expand Up @@ -129,6 +135,8 @@ sudo ufw enable
# wget https://www.uugear.com/repo/WittyPi4/install.sh
# sudo sh install.sh

# TODO: Add the updatescript to automatically update the software

# Add main.py to automatically run before wittyPi script
# echo "sudo /usr/bin/python3 /home/pi/main.py" >> /home/pi/wittypi/afterStartup.sh

Expand Down
5 changes: 5 additions & 0 deletions updateScript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
wget -O /home/pi/main.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/main.py
wget -O /home/pi/sim7600x.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/sim7600x.py
wget -O /home/pi/witty_pi_4.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/witty_pi_4.py
wget -O /home/pi/settings.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/settings.py
wget -O /home/pi/fileserver.py https://raw.githubusercontent.com/Eagleshot/GlacierCam/main/fileserver.py

0 comments on commit cff1da2

Please sign in to comment.