These forums are CLOSED. Please visit the new forums HERE
control questions for emailing |
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
10-26-2008 11:17
i had this random bright idea last night, ive been playing with a type of com system ive been doing with emails and was wondering if any of you think this would be posible. my idea is to have a type of com system for a sim and you can control it by email as in using your email to send a command to like email you back who is in sim ect and talk back and forth between the system. im alittle tired so this might not make the best sence atm xD
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
10-26-2008 11:38
Theoretically it is possible. In practice, e-mail from outside of SL is horribly broken and (almost?) never arrives at the in-world object. Used to work a lot better. **shrug**
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
10-26-2008 13:05
ya ive been working on a way to hopefully get it working better, i noticed sometimes it helps to have 2-3 scripts waiting for emails in intervals
each be listing 15 seconds off each other if you know what i mean and it seams to get the emails almost instantly so if you have 15 scripts each waiting for emails you should in theory be able to get it instantly havent tested it that far and 90% of them seam to go threw |
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
10-26-2008 13:33
use a script to poll a database for cached commands to execute
having such a thing in my upload server script 1 checks the db every * seconds and send a commend to a second script to reset it`s timer script 2 checks if it recieves the timer message (linkedmessage) and if not, it restarts the main script when it finds a command in the db, it skips the timer and executes every line it finds in sequence when the db is empty it returns to the timer state untill it finds the next command might be abit of an overkill but it will get the job done and more reliable then email or xml-rpc along with a backup timer so each script can reset the other if it`s timer dies for what ever reason |
|
Very Vig
Registered User
Join date: 24 Oct 2008
Posts: 4
|
10-26-2008 13:36
I was using a similer system a while ago, so that I could control my clubs remotely. I was receiving email to show visitor trends (still am actually it works fine) and sending email to IM hostesses, change audio streams, update Display boards and in an emergency, activate security systems. All controlled from my cell phone. Alas it broke, and email in to SL has become so slow and unpredictable it was not worth continuing. I now have my hopes pinned on HTTPResponse as the replacements, and many added benefits too, though email will still play a role, it is used only to establish a url, all subsequent communication in, out and within SL will be HTTP based.
![]() |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
10-27-2008 09:41
Alicia's solution is the usual solution to this problem. Soon we should have HTTP server functionality in LSL. That should help matters as long as we can get around the incredibly transient nature of the URLs they are providing. See:
http://wiki.secondlife.com/wiki/LSL_http_server http://wiki.secondlife.com/wiki/LSL_http_server/beta EDIT: I just created a new JIRA requesting stable URLs, with a proposed solution: http://jira.secondlife.com/browse/SVC-3331 |
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
10-27-2008 12:26
Here is an example of a solution similer to the one Alicia uses, but rather than a database I just upload text files into //sites.google.com/
Here is the reader script but excluding all my interpreter code, just to give an Idea of reading the card. CODE
drop it in a prim, or use LSLEditor and touch it. _____________________
House of Keynes http://slurl.com/secondlife/Seopophang/237/151/104
![]() Romantica Yacht Club http://slurl.com/secondlife/Jeffrey/58/227/26 Salsa Romantica http://slurl.com/secondlife/Seopophang/77/91/94 |