Comments (9)
You saw that there's a "Test" button to test the transit url/regex without saving? Does it work? Can you send me the url/regex you're using?
from mirror.
Yes I've been using the Test button to play around. Initially I was using only the test button. But when I encountered crashes, I decided to try saving the data.
(It's entirely possible it's just because of the crappy tablet i'm using)
URL: http://svc.metrotransit.org/NexTrip/56041
According to http://svc.metrotransit.org/ it is returning XML. So I tried creating a regex to parse the XML...
from mirror.
I think I see the problem. The app expects epoch time (e.g. # of seconds or miliseconds since 1/1/1970) and that service is sending a normal time (e.g. 2016-02-03T15:54:00).
Two things I'll do later this evening:
- Set it to try that time format
- Set it to, if it can't parse the time format, just display whatever it finds instead of bombing out
To help, could you clarify which parameter you are trying to grab? DepartureTime, DepartureText, soething else?
PS Thanks for the feedback!
from mirror.
I would be trying to grab whatever comes after 2016-02-03T15:03:00
In this case, specifically 15:03
Also, thank you for getting back to me so quickly! Great job overall with the app, I quite like it since it adds the Bus route info!
from mirror.
OK, will work on it this evening. Also, could you clarify what wasn't being saved? (There is already a bug about saving Latitude on the Weather module, that will be fixed shortly. AFAIK everything else works.)
from mirror.
- The Name of the Route (Default: Train work)
- URL for Arrival Time
- Regex
from mirror.
Those work for me. Sure you're hitting the "+" button to add the transit item?
from mirror.
My mistake. I interpreted that button as a way to add Additional transit items if I desired. I didn't realize there was an existing one above.
Thanks for clarifying
from mirror.
This is fixed and checked in; next push to Play store coming soon.
from mirror.
Related Issues (18)
- Screenshot for readme
- Webpage display widget HOT 3
- Bug: Multiple transit lines format incorrectly HOT 1
- Need to zero out stock display on nights/weekends
- Req: Add drive times module
- web page module resizes HOT 7
- feature request: don't start with config as default HOT 4
- Weather not displaying accurate temps HOT 10
- Req: Change order of widgets
- forecast.io changed domain name HOT 1
- Translate
- Add checkbox for Celsius HOT 1
- Localize day-of-week name to device Locale HOT 2
- Localize birthday greeting or make it configurable HOT 1
- Do not force Portrait mode
- Add font and font color selector
- Bug: Forecast Module polls every minute, should be every 10 minutes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirror.