Hi, I am developing a kiosk interface and I developed a macro command in Mainsail. This command allows the WiFi configuration of the Raspberry Pi. I am using the shell-command plugin here. I managed to pass the SSID information to the command, but. I cannot pass the password information, which is the 2nd params. Does anyone have an idea?
My Macro Command:
[gcode_macro WIFI]
gcode:
{% set ssid = params.SSID %}
{% set password = params.Password %}
RUN_SHELL_COMMAND CMD=wifi_connection PARAMS={ssid}{password}
My .sh File:
nmcli device wifi list
SSID=“$1”
PASSWORD=“$2”
sudo nmcli device wifi connect “$SSID” password “$PASSWORD”