Friends Online Notifier
|
|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
10-25-2008 15:24
I would like to get a little real-time pop-up notifier when friend comes online or goes offline, on my Windows desktop, when I am not inworld myself, in a similar visual way to how we get them when inworld.
A couple of questions then, if I may:
1. Is there an easy way to get a list of avatars on your Friends List, or would I have to manually enter them into the script, or notecard?
2. Once I have detected a friend coming online or going offline, what would be the best way to send that info offworld so my Windows pop-up notifier could alert me?
TIA
Rock
|
|
Zolen Giano
Free the Shmeats!
Join date: 31 Dec 2007
Posts: 146
|
10-25-2008 17:29
I'd wait a bit and maybe consider using the new http server in a prim functions comming. http://wiki.secondlife.com/wiki/LSL_http_serverYou could then use your web browser to view the data or build an application that polls your server in a prim every few mins for the data.
|
|
Crystal Falcon
Registered Silly User
Join date: 9 Aug 2006
Posts: 631
|
10-26-2008 10:18
So do you need to do it in-world for some reason? Why not simply use something like Firefox's page update checker with your friends online web page? 
|
|
Very Vig
Registered User
Join date: 24 Oct 2008
Posts: 4
|
10-26-2008 13:48
From: Rock Vacirca 1. Is there an easy way to get a list of avatars on your Friends List, or would I have to manually enter them into the script, or notecard? If you run a chat log, you can run the text file through a filter looking for any line that says xxxxxxx is online. Not the best way but the only one I can think of off hand 
|
|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
10-26-2008 18:12
From: Very Vig If you run a chat log, you can run the text file through a filter looking for any line that says xxxxxxx is online. Not the best way but the only one I can think of off hand  Thanks for the suggestions Very (and Crystal), but I thought I made it clear that I want this notifier when I am NOT inworld. In other words, I am not in SL, but I am at my PC working on a Word document. Suddenly, a little (SL-like) pop-up box appears saying Alexa Bouras is online. Now, I would really like to speak to Alexa, so I quickly login and see her before she goes. That is what I want. Now, to get a little windows pop-up is easy, so is getting the online and offline status of avis in SL, it is the bridge I am not too sure about, getting the SL online/offline status out of SL and triggering my windows pop-up. Right now, it is looking like llHTTPRequest is the best choice, using the POST method, containing the name of the avi. Rock
|
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
10-26-2008 18:39
last time you needed offworld things we weren`t smart enough this time how ever, KNOWing you can do vb  notecard with names script that checks if the names are online or offline add a list to store if the person was online/offline at last check if their status changed, make an http call to a database with the name and new status make a vb script that checks the database for new changes, if it detects a new line, it shows a popup with "name is now online or offline and then delete that row by checking the ID of the notification, it could display popups in a queue if different people logon or off at the same time when the vb app sleeps for 5 seconds befor fetching the next record and go on a timer of 1 minute if no rows are found lsl script could check every 5 minutes or so hows this for a change? 
|
|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
10-27-2008 06:29
From: Alicia Sautereau last time you needed offworld things we weren`t smart enough this time how ever, KNOWing you can do vb  notecard with names script that checks if the names are online or offline add a list to store if the person was online/offline at last check if their status changed, make an http call to a database with the name and new status make a vb script that checks the database for new changes, if it detects a new line, it shows a popup with "name is now online or offline and then delete that row by checking the ID of the notification, it could display popups in a queue if different people logon or off at the same time when the vb app sleeps for 5 seconds befor fetching the next record and go on a timer of 1 minute if no rows are found lsl script could check every 5 minutes or so hows this for a change?  Many thanks for that, it is quite similar to what I gleaned from the wiki. I have two questions about this approach: 1. What is the benefit in using a notecard with the names on, and then a notecard reader function in the script; as opposed to just putting the friends' UUIDs directly into a list in the script? 2. Is it really necessary to write to a database, then read it out again? Couldn't the http call be made directly to the pop-up? That is what I am thinking about right now. Thanks again, Rock
|
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
10-27-2008 08:33
From: Rock Vacirca Many thanks for that, it is quite similar to what I gleaned from the wiki. I have two questions about this approach:
1. What is the benefit in using a notecard with the names on, and then a notecard reader function in the script; as opposed to just putting the friends' UUIDs directly into a list in the script?
2. Is it really necessary to write to a database, then read it out again? Couldn't the http call be made directly to the pop-up? That is what I am thinking about right now.
Thanks again,
Rock we,, if using uuid`s it will be a headache trying to sort who is who unless adding their name as a comment, but, you`d also have to find their uuid`s to add to the notecard as there`s no llName2Key (as much as we wished it was there) i have no clue if you could do that directly to your pc, let alone VB, unless you have some sort of server running, the idea abouve is as far as my knowladge goes to get it out of world and some way of communication back to your pc 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
10-27-2008 09:22
If you don't mind honoring the permissions your friends have set for you (allow you to detect when they are online) you could just build a program to parse the results on the https://secure-web8.secondlife.com/account/friends.php page. That should be a very easy one. If you really want to use llRequestAgentData() to bypass the permissions, you'll have to use a solution like the ones mentioned above. If you have a public webserver where you can host a database and a little CGI code of some sort, you might setup an in-world object to continually rotate through your list and update the status in a database table so that the queries will be speedy. For this solution you'll have to manually synchronize your list of keys with your friends list unless you build a custom client to do it automatically. With the new HTTP server LSL functionality (if you can wait that long) you shouldn't NEED to write to an external database, but it still might be simplest to do so. EDIT: And since I mentioned the HTTP server functionality here, I'd also like to point out the JIRA issue I just created requesting stable script URLs, with a proposed solution: http://jira.secondlife.com/browse/SVC-3331
|
|
Erik Beaumont
Registered User
Join date: 27 May 2008
Posts: 1
|
11-02-2008 22:46
Try this free soft: SL Friends Monitor at www.SLProfiles.com
|