add local IP address output in script

This commit is contained in:
cediackermann 2026-04-16 10:08:51 +02:00
parent aea30264d4
commit e1bcfb2b6e

View file

@ -268,7 +268,14 @@ echo -e "${GREEN}✓ All automated steps completed successfully!${NC}"
echo "" echo ""
echo "Your RIoT AI system should now be ready to use." echo "Your RIoT AI system should now be ready to use."
echo "" 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 ""
echo "Useful commands:" echo "Useful commands:"
echo " - View Onyx logs: cd ~/onyx_data && docker compose logs -f" echo " - View Onyx logs: cd ~/onyx_data && docker compose logs -f"