Announcement

#1 2018-02-13 17:22:35

bakerjw
Member
2014-09-10
4

Synchronization automation

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

 

#2 2018-02-14 12:36:02

executive
Member
2017-08-16
1214

Re: Synchronization automation

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

 

#3 2018-02-14 15:38:05

bakerjw
Member
2014-09-10
4

Re: Synchronization automation

Thanks
If that will do it, then I can automate that in other ways too.
I'll test it and see.

Offline

 

#4 2018-02-26 18:20:30

bakerjw
Member
2014-09-10
4

Re: Synchronization automation

I thought that it was working.

It gives a

Bad request
missing token

Error.

Offline

 

#5 2018-02-26 19:24:17

executive
Member
2017-08-16
1214

Re: Synchronization automation

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

 

#6 2018-07-11 22:00:16

kurbanium
Member
2018-07-08
4

Re: Synchronization automation

@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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact