top of page

Acerca de

API FOR VITAL SIGNS

INTRODUCTION
The Really Needy HUD tracks 5 vital signs internally:
• Heart rate (HR)
• Body temperature (BT)
• Respiratory rate (RR)
• Blood pressure (BP)
• Oxygen saturation (SpOâ‚‚)


If you are a maker of medical equipment or content creator, and would like to create medical-themed products which are compatible with the Really Needy HUD, this page may be useful to you. It contains information on
- how to request vital signs information from the Really Needy HUD, and
- what format the response comes back in.

REQUIREMENTS

​

  1. You need to know some basic LSL scripting. I will not be able to teach you scripting but there are other resources
    eg. https://wiki.secondlife.com/wiki/LSL_Tutorial and the "NCI Scripters" group in SL.

     

  2. You should own a Really Needy HUD so you can test your product with it.


â–¸  CHANNEL
  Send your request on channel -444 (using llSay, llWhisper or llRegionSayTo) to the Really Needy HUD of the user.

â–¸  FORMAT OF REQUEST
  The message your script is sending should comply with this format:
  READ,[Vital],[Reply channel]
   
  â–¸ [Vital] can be any of the following values:
           HR
           BT
           RR
           BPS
           BPD
           SATS
           ALL
       
  â–¸ [Reply channel] should be a channel your script is listening on.
   
â–¸  FORMAT OF RESPONSE
  If your request is valid, the Really Needy HUD will respond with a reply on the channel which you have specified.
  The reply format will be one of the following lines, corresponding to the [Vital] value you used in the request:
       HR,[value]        
       BT,[value]
       RR,[value]
       BPS,[value]
       BPD,[value]
       SATS,[value]
       ALL,HR,[value1],BT,[value2],RR,[value3],BPS,[value4],BPD,[value5],SATS,[value6]

â–¸  SAMPLE SCRIPT
  You may refer to the following script as an example of how to format the request and decode the reply message.
  Please create a new script in your inventory and paste the following contents inside your script and save.


  //----------------
   
  default
  {
       state_entry()
       {
           llListen(5,"","","");   // set the listening channel to any channel you want
       }
   
       touch_start(integer total_number)
       {
           /* Format of request to Really Needy HUD to read vital signs information is READ,[Vital],[Reply channel] */
           llSay(-444, "READ,HR,5");   // the end number should correspond with the channel you are listening on
       }
       
       listen(integer channel, string name, key id, string msg)
       {
           llOwnerSay("Patient = "+llKey2Name(llGetOwnerKey(id)));
           //llOwnerSay("Response received = "+msg);   // uncomment start of this line to see response from Really Needy HUD
           
           list param = llParseString2List(msg,[","],[""]);
           string vital = llList2String(param,0);
           string value = llList2String(param,1);
           
           if (vital == "HR") llOwnerSay("Heart Rate = "+value);
       }
  }
   
  //----------------

API FOR MEGA WEATHER MAKER

Coming soon

  • Discord
  • Facebook
  • Twitter
  • Instagram

© 2019-2025 The Really Useful Scripts Corner

bottom of page