Skip to content

Commit f334574

Browse files
welcome
1 parent 938f74e commit f334574

File tree

1 file changed

+11
-0
lines changed
  • src/devcontainers/base/src/.devcontainer/nhsnotify

1 file changed

+11
-0
lines changed

src/devcontainers/base/src/.devcontainer/nhsnotify/welcome.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,17 @@ echo
394394
# Show weather
395395
show_weather
396396

397+
# Show wttr.in output
398+
echo -e "${CYAN}${BOLD}🌤️ wttr.in Weather Report${NC}"
399+
encoded_location=$(echo "$WEATHER_LOCATION" | sed 's/ /+/g')
400+
wttr_output=$(curl -s --max-time 5 "wttr.in/${encoded_location}?1" 2>/dev/null)
401+
if [ -n "$wttr_output" ]; then
402+
echo "$wttr_output"
403+
else
404+
echo -e "${YELLOW}⚠️ wttr.in service unavailable${NC}"
405+
fi
406+
echo
407+
397408
# Feature showcase
398409
echo -e "${GREEN}${BOLD}🚀 READY TO DEVELOP WITH:${NC}"
399410
echo

0 commit comments

Comments
 (0)