···11# Inkpress
2233-<img src="https://cachet.dunkirk.sh/emojis/inky/r" width="150" align="right">
33+<img src="https://cachet.dunkirk.sh/emojis/inky/r/" width="130" align="right">
4455> ### More deets coming soon 👀
66> An open-source, eink-based, rpi zero 2 w powered, camera.
77+88+## Setup
99+1010+Put raspberry pi os lite 64-bit onto an SD card using the Raspberry Pi Imager and in the configureation step make sure to 1) add your SSH key and 2) set the user:password to `inky:inkycamera`. Oh and also make sure to add your wifi creds so we can update and install packages.
1111+1212+Next you need to configure network over usb so we can ssh in easily and be able to access the photo webserver.
1313+1414+Before sticking the card into the rpi, navigate to the boot partition and edit:
1515+1616+`config.txt` - add to bottom:
1717+```txt
1818+dtoverlay=dwc2
1919+```
2020+2121+and `cmdline.txt` - apphend to the only line:
2222+```txt
2323+modules-load=dwc2,g_ether
2424+```
2525+2626+Create empty `ssh` file in boot partition to enable SSH or just click the button in the RPI Imager gui.
2727+2828+now ssh in:
2929+```bash
3030+ssh ink@inkpress.local
3131+# Default password: inkycamera
3232+```
3333+3434+The firmware instructions are in [`src/README.md`](src/README.md)
3535+3636+### Troubleshooting
3737+- Ensure you are using the DATA port, not power-only
3838+- Some systems may need USB Ethernet gadget drivers
739840<p align="center">
941 <img src="https://raw.githubusercontent.com/taciturnaxolotl/carriage/master/.github/images/line-break.svg" />
+47
src/README.md
···11+### Installing and Setting Up the Camera Server
22+33+First, ensure you have the camera module enabled and working:
44+55+```bash
66+rpicam-still -o image.jpg
77+```
88+99+Next, create the camera service file:
1010+1111+```bash
1212+sudo vi /etc/systemd/system/camera.service
1313+```
1414+1515+Create a directory for storing photos:
1616+1717+```bash
1818+mkdir photos
1919+```
2020+2121+Install required Python packages:
2222+2323+```bash
2424+sudo apt update
2525+sudo apt install python3-picamera2
2626+sudo apt install python3-websockets
2727+```
2828+2929+Finally start the camera service:
3030+3131+```bash
3232+sudo systemctl daemon-reload
3333+sudo systemctl enable camera.service
3434+sudo systemctl start camera.service
3535+```
3636+3737+You can check the status with:
3838+3939+```bash
4040+sudo systemctl status camera
4141+```
4242+4343+Or run the camera server directly with:
4444+4545+```bash
4646+python3 camera_server.py
4747+```