For Non-Technical Users - Complete step-by-step instructions to get your HiveControl system running!
- Raspberry Pi (Model 3B, 3B+, 4, 5, or Zero W)
- MicroSD Card (16GB or larger recommended)
- Computer (Windows, Mac, or Linux) to prepare the SD card
- Internet Connection for your Raspberry Pi
- Power Supply for your Raspberry Pi (5V USB power adapter)
- Optional: Monitor, keyboard, and mouse for initial setup (or use SSH)
The easiest way to install Raspberry Pi OS is using the official Raspberry Pi Imager tool.
- Download the Imager:
- Go to: https://www.raspberrypi.com/software/
- Click the download button for your operating system (Windows, macOS, or Ubuntu)
- Install the downloaded program
-
Insert your microSD card into your computer (you may need an SD card adapter)
-
Open Raspberry Pi Imager
-
Choose Operating System:
- Chose Your Raspberry Device, click next
- Choose OS
- Select "Raspberry Pi OS (64-bit)" or "Raspberry Pi OS (32-bit)"
- For Pi5, Pi 4 or Pi 3B+: Use 64-bit
- For older Pi models: Use 32-bit
- Select "Raspberry Pi OS (64-bit)" or "Raspberry Pi OS (32-bit)"
- Note: You can use the "Lite" version (under Raspberry Pi OS (other), but you'll have to be comfortable with command line only.
-
Choose Storage:
- Click "Choose Storage"
- Select your SD card from the list
- WARNING: Make sure you select the correct drive! All data on this drive will be erased.
-
Configure Settings (Important!):
- Click the gear icon ⚙️ (or press Ctrl+Shift+X)
- Set hostname: Enter a name like
hivecontrol(optional but helpful) (REMEMBER THIS NAME) - Enable SSH: Check "Enable SSH" and select "Use password authentication"
- Set username and password:
- Username:
pi(recommended, or choose your own) - Password: Choose a secure password and remember it!
- Username:
- Configure WiFi (if using WiFi):
- Enter your WiFi network name (SSID)
- Enter your WiFi password
- Select your country
- Set locale settings:
- Set timezone to your location
- Set keyboard layout to match your keyboard
- Enable Raspberry Connect (Optional - for remote access):
- Check "Enable Raspberry Connect"
- This allows you to access your Raspberry Pi remotely from anywhere
- You'll need a Raspberry Pi ID account (free at raspberrypi.com)
- After first boot, sign in to link your device to your Raspberry Pi ID
- Great for managing your hive remotely when away from home!
- Click "Save"
-
Write to SD Card:
- Click "Write"
- Confirm you want to erase the SD card
- Wait for the process to complete (5-10 minutes)
- When done, click "Continue" and remove the SD card
- Insert the SD card into your Raspberry Pi
- Connect ethernet cable (if not using WiFi)
- Connect power to start the Raspberry Pi
- Wait 2-3 minutes for first boot
Option A: Using a Monitor
- Connect a monitor and keyboard to your Raspberry Pi
- You'll see the desktop after boot
- Open Terminal (black monitor icon on the taskbar)
- Skip to Step 3
Option B: Using SSH (Headless)
- On Windows: Download and install PuTTY
- On Mac/Linux: Open Terminal (built-in)
Find your Pi's IP address:
- Try connecting to the hostname:
ssh pi@hivecontrol.local(replace hivecontrol.local with YOURHOSTNAME.local) - OR use your router's admin page to find the IP address
- OR use a network scanner app like Angry IP Scanner to find devices with port 22 and 80 open
Connect via SSH:
ssh pi@YOURHOSTNAME.local
# OR if using IP address:
ssh pi@192.168.1.XXX- Enter the password you set earlier
- You should now see a command prompt
We've made installation super simple! Just run these commands:
Copy and paste this entire command into your terminal:
curl -sSL https://raw.githubusercontent.com/rcrum003/HiveControl/master/easy-install.sh | sudo bashWhat this does:
- Downloads the installation script
- Automatically runs it with administrator privileges
- Installs all necessary software and dependencies
- Sets up the web interface
- Configures everything automatically
If you need special features, use these commands instead:
For Bee Counter Camera (takes 6-8 hours to install):
curl -sSL https://raw.githubusercontent.com/rcrum003/HiveControl/master/easy-install.sh | sudo bash -s -- -bFor Remote Desktop Support (Windows users):
curl -sSL https://raw.githubusercontent.com/rcrum003/HiveControl/master/easy-install.sh | sudo bash -s -- -xFor Touchscreen Keyboard:
curl -sSL https://raw.githubusercontent.com/rcrum003/HiveControl/master/easy-install.sh | sudo bash -s -- -kFor All Options:
curl -sSL https://raw.githubusercontent.com/rcrum003/HiveControl/master/easy-install.sh | sudo bash -s -- -bxkThe installation will:
- Update your Raspberry Pi (5-10 minutes)
- Download HiveControl from GitHub
- Install web server (Apache and PHP)
- Install database (SQLite)
- Compile sensor software (20-30 minutes)
- Set up automatic data collection
- Ask you to set an admin password
- Ask you to configure timezone
- Reboot automatically
Total time: Between 5-60 minutes depending on the Raspberry Pi model (or 6-8 hours with Bee Counter option)
During installation, you'll see lots of text scroll by - this is normal!
Near the end of installation, you'll see:
Please set an admin password for http://127.0.0.1/admin/ access:
New password:
Enter a secure password - you'll use this to access the admin interface.
Enter it again when prompted to confirm.
After setting the password, you'll see a menu to select your timezone:
- Use arrow keys to navigate
- Select your geographic area (e.g., "America")
- Press Enter
- Select your city/timezone
- Press Enter
After installation completes, your Raspberry Pi will automatically reboot.
Wait 1-2 minutes after reboot, then:
-
Find your IP address (shown at end of installation, or check your router)
-
Open a web browser on any computer on your network
-
Go to:
http://YOUR-PI-IP-ADDRESS/- Example:
http://192.168.1.100/ - Or try:
http://YOURHOSTNAME.local/
- Example:
-
Login when prompted:
- IMPORTANT: You'll immediately see a username/password prompt
- Username:
admin - Password: (the password you set during Step 4 of installation)
- This is the admin password you created when the installer asked you to set it
-
You should now see the First-Time Setup Wizard!
After logging in with your admin credentials, you'll see the setup wizard:
-
Enter Hive Name: Give your hive a name (e.g., "Backyard Hive 1")
- Use only letters, numbers, dashes, and underscores
- No spaces or special characters
-
Enter HiveControl.org API Key (Optional):
- Go to hivecontrol.org and create an account
- Get your API key from Settings → API
- This allows data sharing with the community
-
Enter Location: City and State/Province
-
Click Save
Note: The setup wizard runs on first access only. If you need to change these settings later, go to Admin → Settings → Basic.
To configure sensors and advanced settings:
- Go to:
http://YOUR-PI-IP-ADDRESS/admin/ - Enter username:
admin - Enter the password you set during installation
- Configure your sensors in "Settings → Instruments"
Now that HiveControl is installed, you can connect your sensors:
-
Shut down your Raspberry Pi:
sudo shutdown -h now
-
Unplug power and wait 30 seconds
-
Connect your sensors:
- Weight sensor (HX711)
- Temperature sensors (DHT22, BME280, etc.)
- Camera (if using)
- See Sensor Guide for wiring diagrams
-
Power back on
-
Configure sensors:
- Go to Admin → Settings → Instruments
- Enable your sensors
- Set calibration values
- Click "Read Sensors" to test
If you enabled Raspberry Connect during SD card imaging, you can access your HiveControl system from anywhere in the world!
Raspberry Connect is a free service from Raspberry Pi that allows you to:
- Access your Raspberry Pi remotely via web browser
- No need to configure port forwarding on your router
- Secure connection through Raspberry Pi's servers
- Access terminal, VNC, and file sharing remotely
-
Create a Raspberry Pi ID (if you don't have one):
- Go to id.raspberrypi.com
- Click "Create account"
- Follow the registration process
-
Link Your Raspberry Pi:
After your Pi boots for the first time, you need to sign in:
If using a monitor:
- You'll see a prompt to sign in to Raspberry Connect
- Enter your Raspberry Pi ID credentials
- Your device will be linked automatically
If using SSH (headless):
# Sign in to Raspberry Connect rpi-connect signin- Follow the on-screen instructions
- You'll need to open a URL in your web browser
- Enter the code shown on your Raspberry Pi
- Confirm the linking
-
Access Your Pi Remotely:
- Go to connect.raspberrypi.com
- Sign in with your Raspberry Pi ID
- Click on your device (e.g., "hivecontrol")
- Choose connection type:
- Screen sharing - See the desktop
- Shell - Terminal access
- File browser - Transfer files
Once connected, you can:
- Access the web interface: Open shell and run
hostname -Ito get IP, then navigate tohttp://IP-ADDRESS/ - Configure sensors remotely
- Download data backups
- Troubleshoot issues
- Update the system
Raspberry Connect is secure, but remember:
- Keep your Raspberry Pi ID password strong
- Enable two-factor authentication on your Raspberry Pi ID
- Only use Raspberry Connect on trusted networks
- Your Raspberry Pi connects outbound to Raspberry Pi servers (no inbound ports opened)
Can't sign in?
# Check if rpi-connect is running
sudo systemctl status rpi-connect
# Restart the service
sudo systemctl restart rpi-connect
# Sign in again
rpi-connect signinDevice not showing up?
- Make sure you signed in with the same Raspberry Pi ID used during setup
- Check internet connection:
ping -c 3 raspberrypi.com - Wait a few minutes for device to register
Want to disable Raspberry Connect?
# Disable the service
sudo systemctl disable rpi-connect
sudo systemctl stop rpi-connect-
Verify IP address:
hostname -I
-
Check if Apache is running:
sudo systemctl status apache2
-
Try the local address if you're using a monitor:
- Go to:
http://127.0.0.1/
- Go to:
-
Check internet connection:
ping -c 3 google.com
-
Try installing again - it's safe to re-run
-
Check logs:
sudo tail -50 /var/log/apache2/error.log
If you forgot the password you set during installation:
Reset it with:
cd /home/HiveControl/www/
sudo htpasswd -c .htpasswd adminEnter a new password when prompted, then confirm it.
You can now login with username admin and your new password.
- Check the Full Documentation
- Visit HiveControl.org community forums
- Report issues on GitHub
Here are some useful commands:
Reboot Raspberry Pi:
sudo rebootShut down Raspberry Pi:
sudo shutdown -h nowCheck HiveControl version:
cat /home/HiveControl/VERSIONUpdate HiveControl:
sudo /home/HiveControl/upgrade.shView system logs:
sudo journalctl -xeTest sensors manually:
sudo /home/HiveControl/scripts/currconditions.shOnce everything is working:
- Set up Raspberry Connect (if enabled) to access your hive remotely from anywhere
- Monitor your dashboard for 24 hours to ensure data is collecting
- Set up weather integration (Settings → Site Configuration)
- Configure Growing Degree Days if tracking bee development
- Set up email notifications for alerts
- Join the community at hivecontrol.org
- Share your data with hivetool.org research project
Weekly:
- Check that data is being collected
- Verify sensor readings are accurate
Monthly:
- Update HiveControl:
sudo /home/HiveControl/upgrade.sh - Update Raspberry Pi OS:
sudo apt update && sudo apt upgrade -y - Backup your database (Admin → Backup & Restore)
Yearly:
- Clean out old data if needed (Admin → System Commands)
- Calibrate weight sensors
- Check all sensor connections
Need Help?
- Documentation: README.md
- Community: hivecontrol.org
- Issues: GitHub Issues
Found a Bug? Please report it with:
- HiveControl version
- Raspberry Pi model
- Raspberry Pi OS version
- Description of the problem
- Any error messages
Congratulations! You now have a fully functional HiveControl system. Happy beekeeping! 🐝