Skip to content

Conversation

@akbar-kurnia1
Copy link

This PR fixes issue #5 by dynamically selecting the surf data for the current hour instead of defaulting to the first index (00:00).

Changes:

  • Updated get_current_conditions in data_fetcher.py.
  • Used datetime.now().hour to fetch the correct hourly data index.
  • Added a fallback to index 0 if the current hour data is unavailable.

@akbar-kurnia1
Copy link
Author

Sorry, I accidentally closed this PR! Reopening it now. Ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant