From e1bcfb2b6ea412ac321c9bf8c81c2dc13fe92f15 Mon Sep 17 00:00:00 2001 From: cediackermann Date: Thu, 16 Apr 2026 10:08:51 +0200 Subject: [PATCH] add local IP address output in script --- setup.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 14dba55..1a539de 100755 --- a/setup.sh +++ b/setup.sh @@ -268,7 +268,14 @@ echo -e "${GREEN}✓ All automated steps completed successfully!${NC}" echo "" echo "Your RIoT AI system should now be ready to use." echo "" -echo "Access the web interface at: ${BLUE}http://localhost:3000${NC}" +echo -e "Access the web interface at: ${BLUE}http://localhost:3000${NC}" + +# Get local IP address +LOCAL_IP=$(ipconfig getifaddr en0 2>/dev/null || ipconfig getifaddr en1 2>/dev/null || echo "Unable to detect") +if [ "$LOCAL_IP" != "Unable to detect" ]; then + echo -e "From other devices on the network: ${BLUE}http://${LOCAL_IP}:3000${NC}" +fi + echo "" echo "Useful commands:" echo " - View Onyx logs: cd ~/onyx_data && docker compose logs -f"