Commit graph

131 commits

Author SHA1 Message Date
b4f0a5bf5d Add OpenWeatherMap weather forecasts. Closes #48
Show 8-day Bristol home weather on the index and weekends pages.
Show destination weather per day on the trip list and trip page.
Cache forecasts in ~/lib/data/weather/ and refresh via update.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 20:27:25 +00:00
61e17d9c96 Track dates of English school holidays
Fixes #168
2026-02-21 18:05:19 +00:00
7a50ea6016 Improve launch status UI and alert on SpaceDevs payload errors 2026-02-21 16:39:47 +00:00
b835956ea9 Show bootstrap alert after login. 2026-02-17 11:30:03 +00:00
e0b9e4e719 Switch from UniAuth to OpenID Connect 2026-02-17 11:25:55 +00:00
523dc78b35 Add overall airline, airport, and station stats to trip summary
Aggregate yearly stats into overall totals so the trip stats page
shows flight segments by airline, airports used, and stations used
in the summary section at the top.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 09:25:10 +00:00
f22772d12d Move trip new-country filtering into stats 2026-01-15 22:53:17 +00:00
91a74fd887 Add YAML output on debug page. 2025-11-14 16:16:54 +00:00
7e2b79c672 Serve conferences in iCalendar format. 2025-11-14 15:40:05 +00:00
77ea6a8afa Generate iCalendar for Thunderbird, etc. 2025-11-14 14:40:19 +00:00
6d899113ce Add map fixture. 2025-11-13 06:42:12 +00:00
b4126d04f8 Move two functions to agenda/trip.py 2025-11-03 12:36:13 +00:00
8901bc9bbb Bug fix 2025-08-01 06:21:22 +01:00
0e769c3de6 Replace fullcalendar with TOAST UI Calendar
Fixes #146
2025-07-24 23:10:23 +01:00
672ca4b849 Generalize and enhance yearly statistics
The accommodation page has been updated to provide a more comprehensive and dynamic view of travel statistics.

Previously, the page only displayed hard-coded statistics for total nights away and abroad for the year 2024. This required manual updates each year and didn't provide historical context.

This commit introduces the following changes:

*   **Dynamically Calculate Yearly Stats:** The `accommodation_list` view in `web_view.py` now calculates statistics for every year found in the accommodation data. It correctly handles stays that span across multiple years.
*   **Display All Years:** The `accommodation.html` template now iterates through a list of all calculated yearly stats, displaying a summary for each year automatically.
*   **Add Percentage of Year:** The template also calculates and displays what percentage of the year the "total nights" and "nights abroad" represent. This includes logic to correctly account for leap years (366 days) for an accurate calculation.

These changes make the statistics more informative and ensure the page remains relevant over time without needing further manual code adjustments.
2025-07-23 22:52:22 +01:00
13bb753a0b Add dynamic meteor shower calculations using PyEphem
- Replace hardcoded 2025 data with astronomically calculated dates
- Use solar longitude to determine precise meteor shower peak dates
- Calculate real-time moon phases for accurate viewing conditions
- Support for any year with automatic date calculations
- Include parent body information and meteor velocities
- Remove caching layer for real-time calculations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 13:44:40 +02:00
37e74404d5 Add meteor info page
Fixes #164
2025-07-16 12:42:21 +02:00
2203677146 Trip debug page needs user to be authenticated. 2025-07-16 12:12:47 +02:00
46091779f0 Format code with black, remove unused import. 2025-07-16 12:12:27 +02:00
0e2c95117c Add debug page for trip objects
Add /trip/<start>/debug endpoint that displays the complete trip object
data in pretty-printed JSON format with syntax highlighting. Includes
both raw data and computed properties for debugging purposes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 11:25:17 +02:00
af492750cb Add location tracking to weekend page
Weekend page now shows specific location (city and country) for each
Saturday and Sunday based on travel history:

- Analyzes flight arrivals and accommodation check-ins to determine exact location
- Shows "home" when at Bristol, UK
- Shows "City, 🏴 Country" format when traveling
- Handles multi-location trips by finding most recent travel within trip period
- Optimized to parse YAML files once instead of per-date lookup

Closes #191

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 03:59:35 +02:00
f41930f811 Use get_country for Schengen report 2025-07-15 18:12:11 +02:00
f499015466 Adjust weekend page high pithing
Don't highlight a week number when showing weekends for different year.

Example: https://edwardbetts.com/agenda/weekends?year=2100&week=1

Closes: #198
2025-07-15 17:48:44 +02:00
7f12282c42 Add week and year parameters to weekends page.
Fixes #190
2025-07-15 17:42:47 +02:00
d2c4fa69ee Implement Schengen Area Compliance Report
How many close am I to 90 days in the last 180.

Fixes #193.
2025-07-15 14:43:37 +02:00
63c7c54bfc Show CO₂ for flights on trip list. 2025-05-26 10:07:37 -05:00
f6fba93a54 Add optional date parameter for weekend. 2025-01-27 08:38:55 +00:00
f5a8676336 Weekend page to show full year.
Highlight current week.
2025-01-24 20:49:16 +01:00
2f574264e5 Show new badge next to new countries on travel stats page. 2025-01-24 20:19:25 +01:00
c3be926ff7 Current trip summary on index page
Closes: #169
2025-01-11 15:29:07 -06:00
d7b636784d now.date() 2025-01-11 15:18:45 -06:00
f4fc839926 Move code around 2024-11-13 15:52:02 +01:00
53f6d05e52 Bug fix to return 404 for unknown trip. 2024-11-13 14:36:49 +00:00
40bac83790 Remove old unused code. 2024-11-13 14:36:19 +00:00
9f1f64708f Remove old unused code. 2024-10-31 08:27:40 +00:00
a1cdf62eef Bug fix trip stats page 2024-10-16 06:36:26 +01:00
aad968a174 Unbooked flight great circle goes to airport (Closes: #179) 2024-10-13 09:39:02 +01:00
d2c6a778e3 Swtich to including future travel in trip stats page 2024-09-25 12:16:42 +01:00
259642ff52 Show current trip on home page 2024-08-11 12:51:06 +02:00
6e9604e4c1 Use as_date() from utils 2024-08-11 12:51:06 +02:00
cf298f261f Bug fix 2024-08-07 06:26:42 +01:00
23aa70bb84 Add option to filter launches by orbit 2024-08-05 14:03:37 +02:00
15c5053e44 Show page render time on events list 2024-08-04 12:01:54 +08:00
17eca6a95a Travel stats to show number of conference stats
Closes: #167
2024-07-10 19:28:56 +01:00
19a9015dba Fix typo 2024-07-07 19:20:54 +01:00
a873060949 Move functions out of web_view.py 2024-07-07 11:32:03 +01:00
b65d79cb63 Add filters for space launches 2024-07-01 22:29:13 +03:00
0e49d18721 Correct spelling mistake 2024-07-01 22:29:13 +03:00
d91eab02ad Split recent events and calendar into separate pages.
Closes: #140
2024-06-19 22:15:32 +01:00
fcf935271c Market display filter
Closes: #158

Closes: #150
2024-06-18 06:51:45 +01:00