Code Monkey home page Code Monkey logo

transit-departures-widget's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

transit-departures-widget's Issues

No upcoming arrivals for all requests

Hi,
great widget and simple idea that can work for almost all cases.
I'm trying to get it to work - having two urls at the same server and trying to find departures, but no matter which route+direction+stop I choose, i get: No upcoming arrivals

How to debug it? Console says 200 OK for all answers, and provides a response with a long alphanumeric value.
All requests seem to go to tripupdates url with suffix ?cacheBust=1629829331976 etc.

Please advise how to proceed.

Cannot get working for arrival time

image


{
  "agency": {
    "agency_key": "youragency",
    "gtfs_static_url": "http://www.viainfo.net/BusService/google_transit.zip",
    "gtfs_rt_tripupdates_url": "tripupdates.pb"
  },
  "beautify": true,
  "locale": "en",
  "noHead": false,
  "refreshIntervalSeconds": 20,
  "templatePath": "views/widget",
  "timeFormat": "12hour",
  "sqlitePath": "gtfs"
}

ERR_INVALID_ARG_TYPE on first run

Hi,

I'm trying to run this with some GTFS files from a local transport agency and I get this


Starting GTFS import for 1 file using SQLite database at database.sqlite
Importing GTFS from data
Importing - agency.txt - 1 lines imported
Importing - areas.txt - No file found
Importing - attributions.txt - No file found
Importing - calendar_dates.txt - 5061 lines imported
Importing - calendar.txt
Importing - fare_attributes.txt - No file found
Importing - fare_leg_rules.txt - No file found
Importing - fare_products.txt - No file found
Importing - fare_rules.txt - No file found
Importing - fare_transfer_rules.txt - No file found
Importing - feed_info.txt - No file found
Importing - frequencies.txt - No file found
Importing - levels.txt - No file found
Importing - pathways.txt - No file found
Importing - routes.txt - 53 lines imported
Importing - shapes.txt - 89223 lines imported
Importing - stop_areas.txt - No file found
Importing - stop_times.txt - 92446 lines imported
Importing - stops.txt - 562 lines imported
Importing - transfers.txt - No file found
Importing - translations.txt - No file found
Importing - trips.txt - 3405 lines imported
Completed GTFS import for 1 agency

MYAGENCY: Generating Transit Departures Widget HTML
Warning: route_id 962 has no directions - skipping

Error: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
[  Error: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received u  ndefined
] {
  code: 'ERR_INVALID_ARG_TYPE'
}

Thanks!

unable to install after update

Hi,
after updating (and even now when git cloning 0.1.4 tag), i'm getting this error after clone, edit of config.json and running npm install:

root@vpsXXXXX:/home/wojciech/transit-arrivals-widget# npm install transit-arrivals-widget --unsafe-perm --allow-root -g
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q https://[email protected]/mapbox/node-sqlite3.git /root/.npm/_cacache/tmp/git-clone-f290504d/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-f290504d/.git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-10-16T19_30_05_191Z-debug.log

Please help. When trying to git clone and then npm install as normal user, im getting errors as normal user has access to node v8.10.0 only and other errors popup like: Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/transit-arrivals-widget

exports is not defined

Getting the following when running it from the command line:

dublinbus: Generating Transit Arrivals Widget HTML
Error: exports is not defined
[  Error: exports is not defined
]

No idea what this is in relation to. Here's the full output

Starting GTFS import for 1 file using SQLite database at :memory:
Downloading GTFS from https://www.transportforireland.ie/transitData/Data/GTFS_All.zip
Download successful
Importing GTFS from /var/folders/hm/ts1l6x0j2ddcn2cpzbzz14lr0000gp/T/tmp-35682-OyFNB8u4ortL/gtfs.zip
Importing - agency.txt - 115 lines imported
Importing - areas.txt - No file found
Importing - attributions.txt - No file found
Importing - calendar_dates.txt - 946 lines imported
Importing - calendar.txt - 379 lines imported
Importing - fare_attributes.txt - No file found
Importing - fare_leg_rules.txt - No file found
Importing - fare_products.txt - No file found
Importing - fare_rules.txt - No file found
Importing - fare_transfer_rules.txt - No file found
Importing - feed_info.txt - No file found
Importing - frequencies.txt - No file found
Importing - levels.txt - No file found
Importing - pathways.txt - No file found
Importing - routes.txt - 830 lines imported
Importing - shapes.txt - 6229762 lines imported
Importing - stop_areas.txt - No file found
Importing - stop_times.txt - 5927119 lines imported
Importing - stops.txt - 13191 lines imported
Importing - transfers.txt - No file found
Importing - translations.txt - No file found
Importing - trips.txt - 204876 lines imported
Completed GTFS import for 1 agency

dublinbus: Generating Transit Arrivals Widget HTML
Error: exports is not defined
[  Error: exports is not defined
]

and my config.json

{
    "agency": {
      "agency_key": "dublinbus",
      "gtfs_static_url": "https://www.transportforireland.ie/transitData/Data/GTFS_All.zip",
      "gtfs_rt_tripupdates_url": "https://api.nationaltransport.ie/gtfsr/v2/gtfsr?format=json"
    },
    "beautify": true,
    "locale": "en",
    "noHead": false,
    "refreshIntervalSeconds": 20,
    "templatePath": "views/widget",
    "timeFormat": "12hour"
  }

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.