Closed Poncherelly closed 6 years ago
I suspect there is an issue with your json config file. Did you make any changes to it and perhaps forget a double-quote or a curly brace?
I made a couple of changes but nothing that looks like it was done wrong:
{
"config":
{
"use_auth":true,
"use_alerts":true,
"use_openhab":false
},
"alerts":
{
"time_to_wait" : 10,
"alert_type" : null,
"smtp":
{
"smtphost" : "mail.outlook.com",
"smtpport" : 587,
"smtp_tls" : "True",
"username" : "username",
"password" : "password",
"to_email" : "email@adress.com"
},
"pushbullet":
{
"access_token":"
Ok so I started over from scratch and have the website working with both doors still in the code ... will figure out how to hide one of the doors later.
Your problem is the extra comma you have towards the end of the config.json file. the last three braces shouldn't have the comma in there.
SO I simply do a clone and try to follow all directions but I can't access the webpage. When I launch a terminal window and manually run cd ~pi/garage-door-controller; python controller.py I get the following: pi@GaragePi:~ $ cd ~pi/garage-door-controller; python controller.py Traceback (most recent call last): File "controller.py", line 386, in
controller = Controller(json.load(config_file))
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 55 column 2 (char 878)
Any ideas on what I did wrong?
thanks in advance.