aprs.me/lib/aprsme_web/live/weather_live
Graham McIntire 9b147101e1
fix: Handle both atom and string keys in weather view packet comparison
The weather view was crashing with KeyError when receiving packets with
string keys instead of atom keys. This was happening when packets were
broadcast from different parts of the system.

Changes:
- Updated should_update_weather? to handle both atom and string keys
- Added proper nil checking for received_at timestamps
- Handle string timestamp comparisons as well as DateTime comparisons

This prevents crashes when the weather view receives packets with
inconsistent key types from PubSub broadcasts.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 15:46:12 -05:00
..
callsign_view.ex fix: Handle both atom and string keys in weather view packet comparison 2025-08-03 15:46:12 -05:00
callsign_view.html.heex fix: Handle numeric weather values and hide N/A fields in weather view 2025-08-03 15:33:09 -05:00