@bhepler thanks for the input but unfortunately your Problem is different to mine. The Calendar Module is already looking for an external ics File, all I need to know is the correct syntax for a local File instead of somewhere on a Webserver.
Read the statement by Michael Teeuw here.
Posts
-
RE: Calendar Module: How to declare local calendar
-
RE: Calendar Module: How to declare local calendar
Did nobody every used a local file instead of Icloud or whatever? Am I the first? Even SMB or NFS would be fine but non of them is working…
-
RE: The mirror that wasn't a mirror
Maybe somebody can point me in the right direction with another problem… How do I link to a local calendar file? I tried different ways but non worked. Also SMB would be a possibility. How should the syntax look like?
-
RE: The mirror that wasn't a mirror
My Problem was solved by the developer. The API Key was not valid. For everybody else with this problem here is a link to test your Key. If it is not valid just create a new one:
Replace <API_KEY> with your Key:
https://maps.googleapis.com/maps/api/directions/json?origin=toledo ohio&destination=san antonio texas&key=<API_KEY>Thanks for everybodys help.
-
RE: The mirror that wasn't a mirror
ok, somebody opened a bug report for this problem 20h hours ago so I think im not the only affected person :)
-
RE: The mirror that wasn't a mirror
@Mitchfarino i copied from Maps before and now I tryied only with postalcode and Postalcode + City name but still get the same error as written above. I think I have to contact the developer of the module.
-
RE: The mirror that wasn't a mirror
@Mitchfarino thanks for the hint but I´m not sure how exactly to enter the locations. Does anybody have an example for germany? I assume it would be street & no, postalcodd city. So for example Hauptstraße 15, 99090 Erfurt.
Is that correct? -
RE: The mirror that wasn't a mirror
@bhepler
Yes you are right, sorry my fault.So I copied the example from the github Page and just entered my Api Key to make sure the Module is working with basic Informations.
This is the appropriate part of my config:
{ module: 'MMM-Traffic', position: 'bottom_bar', classes: 'dimmed medium', //optional, default is 'bright medium', only applies to commute info not route_name config: { api_key: '******', mode: 'driving', origin: '4 Pennsylvania Plaza, New York, NY 10001', destination: '1 MetLife Stadium Dr, East Rutherford, NJ 07073', arrival_time: '0800', //optional, but needs to be in 24 hour time if used. route_name: 'Home to Work', changeColor: true, showGreen: false, limitYellow: 5, //Greater than 5% of journey time due to traffic limitRed: 20, //Greater than 20% of journey time due to traffic traffic_model: 'pessimistic', interval: 120000 //2 minutes } },
Edit: Like this the mirror stucks on “Loading Commute” and the mentioned error is shown on console output continuously. Any idea what could be the Problem?
-
RE: The mirror that wasn't a mirror
I just installed the Module as decripted and and set config file options but when I start Serveronly Mode of MM I get the following error Message:
Whoops! There was an uncaught exception…
TypeError: Cannot read property ‘legs’ of undefined
at Request._callback (…/MagicMirror/modules/MMM-Traffic/node_helper.js:47:55)
at Request.self.callback (…/MagicMirror/modules/MMM-Traffic/node_modules/request/request.js:187:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (…/MagicMirror/modules/MMM-Traffic/node_modules/request/request.js:1048:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (…/MagicMirror/modules/MMM-Traffic/node_modules/request/request.js:969:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)Any Idea what causes the Problem and how to solve it?