Skip to content

Repository files navigation

SunSmart UV Tracker

UV, or ultraviolet light, is a big problem during the summer. My app, the SunSmart UV Tracker, educates people about UV protection and provides skin cancer awareness and protection tips based on the information you put in the tracker. The tracker's uses vary, from a real-time UV-tracking map that provides data for specific places to a camera that analyzes your skin tone to make an accurate report of skin protection measures you should take throughout the day.

Project Contents

  • SunSmartUVtracker.py - A Python app that:
    • accepts a city name from the user
    • looks up matching locations via the Open-Meteo geocoding API
    • fetches the current UV index for the selected location
    • displays UV guidance and optional raw API output
  • index.html - Main SunSmart home page.
  • tracker.html - A more advanced UV tracker page with a camera that analyzes your skin tone to make an accurate report of skin protection measures you should take throughout the day.
  • tracker-basic.html - A UV tracker page with pure facts for a simpler experience.
  • map-tracker.html - A real-time UV-tracking map that provides data for specific places

Getting Started

Use the app

  • Enter a city name like Las Vegas, NV or Paris, France.
  • Select the correct location from the list of matches.
  • View the current UV index and safety guidance.
  • Optionally click Show raw API response to inspect the JSON data.

Some Screenshots of the App

image image image image image

Notes

  • The app uses the Open-Meteo geocoding API, forecast API, and OpenStreetMap API

.

About

SunSmart is a project that uses a Streamlit app to look up a city, fetch the current UV index from Open-Meteo, and show sunscreen safety guidance alongside uv tracker pages.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages