Open kevinsickles opened 8 years ago
Remove the process.env. before your IP Address. The process.env was to get the ip address from a private var on heroku, you do not need it. replace with http://192.168.15.75
change the line from request.post(process.env.192.168.15.75 + '/tstat', {json: {t_cool: parseFloa to request.post('http://192.168.15.75/tstat', {json: {t_cool: parseFloa
Thank you! Next problem is the endpoint is not responding. I assume I have to set up SSL on the node.js express server?
Yes, Amazon requires ssl (HTTPS) for any skill endpoint. I believe you also cannot use a self signing certificate. This is why I suggest using Heroku cloud service.
a NOOB, when I replace the THERMOSTAT_URL with my thermostat ip address I get
/home/pi/node-alexa-server/app_modules/alexa-radiothermostat/index.js:8 request.post(process.env.192.168.15.75 + '/tstat', {json: {t_cool: parseFloa ^^^^ SyntaxError: Unexpected number