@yawns Thanks, it was the comma. I miss it.
Read the statement by Michael Teeuw here.
Best posts made by paulocarrasco
-
RE: MMM-forecast-io -- Localized up to the minute weather
-
RE: MMM-IFTTT - If-This-Then-That Maker Notifications
@jc21 Thanks for your quick reply. As you mentioned I made a ‘pull’ of MMM-IFTTT new version. Unfortunately It still giving the same error for me. All te rest appears that is working. Also the server is listening fine on port 8080.
For testing purposes I have this minimalistic config.js
´´´
//* Magic Mirror Config Sample
*- By Michael Teeuw http://michaelteeuw.nl
- MIT Licensed.
*/
var config = {
port: 8080,language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'MMM-PIR-Sensor', config: { sensorGpio: 4,// See 'Configuration options' for more information. } }, { module: 'MMM-IFTTT', position: 'lower_third', config: { } }, ]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== ‘undefined’) {module.exports = config;}´´´
This is the command I enter, followed by the error:
´´´
MBP:~ paulocarrasco$ curl -X POST -H “Content-Type: application/json” -d ‘{“message”: “Your pizza is ready!”}’ “http://192.168.1.69:8080/IFTTT”TypeError: Cannot read property 'debug' of undefined
at Class.log (/home/pi/MagicMirror/modules/MMM-IFTTT/node_helper.js:116:54)
at expressApp.post (/home/pi/MagicMirror/modules/MMM-IFTTT/node_helper.js:57:18)
at Layer.handle [as handle_request] (/home/pi/MagicMirror/node_modules/express/lib/router/layer.js:95:5)
at next (/home/pi/MagicMirror/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/home/pi/MagicMirror/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/pi/MagicMirror/node_modules/express/lib/router/layer.js:95:5)
at /home/pi/MagicMirror/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/home/pi/MagicMirror/node_modules/express/lib/router/index.js:330:12)
at next (/home/pi/MagicMirror/node_modules/express/lib/router/index.js:271:10)
at urlencodedParser (/home/pi/MagicMirror/modules/MMM-IFTTT/node_modules/body-parser/lib/types/urlencoded.js:82:7)´´´
I hope this helps finding the error, because as I am a IFTTT fan your IFTTT module has main importance for me ;-).