Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install/Setup process for Pi Zero W with latest 32bit lite Pi OS #425

Open
labasu-helpme-ronda opened this issue May 25, 2023 · 3 comments

Comments

@labasu-helpme-ronda
Copy link

I just built a number of these monitoring devices and ran into some trouble with setting up mosquitto. Thanks to another user that posted a fix here in Issues, I was able to get my install process down without any errors. Below is my step by step instructions. Hope this helps someone!

#newest version of pi os lite 32 bit from pi imager

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo reboot

sudo apt-get install pi-bluetooth

sudo reboot

#get repo key
wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key

#add repo
sudo apt-key add mosquitto-repo.gpg.key

#download appropriate lists file
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list

#update caches and install
sudo apt-cache search mosquitto
sudo apt-get update
sudo apt install mosquitto libwebsockets18=4.2.1-0mosquitto1~buster1
sudo apt-get install -f libmosquitto-dev mosquitto mosquitto-clients libmosquitto1

#install git
cd ~
sudo apt-get install git

#clone this repo
git clone https://github.com/andrewjfreyer/monitor.git

#enter monitor directory
cd monitor/

#(optional) switch to beta branch for latest updates and features (may be unstable)
git checkout beta

sudo apt-get install bluez-hcidump
sudo apt-get install bc
sudo bash monitor.sh

sudo nano mqtt_preferences

sudo nano known_static_addresses

sudo bash monitor.sh

sudo nano behavior_preferences

@urnlahzer
Copy link

Did you not use a 64 bit because of MQTT compatibility? I have to run 64 for another service on the Pi (open wake word).

@labasu-helpme-ronda
Copy link
Author

labasu-helpme-ronda commented Jun 25, 2024

I am using Pi Zero W's for this project which is only 32bit.

@Chao-chao00
Copy link

Chao-chao00 commented Aug 14, 2024

I just built a number of these monitoring devices and ran into some trouble with setting up mosquitto. Thanks to another user that posted a fix here in Issues, I was able to get my install process down without any errors. Below is my step by step instructions. Hope this helps someone!

#newest version of pi os lite 32 bit from pi imager

sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade -y sudo reboot

sudo apt-get install pi-bluetooth

sudo reboot

#get repo key wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key

#add repo sudo apt-key add mosquitto-repo.gpg.key

#download appropriate lists file cd /etc/apt/sources.list.d/ sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list

#update caches and install sudo apt-cache search mosquitto sudo apt-get update sudo apt install mosquitto libwebsockets18=4.2.1-0mosquitto1~buster1 sudo apt-get install -f libmosquitto-dev mosquitto mosquitto-clients libmosquitto1

#install git cd ~ sudo apt-get install git

#clone this repo git clone https://github.com/andrewjfreyer/monitor.git

#enter monitor directory cd monitor/

#(optional) switch to beta branch for latest updates and features (may be unstable) git checkout beta

sudo apt-get install bluez-hcidump sudo apt-get install bc sudo bash monitor.sh

sudo nano mqtt_preferences

sudo nano known_static_addresses

sudo bash monitor.sh

sudo nano behavior_preferences

At this step the
"sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list"
I have an error "HTTP request sent, awaiting response... 404 Not Found"

#download appropriate lists file
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list

So i look online and found this discussing the issue eclipse/mosquitto#2453 and message by KoenWindey for the solution. Basically since we cannot get the mosquitto-buster.list file from the broken link we create it in /etc/apt/sources.list.d/ folder and put the correct info in that specific format that it expects

After that fix it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants