Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Pi Zero W installation
#1
I have Pi Zero W and having an issue installing Moode 6.4.  I copied "wpa_supplicant.conf" to boot partition.

country=us
update_config=1
ctrl_interface=/var/run/wpa_supplicant


network={
scan_ssid=1
ssid="MyNetworkSSID"
psk="MyNetworkPWD"
}

Did I configure the "wpa_supplicant.conf" incorrectly?
Reply
#2
Manually making the wpa_supplicant file won't work. Just let the Zero come up in AP mode, http://moode.local and then enter said and pwd via Network Config.

Another option is to use the moodecfg.txt file on a fresh never booted image.
https://github.com/moode-player/moode/bl.../setup.txt
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(12-05-2019, 06:35 PM)Tim Curtis Wrote: Manually making the wpa_supplicant file won't work. Just let the Zero come up in AP mode, http://moode.local and then enter said and pwd via Network Config.

Another option is to use the moodecfg.txt file on a fresh never booted image.
https://github.com/moode-player/moode/bl.../setup.txt

I tried the 2nd method but did not work.
I created moodecfg.txt and copied to boot partition on a fresh never booted image.  I'm not sure what I'm doing wrong.

[names]
hostname=moode
browsertitle=moOde Player
airplayname=Moode Airplay
spotifyname=Moode Spotify
bluetoothname=Moode Bluetooth
squeezelitename=Moode
upnpname=Moode UPNP
dlnaname=Moode DLNA
mpdzeroconf=Moode MPD

[services]
airplaysvc=0
upnpsvc=0
dlnasvc=0

[network]
wlanssid=MySSID
wlansec=wpa
wlanpwd=MyPassword
wlancountry=US
apdssid=Moode
apdchan=6
apdpwd=moodeaudio

[other]
timezone=America/Detroit
themename=Default
accentcolor=Emerald
Reply
#4
@kwatch

Is your WiFi SSID literally “MySSID” and your WiFi password literally “MyPassword”? Probably not, in which case you have to edit your actual credentials into this moodecfg.txt before you use it.

Regards,
Kent
Reply
#5
(12-05-2019, 09:43 PM)TheOldPresbyope Wrote: @kwatch

Is your WiFi SSID literally “MySSID” and your WiFi password literally “MyPassword”? Probably not, in which case you have to edit your actual credentials into this moodecfg.txt before you use it.

Regards,
Kent

I used My own SSID and PWD.

I configured a SD card using Pi 3 and it works fine in pi zero now.
Reply
#6
IIRC the ZeroW takes several minutes to complete auto-config.

I forgot to mention that auto-config leaves a log file. Example below.

Code:
pi@rp2:~ $ cat ./autocfg.log
20191126 083153 autocfg: Auto-configure initiated
20191126 083153 autocfg: Configuration file parsed
20191126 083153 autocfg: - Names
20191126 083153 autocfg: Host name: rp2
20191126 083153 autocfg: Browser title: RP2 Player
20191126 083153 autocfg: Bluetooth: RP2 Bluetooth
20191126 083153 autocfg: Airplay: RP2 Airplay
20191126 083153 autocfg: Spotify: RP2 Spotify
20191126 083153 autocfg: Squeezelite: RP2
20191126 083153 autocfg: UPnP: RP2 UPNP
20191126 083153 autocfg: DLNA: RP2 DLNA
20191126 083153 autocfg: MPD zeroconf: RP2 MPD
20191126 083153 autocfg: - Network (wlan0)
20191126 083153 autocfg: SSID: THE_SSID
20191126 083153 autocfg: Security: wpa
20191126 083153 autocfg: Password: THE_PASSWORD
20191126 083153 autocfg: PSK: THE_GENERATED_PSK
20191126 083153 autocfg: Country: US
20191126 083153 autocfg: - Network (apd0)
20191126 083154 autocfg: SSID: THE_AP_SSID
20191126 083154 autocfg: Password: moodeaudio
20191126 083154 autocfg: PSK: THE_GENERATED_PSK
20191126 083154 autocfg: Channel: 6
20191126 083154 autocfg: - Services
20191126 083154 autocfg: Airplay: Off
20191126 083154 autocfg: UPnP: Off
20191126 083154 autocfg: DLNA: Off
20191126 083154 autocfg: - Other
20191126 083154 autocfg: Time zone: America/Detroit
20191126 083154 autocfg: Theme name: Default
20191126 083154 autocfg: Accent color: Amethyst
20191126 083154 autocfg: Configuration file deleted
20191126 083154 autocfg: Auto-configure complete
20191126 083154 autocfg: System rebooted
pi@rp2:~ $
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
@kwatch

Quote:I configured a SD card using Pi 3 and it works fine in pi zero now.

Glad you solved your problem but the preconfiguration technique works fine with an RPi0W (I didn't doubt it but confirmed it anyway with a new install of moOde 6.4 just now).

By any chance did you prepare the moodecfg.txt using Microsoft Windows? If this file has MS-DOS line endings then things get 'interesting'. I just posted an issue against the moOde githut repo.

Regards,
Kent
Reply
#8
I committed a potential fix but I don't have a means to test it out (no Windows box).
https://github.com/moode-player/moode/co...51c156eb5c

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
@Tim Curtis

The package dos2unix is available in many Linux distros, including Raspbian.

Code:
pi@moodeLR:~ $ apt-cache show dos2unix
Package: dos2unix
Version: 7.4.0-1
Architecture: armhf
...blah...blah...blah...
Description: convert text file line endings between CRLF and LF
This package contains utilities dos2unix, unix2dos, mac2unix,
unix2mac to convert the line endings of text files between UNIX (LF),
DOS (CRLF) and Mac (CR) formats.
...

It's 30 year-old code (!) but it still comes in handy sometimes. Used it a lot back in the day.

Regards,
Kent
Reply
#10
I have several pi zero w, and the install was straight forward with moode wifi hotspot working.
Oce connected to hotspot i was able to set/choose my own wifi.
Reply


Forum Jump: