Code Monkey home page Code Monkey logo

mmm-googletraffictimes's Introduction

About Me:

๐Ÿ“ Based in Florence
๐ŸŒฑ Iโ€™m always learning
๐Ÿ’พ Half things are personal backups
โšก I'm a developer and I like wasting time on nice but useless things

๐ŸŒ Socials:

LinkedIn Reddit

๐Ÿ“ˆ Stats:

GitHub stats

Top Langs

mmm-googletraffictimes's People

Contributors

jacopo1891 avatar kevin-og avatar pjestico avatar sdetweil avatar

Stargazers

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

Watchers

 avatar  avatar

mmm-googletraffictimes's Issues

Only load on a schedule?

Would it be possible to have the drive times only show in the mornings during the week? Also have it not pulling data from Google during it's "downtime" if possible?

Magic Mirror not show on screen at all after installation of module.

The service starts, but there is just the desktop wallpaper on screen. The module config in config.js is below. If I comment out the module config, everything loads up as expected. The Google Cloud Console lists Maps JavaScript API, Geocoding API, and Distance Matrix API under the API key that I am using. I ran the debug command as directed in the README. That is also below. I am not seeing why this is broken. Any help is appreciated.

{
	module: "MMM-GoogleTrafficTimes",
		position: "top_left",
		config: {
			key: "Copied from Google and the 3 required API are enabled",
			origin: "my street address",
			destinations: [
		        {
		        	name: "work1",
		        	address: "work1 street address",
		        },
		        {
		        	name: "work2",
		        	address: "work2 street address",
		        },
				{
					name: "work3",
					address: "work3 street address",
				}
	        ],
			updateInterval: 900000,
			avoidHighways: false,
			avoidTolls: false,
			mode: "driving",
			language: "en-US",
			offsetTime: 25,
			lastUpdate: true,
			timeLastUpdateWarning: 1,
			debug: true
		}
},

npm start dev | grep MMM-GoogleTrafficTimes
[01.04.2024 15:26.34.019] [ERROR] (node:22214) UnhandledPromiseRejectionWarning: Error: Cannot find module 'core-js/modules/es.string.replace.js'
Require stack:

  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/url-signature/dist/index.umd.js
  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/google-maps-services-js/dist/serialize.js
  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/google-maps-services-js/dist/directions.js
  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/google-maps-services-js/dist/client.js
  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/google-maps-services-js/dist/geolocate.js
  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/google-maps-services-js/dist/index.js
  • /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_helper.js
  • /home/walladmin/MagicMirror/js/app.js
  • /home/walladmin/MagicMirror/js/electron.js
  • /home/walladmin/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
  • at node:internal/modules/cjs/loader:1084:15
    at Function. (node:electron/js2c/browser_init:2:116646)
    at Module._resolveFilename (/home/walladmin/MagicMirror/node_modules/module-alias/index.js:49:29)
    at node:internal/modules/cjs/loader:929:27
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at /home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/url-signature/dist/index.umd.js:1:79
    at Object. (/home/walladmin/MagicMirror/modules/MMM-GoogleTrafficTimes/node_modules/@googlemaps/url-signature/dist/index.umd.js:1:807)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    (Use electron --trace-warnings ... to show where the warning was created)
    [01.04.2024 15:26.34.021] [ERROR] (node:22214) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    Warning: vkCreateInstance: Found no drivers!
    Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
    at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
    at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
    at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
    at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

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.