mrworf / photoframe

Software to pull random photos from Google Photos and show them, like a photo frame
GNU General Public License v3.0
215 stars 38 forks source link

MaxItems in Svc_googlephotos.py #176

Closed terrylmc closed 2 years ago

terrylmc commented 3 years ago

maxItems = 1000 # Should be configurable

I adjusted the maxitems to increase from 1000 to 5000. I have rebooted. Is there something else needed to do?

However, it doesn't seem to be respecting that change. When I click on details from the webgui for any album it still says only 1000 items fetched.

Thanks

mrworf commented 3 years ago

It should, if you enable debug mode for the service and then run it, can you pass me the log? You should see Fetching another result-set for this keyword more than 10 times. I know others have changed this variable with success.

terrylmc commented 3 years ago

Hi. How can I enable debug mode? Thanks!

mrworf commented 3 years ago

I think I know the issue now, there's a cache which you have to invalidate for the new 1000 photos to take effect (or you have to wait for all 1000 photos to have been shown).

Click this button and it should work as you'd expect image

terrylmc commented 3 years ago

Thanks, I tried that and forget memory, and did a reboot. When I click on any of my albums it still says 1000 items fetched (even though I have increased the maxitems to higher than 1000)

Here is info from when I click on details from any of the albums. And below is the log report. Thanks for your help!!!!


Summary1000 items fetched from album, 1000 images, 0 videos, 0 is unknown. 275 has been shownDetails Below is a breakdown of the content found in this album image/gif has 3 items image/jpeg has 997 items

Photoframe Log report This page is intended to be used when you run into issues which cannot be resolved by the messages displayed on the frame. Please save and attach this information when you create a new issue https://github.com/mrworf/photoframe/issues/new.

Thank you for helping making this project better 😅 Running version

commit 076dbd50969d35fe92e21d37319836b472f751aa Author: Tom Anschutz Date: Mon Feb 15 21:55:21 2021 -0500

Update svc_usb.py (#175)

Added filter to ignore linux/macos "dot" files.  The main reason

to do this is to eliminate long logs of Command '['/usr/bin/identify', u'/mnt/usb1/photoframe/test/.DS_Store']' returned non-zero exit status 1

On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD ..." to unstage)

new file:   services/backup_svc_googlephotos.py
modified:   services/svc_googlephotos.py

Last 100 lines from the photoframe log

Feb 18 06:32:25 photoframe photoframe[571]: 2021-02-18 06:32:25,815 - INFO - Interim saving of memory every 20 entries Feb 18 06:36:31 photoframe photoframe[571]: 2021-02-18 06:36:31,724 - ERROR - No result returned for keyword "2021"! Feb 18 06:42:38 photoframe photoframe[571]: 2021-02-18 06:42:38,637 - INFO - Interim saving of memory every 20 entries Feb 18 06:56:57 photoframe photoframe[571]: 2021-02-18 06:56:57,410 - ERROR - No result returned for keyword "2021"! Feb 18 07:01:03 photoframe photoframe[571]: 2021-02-18 07:01:03,966 - ERROR - No result returned for keyword "2021"! Feb 18 07:02:03 photoframe photoframe[571]: 2021-02-18 07:02:03,455 - ERROR - No result returned for keyword "2021"! Feb 18 07:04:05 photoframe photoframe[571]: 2021-02-18 07:04:05,479 - INFO - Interim saving of memory every 20 entries Feb 18 07:07:09 photoframe photoframe[571]: 2021-02-18 07:07:09,353 - INFO - Interim saving of memory every 20 entries Feb 18 07:22:28 photoframe photoframe[571]: 2021-02-18 07:22:28,608 - INFO - Interim saving of memory every 20 entries Feb 18 07:42:54 photoframe photoframe[571]: 2021-02-18 07:42:54,796 - ERROR - No result returned for keyword "2021"! Feb 18 07:48:01 photoframe photoframe[571]: 2021-02-18 07:48:01,302 - ERROR - No result returned for keyword "2021"! Feb 18 08:00:16 photoframe photoframe[571]: 2021-02-18 08:00:16,177 - INFO - Interim saving of memory every 20 entries Feb 18 08:01:18 photoframe photoframe[571]: 2021-02-18 08:01:18,698 - ERROR - No result returned for keyword "2021"! Feb 18 08:32:57 photoframe photoframe[571]: 2021-02-18 08:32:57,499 - INFO - Interim saving of memory every 20 entries Feb 18 08:46:14 photoframe photoframe[571]: 2021-02-18 08:46:14,155 - INFO - Interim saving of memory every 20 entries Feb 18 09:01:34 photoframe photoframe[571]: 2021-02-18 09:01:34,515 - ERROR - No result returned for keyword "2021"! Feb 18 09:17:54 photoframe photoframe[571]: 2021-02-18 09:17:54,334 - INFO - Interim saving of memory every 20 entries Feb 18 09:27:05 photoframe photoframe[571]: 2021-02-18 09:27:05,535 - INFO - Interim saving of memory every 20 entries Feb 18 09:28:06 photoframe photoframe[571]: 2021-02-18 09:28:06,765 - INFO - Interim saving of memory every 20 entries Feb 18 09:51:36 photoframe photoframe[571]: 2021-02-18 09:51:36,651 - ERROR - No result returned for keyword "2021"! Feb 18 09:58:44 photoframe photoframe[571]: 2021-02-18 09:58:44,979 - INFO - Interim saving of memory every 20 entries Feb 18 10:01:50 photoframe photoframe[571]: 2021-02-18 10:01:50,072 - ERROR - No result returned for keyword "2021"! Feb 18 10:31:19 photoframe photoframe[571]: 2021-02-18 10:31:19,358 - INFO - '/root/cache/' has been emptied Feb 18 10:31:35 photoframe photoframe[571]: 2021-02-18 10:31:35,989 - INFO - '/root/cache/' has been emptied Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,363 - INFO - Loading service USB_Photos from svc_usb.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,367 - INFO - Loading service SimpleUrl from svc_simpleurl.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,370 - INFO - Loading service PicasaWeb from svc_picasaweb.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,374 - INFO - Loading service GooglePhotos from svc_googlephotos.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,381 - INFO - ColorSensor not available Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,383 - INFO - GPIO shutdown can be triggered by GPIO 26 Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,702 - INFO - Cache is set to True Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,730 - INFO - Registering URL /debug to RouteDebug (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,742 - INFO - Registering URL /options/ to RouteOptions (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,746 - INFO - Registering URL /options// to RouteOptions (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,765 - INFO - Registering URL / to RoutePages (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,768 - INFO - Registering URL / to RoutePages (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,772 - INFO - Registering URL /setting to RouteSettings Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,774 - INFO - Registering URL /setting/ to RouteSettings Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,778 - INFO - Registering URL /setting// to RouteSettings Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,783 - INFO - Registering URL /keywords//help to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,787 - INFO - Registering URL /keywords/ to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,790 - INFO - Registering URL /keywords//add to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,794 - INFO - Registering URL /keywords//delete to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,798 - INFO - Registering URL /keywords//source/ to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,804 - INFO - Registering URL /keywords//details/ to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,809 - INFO - Registering URL /rotation to RouteOrientation Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,811 - INFO - Registering URL /rotation/ to RouteOrientation Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,815 - INFO - Registering URL /overscan to RouteOverscan Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,818 - INFO - Registering URL /overscan/ to RouteOverscan Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,822 - INFO - Registering URL /maintenance/ to RouteMaintenance Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,826 - INFO - Registering URL /details/ to RouteDetails Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,830 - INFO - Registering URL /upload/ to RouteUpload Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,835 - INFO - Registering URL /callback to RouteOAuthLink Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,837 - INFO - Registering URL /service//link to RouteOAuthLink Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,840 - INFO - Registering URL /service//oauth to RouteOAuthLink Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,842 - INFO - Registering URL /service/ to RouteService Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,844 - INFO - Registering URL /control/ to RouteControl Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,846 - INFO - Registering URL /events to RouteEvents Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,847 - INFO - Registering URL /events/ to RouteEvents Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,849 - INFO - Registering URL /events/remove/ to RouteEvents Feb 18 10:32:28 photoframe photoframe[562]: 2021-02-18 10:32:28,365 - INFO - Starting presentation

(size of logfile 91231 bytes, created Thu Feb 18 10:32:47 2021)Last 100 lines from the system log (/var/log/syslog)

Feb 18 10:31:50 photoframe systemd[1]: Started Bluetooth service. Feb 18 10:31:50 photoframe systemd[1]: Started Raspberry Pi bluetooth helper. Feb 18 10:31:50 photoframe systemd[1]: Reached target Bluetooth. Feb 18 10:31:50 photoframe bluetoothd[500]: Starting SDP server Feb 18 10:31:50 photoframe kernel: [ 11.621843] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Feb 18 10:31:50 photoframe kernel: [ 11.621862] Bluetooth: BNEP filters: protocol multicast Feb 18 10:31:50 photoframe kernel: [ 11.621895] Bluetooth: BNEP socket layer initialized Feb 18 10:31:50 photoframe bluetoothd[500]: Bluetooth management interface 1.14 initialized Feb 18 10:31:50 photoframe bluetoothd[500]: Failed to obtain handles for "Service Changed" characteristic Feb 18 10:31:50 photoframe dbus[290]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' Feb 18 10:31:50 photoframe bluetoothd[500]: Sap driver initialization failed. Feb 18 10:31:50 photoframe bluetoothd[500]: sap-server: Operation not permitted (1) Feb 18 10:31:50 photoframe systemd[1]: plymouth-start.service: Cannot add dependency job, ignoring: Unit plymouth-start.service is masked. Feb 18 10:31:50 photoframe systemd[1]: Starting Hostname Service... Feb 18 10:31:50 photoframe sh[238]: wlan0=wlan0 Feb 18 10:31:50 photoframe dbus[290]: [system] Successfully activated service 'org.freedesktop.hostname1' Feb 18 10:31:50 photoframe systemd[1]: Started Hostname Service. Feb 18 10:31:50 photoframe systemd[1]: Started Raise network interfaces. Feb 18 10:31:50 photoframe systemd[1]: Reached target Network. Feb 18 10:31:50 photoframe systemd[1]: Starting /etc/rc.local Compatibility... Feb 18 10:31:50 photoframe systemd[1]: Starting Permit User Sessions... Feb 18 10:31:50 photoframe systemd[1]: Started Photo Frame. Feb 18 10:31:50 photoframe systemd[1]: Starting OpenBSD Secure Shell server... Feb 18 10:31:50 photoframe systemd[1]: Started Permit User Sessions. Feb 18 10:31:50 photoframe systemd[1]: Started /etc/rc.local Compatibility. Feb 18 10:31:50 photoframe systemd[1]: Starting Hold until boot process finishes up... Feb 18 10:31:50 photoframe systemd[1]: Starting Terminate Plymouth Boot Screen... Feb 18 10:31:50 photoframe systemd[1]: Started Hold until boot process finishes up. Feb 18 10:31:50 photoframe systemd[1]: Started Terminate Plymouth Boot Screen. Feb 18 10:31:50 photoframe sshd[564]: key_load_public: invalid format Feb 18 10:31:50 photoframe sshd[564]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key Feb 18 10:31:51 photoframe sshd[564]: key_load_public: invalid format Feb 18 10:31:51 photoframe sshd[564]: Could not load host key: /etc/ssh/ssh_host_ed25519_key Feb 18 10:31:51 photoframe sshd[573]: key_load_public: invalid format Feb 18 10:31:51 photoframe sshd[573]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key Feb 18 10:31:51 photoframe sshd[573]: key_load_public: invalid format Feb 18 10:31:51 photoframe sshd[573]: Could not load host key: /etc/ssh/ssh_host_ed25519_key Feb 18 10:31:51 photoframe systemd[1]: Started OpenBSD Secure Shell server. Feb 18 10:31:51 photoframe systemd[1]: Reached target Multi-User System. Feb 18 10:31:51 photoframe systemd[1]: Reached target Graphical Interface. Feb 18 10:31:51 photoframe systemd[1]: Starting Update UTMP about System Runlevel Changes... Feb 18 10:31:51 photoframe systemd[1]: Started Update UTMP about System Runlevel Changes. Feb 18 10:31:51 photoframe systemd[1]: Startup finished in 1.419s (kernel) + 10.942s (userspace) = 12.361s. Feb 18 10:31:51 photoframe kernel: [ 12.471592] Under-voltage detected! (0x00050005) Feb 18 10:31:52 photoframe dhcpcd[348]: wlan0: leased 192.168.68.126 for 7200 seconds Feb 18 10:31:52 photoframe dhcpcd[348]: wlan0: adding route to 192.168.68.0/24 Feb 18 10:31:52 photoframe dhcpcd[348]: wlan0: adding default route via 192.168.68.1 Feb 18 10:31:52 photoframe dhcpcd[348]: wlan0: Router Advertisement from fe80::da47:32ff:fecf:ea4c Feb 18 10:31:52 photoframe dhcpcd[348]: wlan0: adding default route via fe80::da47:32ff:fecf:ea4c Feb 18 10:31:52 photoframe dhcpcd[348]: wlan0: soliciting a DHCPv6 lease Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,363 - INFO - Loading service USB_Photos from svc_usb.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,367 - INFO - Loading service SimpleUrl from svc_simpleurl.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,370 - INFO - Loading service PicasaWeb from svc_picasaweb.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,374 - INFO - Loading service GooglePhotos from svc_googlephotos.py Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,381 - INFO - ColorSensor not available Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,383 - INFO - GPIO shutdown can be triggered by GPIO 26 Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,702 - INFO - Cache is set to True Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,730 - INFO - Registering URL /debug to RouteDebug (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,742 - INFO - Registering URL /options/ to RouteOptions (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,746 - INFO - Registering URL /options// to RouteOptions (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,765 - INFO - Registering URL / to RoutePages (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,768 - INFO - Registering URL / to RoutePages (simple) Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,772 - INFO - Registering URL /setting to RouteSettings Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,774 - INFO - Registering URL /setting/ to RouteSettings Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,778 - INFO - Registering URL /setting// to RouteSettings Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,783 - INFO - Registering URL /keywords//help to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,787 - INFO - Registering URL /keywords/ to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,790 - INFO - Registering URL /keywords//add to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,794 - INFO - Registering URL /keywords//delete to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,798 - INFO - Registering URL /keywords//source/ to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,804 - INFO - Registering URL /keywords//details/ to RouteKeywords Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,809 - INFO - Registering URL /rotation to RouteOrientation Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,811 - INFO - Registering URL /rotation/ to RouteOrientation Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,815 - INFO - Registering URL /overscan to RouteOverscan Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,818 - INFO - Registering URL /overscan/ to RouteOverscan Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,822 - INFO - Registering URL /maintenance/ to RouteMaintenance Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,826 - INFO - Registering URL /details/ to RouteDetails Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,830 - INFO - Registering URL /upload/ to RouteUpload Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,835 - INFO - Registering URL /callback to RouteOAuthLink Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,837 - INFO - Registering URL /service//link to RouteOAuthLink Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,840 - INFO - Registering URL /service//oauth to RouteOAuthLink Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,842 - INFO - Registering URL /service/ to RouteService Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,844 - INFO - Registering URL /control/ to RouteControl Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,846 - INFO - Registering URL /events to RouteEvents Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,847 - INFO - Registering URL /events/ to RouteEvents Feb 18 10:31:54 photoframe photoframe[562]: 2021-02-18 10:31:54,849 - INFO - Registering URL /events/remove/ to RouteEvents Feb 18 10:31:55 photoframe kernel: [ 16.631478] Voltage normalised (0x00000000) Feb 18 10:31:59 photoframe kernel: [ 20.801588] Under-voltage detected! (0x00050005) Feb 18 10:32:24 photoframe systemd-timesyncd[233]: Synchronized to time server 129.250.35.251:123 (2.debian.pool.ntp.org). Feb 18 10:32:24 photoframe systemd[1]: Time has been changed Feb 18 10:32:24 photoframe systemd[1]: apt-daily-upgrade.timer: Adding 4min 3.811892s random time. Feb 18 10:32:24 photoframe systemd[1]: apt-daily.timer: Adding 4h 22min 3.695683s random time. Feb 18 10:32:24 photoframe systemd[1]: plymouth-start.service: Cannot add dependency job, ignoring: Unit plymouth-start.service is masked. Feb 18 10:32:24 photoframe systemd[1]: Reached target Network is Online. Feb 18 10:32:24 photoframe systemd[1]: Starting Daily apt download activities... Feb 18 10:32:27 photoframe systemd[1]: Started Daily apt download activities. Feb 18 10:32:27 photoframe systemd[1]: apt-daily.timer: Adding 11h 7min 39.707590s random time. Feb 18 10:32:27 photoframe systemd[1]: apt-daily.timer: Adding 4h 9min 29.583812s random time. Feb 18 10:32:28 photoframe photoframe[562]: 2021-02-18 10:32:28,365 - INFO - Starting presentation Feb 18 10:32:47 photoframe kernel: [ 58.231545] Voltage normalised (0x00000000)

(size of logfile 91231 bytes, created Thu Feb 18 10:32:47 2021)Stacktrace of all running threads

ThreadID: 1953494128

File: "/usr/lib/python2.7/threading.py", line 774, in bootstrap self.bootstrap_inner() File: "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File: "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.kwargs) File: "/root/photoframe/modules/slideshow.py", line 315, in presentation self.delayNextImage(time_process) File: "/root/photoframe/modules/slideshow.py", line 250, in delayNextImage self.delayer.wait(delay - time_process) File: "/usr/lib/python2.7/threading.py", line 614, in wait self.cond.wait(timeout) File: "/usr/lib/python2.7/threading.py", line 359, in wait _sleep(delay)

ThreadID: 1963979888

File: "/usr/lib/python2.7/threading.py", line 774, in bootstrap self.bootstrap_inner() File: "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File: "/root/photoframe/modules/shutdown.py", line 59, in run i = poller.poll(None)

ThreadID: 1974162544

File: "/usr/lib/python2.7/threading.py", line 774, in bootstrap self.bootstrap_inner() File: "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File: "/root/photoframe/modules/timekeeper.py", line 118, in run time.sleep(60) # every minute

ThreadID: 1995987136

File: "./frame.py", line 185, in frame.start() File: "./frame.py", line 182, in start self.webServer.start() File: "/root/photoframe/modules/server.py", line 84, in start self.run() File: "/root/photoframe/modules/server.py", line 101, in run self.app.run(debug=False, port=self.port, host=self.listen ) File: "/usr/lib/python2.7/dist-packages/flask/app.py", line 841, in run run_simple(host, port, self, options) File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 708, in run_simple inner() File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 673, in inner srv.serve_forever() File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 511, in serve_forever HTTPServer.serve_forever(self) File: "/usr/lib/python2.7/SocketServer.py", line 233, in serve_forever self._handle_request_noblock() File: "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock self.process_request(request, client_address) File: "/usr/lib/python2.7/SocketServer.py", line 318, in process_request self.finish_request(request, client_address) File: "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request self.RequestHandlerClass(request, client_address, self) File: "/usr/lib/python2.7/SocketServer.py", line 652, in init self.handle() File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 228, in handle rv = BaseHTTPRequestHandler.handle(self) File: "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle self.handle_one_request() File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 263, in handle_one_request return self.run_wsgi() File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 205, in run_wsgi execute(self.server.app) File: "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 193, in execute application_iter = app(environ, start_response) File: "/usr/lib/python2.7/dist-packages/flask/app.py", line 1997, in call return self.wsgi_app(environ, start_response) File: "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File: "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File: "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](req.view_args) File: "/root/photoframe/routes/baseroute.py", line 62, in call return self.handle(self.app, **kwargs) File: "/root/photoframe/routes/debug.py", line 34, in handle report.append(debug.stacktrace()) File: "/root/photoframe/modules/debug.py", line 48, in stacktrace for filename, lineno, name, line in traceback.extract_stack(stack):

mrworf commented 3 years ago

Actually, I think you've found a bug. Looking at the code, clear cache should have done it, but the google photos implementation doesn't clear the cache, just the downloaded photos, meaning it will continue to use the 1000 photos until it runs out of them.

There are two ways to work around this until I can get a fix in:

  1. Locate the json file on your system and delete it
  2. Delete the keyword and re-add it (since it will delete the cached data from google when you do)
terrylmc commented 3 years ago

Thanks. I deleted an album and re-added it, and it shows it is fetching more than 1000.

I did not delete the json file. Which one needs to be deleted? Will that refresh all the albums, or do I need to do them one at a time?

Appreciate your help!

mrworf commented 3 years ago

If you only use one service (ie, google photos) then you should be able to find it fairly easy, open up an ssh session and make yourself root sudo su

Then cd /root/photoframe_config/services/

In this folder, if you have only one service, you'll see something like

root@photoframe24:~/photoframe_config/services# ls -la
total 20
drwxr-xr-x 4 root root 4096 Apr 29  2020 .
drwxr-xr-x 5 root root 4096 Apr 29  2020 ..
drwxr-xr-x 4 root root 4096 Apr 15  2020 44fb5d426aa46650490ebdc2b451f12b8299228d
-rw-r--r-- 1 root root  172 Apr 29  2020 services.json
root@photoframe24:~/photoframe_config/services# 

Next, go to the 44fb5d426aa46650490ebdc2b451f12b8299228d folder (of course, your equivalent) and inside you'll find the following

root@photoframe24:~/photoframe_config/services/44fb5d426aa46650490ebdc2b451f12b8299228d# ls -la
total 20
drwxr-xr-x 4 root root 4096 Apr 15  2020 .
drwxr-xr-x 4 root root 4096 Apr 29  2020 ..
drwxr-xr-x 2 root root 4096 Feb 17 14:59 memory
drwxr-xr-x 2 root root 4096 Feb 17 14:58 private
-rw-r--r-- 1 root root 1426 Feb 18 09:14 state.json

By looking at state.json you should see lines with photos.google.com which is a clear indication that this is the google photos service 😄

Now, enter the private folder and delete all .json files

Once done, please reboot by running reboot

This should force the frame to query google again.

terrylmc commented 3 years ago

Thank you, that seems to have fixed it. When I click on details it is now showing the accurate numbers from what is in the photo albums. I appreciate you taking the time to help me on this. Your instructions were 100% accurate!