Simple CalTrain app for Pebble
katharine / pebble-caltrain Goto Github PK
View Code? Open in Web Editor NEWSimple Caltrain app for Pebble
License: MIT License
Simple Caltrain app for Pebble
License: MIT License
While testing #14 on Chalk, I got a bunch of messages like the title spammed in the log. It happens on window transitions, as well as the action menu, but only on Chalk; Basalt and Aplite don't see this. FIgured I'd point it out to you, since you know the SDK internals.
The current methods for looking up trains do not prefer trains whose calendar starts today, resulting in holidays getting incorrect trains. The new schedule has a holiday on Washington's Birthday, February 16, 2015. If you set your date to this, the trains you get are the regular weekday trains, since the trains for the holiday are at the end of the trips list.
I think the best way to fix this would be to do a search through the calendars (since that list is much much shorter than the trips list), looking for the calendar whose start date is closest to the current date. Then use that calendar when searching for trains (maybe have a trips file indexed by calendar, and then use that subset of trips in place of the full trips list? could probably then dump the full list, so your resource usage won't increase noticeably. Side benefit of reducing runtime memory usage, since you no longer need the full trips list in memory)
I'm running the latest version of the app, and my watch is telling me that the south bound passes Cal Ave at 1:03a. The correct time is 1:07a. I haven't looked at what else is incorrect, but this definitely isn't right.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.