I am running Piwigo on several domains on a hosted shared server. It works great.
I have a new website where I have created a handful of folders in the galleries folder where I allow people ftp access. They upload their images into directories that they create and manage.
I don not know when they upload images and would like a way to kick off a synchronization every hour. I don't have access to the server for scripting. Right now, I try to remember to go and synchronize it a few times a day but it'd be nicer if there was something more automated.
Any ideas, thoughts or suggestions?
Piwigo 2.9.2
Operating system: Linux
PHP: 7.1.13 (Show info) [2018-02-13 11:17:51]
MySQL: 5.5.58-0+deb7u1-log [2018-02-13 11:17:51]
Graphics Library: External ImageMagick 6.8.9-9
Offline
sounds like a job for cron. Even shared hosting plans should have that utility.
the trick will creating the proper command. You could try:
<your piwigo URL>/admin.php?page=site_update&site=1&quick_sync=1
Offline
Thanks
If that will do it, then I can automate that in other ways too.
I'll test it and see.
Offline
I thought that it was working.
It gives a
Bad request
missing token
Error.
Offline
the API call 'pwg.session.getStatus' returns a token
http://piwigo.org/doc/doku.php?id=dev:webapi:start
I think you need to write a perl script that logs in to your gallery, retrieves a token, and uses it to synchronize your images. Then run that script with cron. Make sure you take precautions for protecting your password.
Last edited by executive (2018-02-26 19:57:57)
Offline
@executive
I am not a dev and I know dinosaur shit about perl. Do you have a layman solution to this issue? I would like to set up a basic cron job to add images regularly.
thansk
Offline