why does octoprint pin code work on the local network and not on the public network?
my code is in string file its open my printer lamp or my printer ups.
i try with my local ip 192.168.1.1 and public ip example 00.000.000.00 its run correct.
but i try it with my phone octopi app not run. i dont understand why?
how can I solve this problem?
.
I'm really not sure what you mean by
Also I'm not sure where you got a pin code? Is it some kind of plugin?
thanks for reply
ssh code
/home/pi/scripts/lambKapa
end its
code
#!/bin/bash
gpio mode 8 out
gpio write 8 0
this similar
oh okay you want to run a shell script remotely, right?
And where is this pin code you're talking about?
yes its shell scripts.
my raspberry pi3 pin GPIO 22and 27
Oh now I get it. The pin code is the shell script. When you write "pin code" ppl assume you mean some kind of authentication code.
Ok now step by step. How do you run the script? Did you embed it into octoprint like in the config.yaml or in some kind of plugin?
i use octoprint app but not run this code with public ip
I see - but you can connect to octoprint itself with the app on a plublic ip and the command works on your local network with the app?