Sync start with one click

Sync Blizzards' Armory data with WoWRoster (addon depreciated no longer works see ApiSync)

Moderators: Ulminia, poetter

Sync start with one click

Postby Xevion » Sun Mar 01, 2009 7:55 am

Hello,
i install the new ArmorySync AddOn in my roster and it works great. (Ok, no DK Support, but this is not a problem)
After i set the Wait-Times a little higher i had no problems with the Armory-Security but this need's more time. (a round of 8 hours for my 100 Characters)
And as you don't support Jobs i help myself with a little HTML File for starting the Sync process with this file:
<html><head>

<script language="JavaScript" type="text/javascript">
<!--
function fnSubmit() {
window.document.allow.submit();
return;
}
// -->
</script>
</head>
<body LANGUAGE="javascript" onload="return fnSubmit()">
<body>

<form action="http://www.yourPage.com/roster/index.php?p=guild-armorysync&amp;a=g:1" method="post" id="allow" name="allow">
<input type="hidden" id="start" name="action" value="start" />
<input type="hidden" name="job_id" value="0" />
<input name="password" class="wowinput128" type="password" size="30" maxlength="30" value="yourPass" />
<input type="submit" value="Go" />
</form>
</body></html>


You only need to Change the URL to the right one and enter the Password and than you can start the Sync process without any addl. Clicks.
If you start this over the MS Scheduler your Server (or PC) can Sync every night without any problems.

I don't know if anyone help's this Code, but i think it's better to share the Informations :grin:

Regards
Xevion
Xevion
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Nov 22, 2007 9:15 am

Sync start with one click

Postby Ulminia » Sun Mar 01, 2009 10:34 am

interesting ... i may add this to the addon for people ... but people will be weary of adding there roster password hardcoded to a file .... i thought there was a cron job for this some where ... maybe not..
Last edited by Ulminia on Sun Mar 01, 2009 10:36 am, edited 1 time in total.
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: Sync start with one click

Postby Xevion » Mon Mar 02, 2009 4:38 am

Ulminia wrote:interesting ... i may add this to the addon for people ... but people will be weary of adding there roster password hardcoded to a file .... i thought there was a cron job for this some where ... maybe not..

That's right, you must hardcode the Password for the Updatefunction in the File, but this File is on your local Harddisk and it's only the Update Password, not the Admin Password. :grin:
Xevion
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Nov 22, 2007 9:15 am

Sync start with one click

Postby zanix » Mon Mar 02, 2009 5:01 am

Ulminia, I would see about adding the ability to be able to run armory sync as a cron job
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Sync start with one click

Postby Ulminia » Mon Mar 02, 2009 10:40 am

ial lok in to a cron file...
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: Sync start with one click

Postby AnthonyB » Fri May 15, 2009 1:22 pm

So, on a Windows machine, what commend line would I schedule to run to use the cron.php to automate a nightly ArmorySync?

Is is "php -F <path to roster>\addons\armorysync\cron.php"
Roster 2.0.2 svn [latest] latest trunk SVN svn [latest] running on IIS7/Windows Server 2008 SP2 | MySQL 5.0.85 | PHP 5.2.10 | Yes, Roster and PHP rocks on IIS! Even run as FastCGI extension!
User avatar
AnthonyB
Gimpy Developer
Gimpy Developer
 
Posts: 346
Joined: Tue Jul 04, 2006 2:44 pm
Location: Sydney, Australia

Re: Sync start with one click

Postby AnthonyB » Sun May 17, 2009 4:43 am

So I tried
Code: Select all
php -F <path to roster>\addons\armorysync\cron.php

and left it it for twice the time it normally takes AS to complete when I run it through Roster... and nothing seems to be happening.

Anyone able to verify what command-line should be run on a Windows box to allow this to be automated?
Roster 2.0.2 svn [latest] latest trunk SVN svn [latest] running on IIS7/Windows Server 2008 SP2 | MySQL 5.0.85 | PHP 5.2.10 | Yes, Roster and PHP rocks on IIS! Even run as FastCGI extension!
User avatar
AnthonyB
Gimpy Developer
Gimpy Developer
 
Posts: 346
Joined: Tue Jul 04, 2006 2:44 pm
Location: Sydney, Australia

Re: Sync start with one click

Postby AnthonyB » Mon Jun 08, 2009 6:46 am

Anyone? This is pretty critical to Roster as a whole as it would solve the age old problem of data freshness.
Roster 2.0.2 svn [latest] latest trunk SVN svn [latest] running on IIS7/Windows Server 2008 SP2 | MySQL 5.0.85 | PHP 5.2.10 | Yes, Roster and PHP rocks on IIS! Even run as FastCGI extension!
User avatar
AnthonyB
Gimpy Developer
Gimpy Developer
 
Posts: 346
Joined: Tue Jul 04, 2006 2:44 pm
Location: Sydney, Australia


Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 0 guests

cron