2019-07-10, 01:31 AM
(2019-07-09, 02:43 PM)ironman Wrote: For what it's worth, I got some success with the tinypilot beta image, being able to make it a client to the openplotter access point.
First, using the beta image, I found in the webapp (http://pypilot.io) under Configuration an option Configure WIFI. This was not in the stable image. I configured that ("Managed-client"), but when hitting Submit it flicked back to "Master - AP" so that was not very promising. Indeed after a reboot the AP was gone. Editing the file /home/tc/.pypilot/networking.txt, as suggested in the screen, was also to no avail.
What finally worked was to create two files on /mnt/mmcblk0p2/tinypilot/. This location is persistent. If you put those files anywhere else they get lost over a reboot.
The first file carries the wifi config (so fill in your own wifi passphrase), the second I run manually for now.
/mnt/mmcblk0p2/tinypilot/wpa_supplicant.conf:
network={
ssid="openplotter"
psk="secret"
}
/mnt/mmcblk0p2/tinypilot/set_wlan.sh
wpa_supplicant -B -i wlan0 -c /mnt/mmcblk0p2/tinypilot/wpa_supplicant.conf
ifconfig wlan0 10.10.10.3 netmask 255.255.255.0 up
Thanks for that. Actually I will not be sailing for a few weeks, so I will wait for the next beta image that Sean has promised.
For you, you can put your set_wlan.sh in /home/tc/.pypilot/. or in /opt/ and add a call to it in the right place in /opt/bootlocal.sh with the full path. Then save it all with: filetool.sh -b and reboot.
Anyway this should work.
--
Larry - s/v Katie Lee Passport 45 Ketch (For Sale) - somewhere in Taiwan
Larry - s/v Katie Lee Passport 45 Ketch (For Sale) - somewhere in Taiwan