This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Update Schedules from Central Repository
#1
Hi looking for suggestions on best way to to move forward on a large project we are involved with.
We have a lot of commercial sites for a single client that wishes to have the ability to update the timed scheduled event in all sites from a centrally managed facility management.
They would like to have a schedule of all store opening( in a spreadsheet or CSV file) trading times like (See Attached):-

There will be over 100 stores we want to update. So we are looking at the best way to push the updated CSV file to all LM's and have each LM update their schedules automatically. All LM's are connected on the clients own networks and we can see all LM's/

This solution may also be adapted to actually update from time to time the LM's themselves, with a centrally stored .tar.gz file update posted to all LM's to do a self update with.

Any suggestions would be great appreciated. And may be a bit of coding to help along the way.
Thank you.
Reply
#2
For me better would be to prepare some server with simple API and all LMs should fetching current settings from it.

This central server could be set up also on some LM.

In very simple way you could use for this task exported group addresses or .lp files with very simple script.

For second way you could have your settings in storage.

Code:
<?
require('apps')
require('json')
_SCRIPTNAME = 'Central schedule'
_CONFIGKEY = 'centralSchedule';

local config = storage.get(_CONFIGKEY, {})
print(json.encode(config))
?>
Done is better than perfect
Reply


Forum Jump: