Jacopo1891 / MMM-GoogleTrafficTimes

A MagicMirror module that shows travel times taking into account Google traffic information
16 stars 4 forks source link

increasing the connectivity timeout for google maps api from 1s to 3s #6

Closed carefreepineapple closed 5 months ago

carefreepineapple commented 5 months ago

devices with poor connectivity (ie. wifi) that also have poor internet can sometimes have greater than 1000ms+ responses from google maps api.

Tripling this value should give it better versatility.

carefreepineapple commented 5 months ago

Also added core-js as a npm dependency to package.json for the module. This was because I encountered an error while trying to first start it:

Error: Cannot find module 'core-js/modules/es.string.replace.js

Adding the package dependency resolved the problem.