GoPiCam is a web-based interface for managing and controlling a Raspberry Pi camera using RaspiMJPEG, inspired by the RPi-Cam-Web-Interface project. Unlike the original, GoPiCam is implemented in Golang, which eliminates the need to install additional software like PHP or a database on the Raspberry Pi.
- Web-based interface for Raspberry Pi camera control
- Secure HTTP/HTTPS server support
- User authentication and session management
- Camera preview, start/stop recording, motion detection, and timelapse functionality
- Configuration management
- Clone the repository:
git clone https://github.com/jempe/gopicam.git
cd gopicam- Build the project:
go build -o bin/gopicam cmd/gopicam/main.go- Run the application:
./bin/gopicamThe configuration files are located in the default path ~/.gopicam. You can specify a different path using the -config flag.
./bin/gopicam -config /path/to/config-config: Define the path of the config folder-reset: Reset admin username and password-help: Show help-insecure: Run web server without HTTPS-port: Web server port (default: 443)-debug: Print all debug messages
If the admin username and password are not set, or if you use the -reset flag, you will be prompted to create an admin account.
To run the server with HTTPS:
./bin/gopicamTo run the server without HTTPS:
./bin/gopicam -insecureContributions are welcome! Please submit a pull request or open an issue to discuss improvements or new features.