Skip to content

Test out LAMP for bus - #83

Open
ankoure wants to merge 7 commits into
mainfrom
experiment-with-lamp-for-bus
Open

Test out LAMP for bus#83
ankoure wants to merge 7 commits into
mainfrom
experiment-with-lamp-for-bus

Conversation

@ankoure

@ankoure ankoure commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

The LAMP for bus data is in early preview. We should start to process it and compare it against gobble.

@ankoure
ankoure requested review from a team, devinmatte and hamima-halim as code owners April 9, 2026 02:05
Comment thread mbta-performance/.chalice/config.json Outdated
Comment thread mbta-performance/.chalice/config.json Outdated
@runkelcorey

runkelcorey commented Apr 23, 2026

Copy link
Copy Markdown

👋 lmk if y'all have questions! Data dictionary here. I'm half of 🛋️ and would love some eyes on it before we tell more folks about it

@devinmatte

Copy link
Copy Markdown
Member

@ankoure If we get this running we can pass along feedback and bug reports

@ankoure

ankoure commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

@devinmatte What needs to be done to get this PR merged and running in chalice?

Comment thread mbta-performance/app.py
Comment on lines +53 to +61
@app.schedule(Cron("*/30", "0-7,10-23", "*", "*", "?", "*"))
def process_daily_bus_lamp(event):
"""Ingest today's bus LAMP data."""
now_boston = datetime.now(ZoneInfo("US/Eastern"))

if now_boston.hour >= 3 and now_boston.hour < 6:
return

lamp.ingest_today_bus_data()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For first round of testing let's ingest once or twice a day to start since running more frequently can get costly. After a short testing window we can expand this to hourly and then we may no longer need gobble once this data is considered good enough

@runkelcorey

Copy link
Copy Markdown

FYI there may be breaking changes

@ankoure

ankoure commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

@runkelcorey Are breaking changes coming soon or?

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.

3 participants