Closed dansinclair25 closed 9 years ago
I've tried changing the import to;
from client.app_utils import getTimezone
But still no luck. Any idea?
/Dan
I worked it out. There were 3 problems.
1) The import line should read from client.app_utils import getTimezone
2) The Client ID in Google needs to be for a native application.
3) running; python modules/Calendar.py --noauth_local_webserver
doesn't work. You need to kill Jasper, then restart it manually using ./jasper.py
. Once that has restarted and authenticated, restart your Pi so that Jasper starts as it normally would.
Please can you update the README to show these changes?
/Dan
@dansinclair25 about to update, thoughts on the README?
@marclave The README is much better!! Just a couple more things...
The README says cp Software-Projects/JasperCalendar/Calendar.py <path to ..client/jasper/modules>
but Software-Projects
is NOT the name of the directory that the gist was cloned to. It should be cp Jasper-Google-Calendar/Calendar.py <path to ..client/jasper.modules>
.
You should also change the README to something like the following after you have downloaded and copied the Calendar.py
file over to the modules directory;
ps ax | grep jasper
will return all processes of jasper that are running.
sudo kill <pid>
where <pid>
is the PID of each process from the previous command./jasper.py
This should then open a web browser asking you to accept the authentication request. Accept it.__init.py
file in the ~/jasper/client
directory
from modules import Calendar
sudo reboot
@dansinclair25 Updated!