Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cred_file configuration entry path does not exist! #76

Closed
xdweaver opened this issue Jan 26, 2023 · 13 comments
Closed

cred_file configuration entry path does not exist! #76

xdweaver opened this issue Jan 26, 2023 · 13 comments
Assignees
Labels
support Asking for help

Comments

@xdweaver
Copy link

I wanted to do a fresh install of this just to understand it better and to see if I could do it again. NOPE!! grr.. lol.. I am now getting this error:

pi@raspberrypi:~/ePiframe $ ./ePiframe.py --check-config
ePiframe - e-Paper Raspberry Pi Photo Frame
2023-01-26 07:55:44 : Verifying configuration...
2023-01-26 07:55:44 : Error verifying configuration file! cred_file configuration entry path does not exist!
Traceback (most recent call last):
File "/home/pi/ePiframe/./ePiframe.py", line 909, in
main()
File "/home/pi/ePiframe/./ePiframe.py", line 64, in main
config.verify()
File "/home/pi/ePiframe/modules/base/configbase.py", line 218, in verify
property_name.validate()
File "/home/pi/ePiframe/misc/configproperty.py", line 157, in validate
raise Exception(self.FILE_ERROR_MSG.format(self.__name))
Exception: cred_file configuration entry path does not exist!

what am i doing wrong again, I have not messed with the cred file. so I don't understand. thanks again

@MikeGawi
Copy link
Owner

There's a config.cfg file property cred_file that points to credentials.json by default. Make sure that the value and credentials filename are right.

@xdweaver
Copy link
Author

xdweaver commented Jan 26, 2023 via email

@MikeGawi
Copy link
Owner

To use Google Photos you need to activate the project, get credentials, etc.
Please refer to documentation.

After the activation you'll get token.pickle and credentials.json files, you need to copy these files to ePiframe device inside installation path and specify cred_file and pickle_file cofiguration properties to point to the credentials.

@MikeGawi MikeGawi self-assigned this Jan 26, 2023
@MikeGawi MikeGawi added the support Asking for help label Jan 26, 2023
@xdweaver
Copy link
Author

xdweaver commented Jan 26, 2023 via email

@xdweaver
Copy link
Author

xdweaver commented Jan 26, 2023 via email

@MikeGawi
Copy link
Owner

MikeGawi commented Jan 27, 2023

You replace it with the name of the JSON file from Google Cloud platform that was generated during activation. It's credentials.json name by default but it can have any other custom name. But then you need to make sure that this name is exact with the configuration property cred_file value.

So for example your file is: google_credentials_001.json and cred_file=google_credentials_001.json

I don't know if I get your question right but there's no ePiframe default file for Google Photos credentials (credentials.json). You need to generate one yourself, to your Google account + credentials (may be an account created especially for frame), to allow ePiframe connect to it and get the photos. Activation script is the easiest way to get it.

@xdweaver
Copy link
Author

xdweaver commented Jan 29, 2023 via email

@xdweaver
Copy link
Author

xdweaver commented Jan 29, 2023 via email

@MikeGawi
Copy link
Owner

how do you get it to run on restart.

There is something called ePiframe service, the installer should automatically set it up but you can do it yoursefl:

  • Install ePiframe service
    • replace paths
      sed 's/EPIEPIEPI/'$(pwd | sed 's_/_\\/_g')'\//g' misc/ePiframe.service.org > ePiframe.service
      
    • enable service
      sudo systemctl enable `pwd`/ePiframe.service
      

After that ePiframe should start automatically with system and should recover after error - it will always work until switched off, i.e.

  • temporary stop service
    sudo systemctl stop ePiframe.service
    
    it will run again after reboot or sudo systemctl start ePiframe.service to run it manually
  • permanently disable service
    sudo systemctl disable ePiframe.service
    

To get more information about service control refer to documentation.

@xdweaver
Copy link
Author

xdweaver commented Feb 18, 2023 via email

@MikeGawi
Copy link
Owner

MikeGawi commented Feb 18, 2023

I had the very same issue with my 7 color Waveshare display and I reported that to support to get a solution. It was the problem with their code and was fixed in the latest Waveshare pull request.

You can update ePiframe Waveshare libraries with the script or just do it faster manually:

cd <path>
rm -r lib/waveshare_epd/
wget -q https://github.com/waveshare/e-Paper/archive/master.zip -O waveshare.zip
unzip -q waveshare.zip
cp -r e-Paper-master/RaspberryPi_JetsonNano/python/lib .
rm -r e-Paper-master/ waveshare.zip
sudo chown -R pi ..

After refreshing the libraries clear the display by setting clear_display flag to 1 in the config.cfg file for one frame refresh and then set it back to 0 as it is not necessarry and takes a lot of time during frame update.

I have to say that I have enjoyed your epiframe immensely

It's great to hear that! Thanks!

@xdweaver
Copy link
Author

xdweaver commented Feb 21, 2023 via email

@MikeGawi
Copy link
Owner

Closed due to inactivity. Please open new issue if support is still needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Asking for help
Projects
None yet
Development

No branches or pull requests

2 participants