monitor icon indicating copy to clipboard operation
monitor copied to clipboard

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

Open labasu-helpme-ronda opened this issue 1 year ago • 3 comments

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

labasu-helpme-ronda avatar May 25 '23 15:05 labasu-helpme-ronda

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).

urnlahzer avatar Feb 04 '24 12:02 urnlahzer

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

labasu-helpme-ronda avatar Jun 25 '24 02:06 labasu-helpme-ronda

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 https://github.com/eclipse/mosquitto/issues/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

Chao-chao00 avatar Aug 14 '24 10:08 Chao-chao00