Giter VIP home page Giter VIP logo

Comments (9)

ineptech avatar ineptech commented on July 23, 2024

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.

a-abraham avatar a-abraham commented on July 23, 2024

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.

ineptech avatar ineptech commented on July 23, 2024

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:

  1. Set it to try that time format
  2. 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.

a-abraham avatar a-abraham commented on July 23, 2024

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.

ineptech avatar ineptech commented on July 23, 2024

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.

a-abraham avatar a-abraham commented on July 23, 2024
  1. The Name of the Route (Default: Train work)
  2. URL for Arrival Time
  3. Regex

from mirror.

ineptech avatar ineptech commented on July 23, 2024

Those work for me. Sure you're hitting the "+" button to add the transit item?

from mirror.

a-abraham avatar a-abraham commented on July 23, 2024

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.

ineptech avatar ineptech commented on July 23, 2024

This is fixed and checked in; next push to Play store coming soon.

from mirror.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.