Based on CustomPiOS
This repository contains the official OpenMowerOS image for running the OpenMower project.
Currently this is based on the latest RaspberryPi OS with the following changes:
-
Comitup opens a WiFi hotspot if no known network can be found. Connect to it with any device to connect the robot to your network.
-
podman fetches the latest version of the open-mower software and runs it for you automatically.
-
OpenOCD is installed with GPIO support, so you can flash your pico's firmware from the Pi4
-
socat allows you to redirect your Ardusimple to u-center for configuration
-
hostname: openmower
-
username: openmower
-
password: openmower CHANGE IT! (use
passwdfor that) -
ssh: enabled on port 22
-
hotspot SSID: OpenMower-<somenumber>
-
default hotspot password: OpenMower
-
mower_config.txt: Is in the /boot directory and can be edited with any PC after flashing the SD card
-
mower_version.txt: Is in the /boot directory and can be used to select the version to run.
-
Burn the latest image available to an SD card.
-
Open the SD cards
bootpartition and there theopenmowerfolder. -
Edit the
hotspot.txtfile to configure the fallback hotspot. Change the password and remember it!You find a
hotspot.examplein there too.On boot the system will apply the settings and rename the
hotspottohotspot.settings-applied. -
(Open the
openmower_version.txtand read its explanation.) -
Edit the
mower_config.txtfile:-
check for the latest revision of that file here.
-
if the files differ apply the newest changes.
-
add your changes to that file.
-
-
Eject the card, put it in the mower (do not close the mower yet) and turn it on.
-
After a short time the hotspot wifi should appear - connect to it.
-
Check your router for the mowers IP address (and optionally set a static one)
-
SSH to your mower (the default credentials are above)
-
Change you password! (
passwd) -
If you have
mower_config.txtandopenmower_version.txtconfigured you can now start openmower by executingsudo systemctl start openmower- on slow SD cards the first start can take ~10min +
-
check if everything runs fine by accesing the logs
sudo podman logs -f openmower -
If everything works you can set openmower to run at boot
sudo systemctl enable openmower
- If you later want to edit
mower_config.txtit is located on the pi at/boot/openmower/mower_config.txt
- theoretically there is an auto update feature for podman but is it not tested yet
-
sudo systemctl status openmower -
sudo journalctl -u openmower(add-fto keep it open and it will update -Ctrl + Cto exit) -
sudo podman logs openmower(add-fto keep it open and it will update -Ctrl + Cto exit)
Use sudo podman exec -it openmower /openmower_entrypoint.sh /bin/bash to access the ROS enviroment and then use your command (e.g. rostopic echo)
