Rocketboy235
Regular Contributor
Hello,
I'm trying to figure out the best way to automatically execute the script on the AiMesh node as soon as it connects to the primary router and then has a connection to the internet.
I was looking around on the forums and trying to research but unfortunately nothing came up for me.
I am wondering if I can make use of wan-start or wan-event that is (since wan-start is deprecated). I then wondered if the AiMesh node would execute wan-event scripts since it isn't the primary router so I checked the wan IP address on the nodes and it came back as 0.0.0.0 so I'm not sure if that option would work. Not sure if there is another option out there that I can consider to automatically execute the script as soon as an internet connection is established for the node. I have a script setup for my main router. Another added benefit is if I get emails from both router and nodes at the same time, I'll know that it might be a power outage or modem issue and not solely a router/node issue.
Reason for doing this is so it can help me determine if the node crashes, or just simply loses connection (since it is not always stable) so I just want to gather some metrics.
Thanks for any help offered!
I'm trying to figure out the best way to automatically execute the script on the AiMesh node as soon as it connects to the primary router and then has a connection to the internet.
I was looking around on the forums and trying to research but unfortunately nothing came up for me.
I am wondering if I can make use of wan-start or wan-event that is (since wan-start is deprecated). I then wondered if the AiMesh node would execute wan-event scripts since it isn't the primary router so I checked the wan IP address on the nodes and it came back as 0.0.0.0 so I'm not sure if that option would work. Not sure if there is another option out there that I can consider to automatically execute the script as soon as an internet connection is established for the node. I have a script setup for my main router. Another added benefit is if I get emails from both router and nodes at the same time, I'll know that it might be a power outage or modem issue and not solely a router/node issue.
Reason for doing this is so it can help me determine if the node crashes, or just simply loses connection (since it is not always stable) so I just want to gather some metrics.
Thanks for any help offered!