Announcement

Collapse
No announcement yet.

Last ten call of CID stored in device files?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    I do use the WafNetCallerID. Just wasn't sure about all the yac mentioned in the script.
    Thanx
    Tim
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

    Comment


      #17
      So Tim did you get it to work? You do not need yac only hsp.
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment


        #18
        I use YAC to send the caller id info to my PC so when I added the phone log for Netremote I just used the same variable that contained the caller id information thats all.

        John
        John

        Comment


          #19
          OK, tried the above script with no luck.
          Here is where I put it--

          Case 5 ' No New Calls
          If match = "NONE" then exit function
          If s_phone_list_code >= 3000 then exit function

          Case 6 ' No Calls
          If s_phone_list_code > 9 then exit function

          Case Else
          If s_phone_list_code = 5000 then exit function

          yac_time = now
          s_yac_msg = yac_time & ": " & s_phone_list_name & " " & s_ncid_number

          for xs = 9 to 1 Step -1
          i = hs.devicestring ("z"&(xs))
          hs.SetDeviceString "z"& (xs+1), i
          Next
          hs.SetDeviceString "z76", s_yac_msg


          end select
          '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++
          hs.waitsecs 0
          If QuietMode = "GONE" and s_phone_list_code > 0 then exit function
          'hs.WriteLog "Caller ID", "Line Status - 1: " & hs.devicevalue(PhoneInUs

          What should I try next?
          No HSP just using WAFNet CallerID
          thanx
          Tim

          ps-futher testing reveled that "z76" did populate, but "z1"-"z10" did not.
          tried it 12 times with my cell calling my home number.
          Last edited by fungun; January 24, 2005, 05:32 PM.
          FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

          HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

          Comment


            #20
            I think its where you have it in your script. Not sure what your whole WAFNetcaller ID script looks like but you need to make sure that the code is in the correct spot and that its gets executed each time. Also I am not sure where you got the 'yac_time' from. My code sits between Example 4 and Example 5. It also has some code to update my Netremote screens, wake the monitor up as well as mute my 5 zone whole house audio system. Below is the basic code that will store the last 14 calls in the device "q". It also stores the current call info in 'q1'. Ignore the Netremote lines. Also I am pretty sure that BraveSirRobbin has adapted this code with his Mainlobby setup. Remember you will need to handle the code for Krumpy's plugin to get the CID info to show up on Mainlobby.

            s_yac_msg = s_ncid_date & ": " & s_phone_list_name & " " & s_ncid_number

            for xs = 14 to 1 Step -1
            i = hs.devicestring ("q"&(xs))
            hs.SetDeviceString "q"& (xs+1), i
            hsg.NetRemote_Send "Set", "NP.CallerID." & (xs+1) , "> "& i
            Next

            hs.SetDeviceString "q1", s_yac_msg
            hsg.NetRemote_Send "Set", "NP.CallerID.1", s_yac_msg


            John


            Here is my pop-up phone log. When the call comes in it announces the caller via TTS then updates the 'q' devices, pop ups this panel on the Netremote screen and wakes up the monitor.
            Attached Files
            Last edited by jwilson56; January 24, 2005, 05:52 PM.
            John

            Comment


              #21
              I copied the one from BSR a few posts up cause i wanted the time with it.
              Strange that the z76(current caller) works and the other devices don't show anything.

              I put it at the end of the "call screening section"
              Thanx
              Tim
              FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

              HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

              Comment


                #22
                Originally posted by fungun
                OK, tried the above script with no luck.
                Here is where I put it--
                for xs = 9 to 1 Step -1
                i = hs.devicestring ("z"&(xs))
                hs.SetDeviceString "z"& (xs+1), i
                Next
                hs.SetDeviceString "z76", s_yac_msg
                The problem is your device numbers.

                This loop is expecting to find the last caller ID in z10 and then move everything else up, I.e. 9 to 8, 8 to 7....

                It looks like you populate the latest CID in device Z76.

                Please tell me the device codes you are using.

                Example if using Z76 for last number and Z75 for next and so on you could change you loop to look like this:
                PHP Code:
                for xs 75 to  66 Step -' this will give last 10.
                i = hs.devicestring ("z"&(xs))
                hs.SetDeviceString "z"& (xs+1), i
                Next
                hs.SetDeviceString "z76", s_yac_msg 

                Comment


                  #23
                  Perfect,
                  Thanx sbessel
                  That did the trick
                  I soon as I changed the device numbers they started to populate the info.
                  Thanx again, Tim
                  FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                  HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                  Comment


                    #24
                    OK now this is weird.
                    After I changed the script and renumbered the devices, I had the last 2 callers displayed.(they were the same caller) Then my son called. I watched as it erased z76 and z75 to "unknown" then repopulated z76 with my sons cell number. z75-z66 are still empty.
                    Beats me??????????
                    Thanx
                    Tim
                    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                    Comment


                      #25
                      will this work with just using Yac and no NetCallerID and no HSP ??

                      my system modem is catching callerID info just fine (works great with MainLobby MLCallerID). But i would like to keep the log (shutting down MainLobby erases the MLCallerID log)

                      thanks,
                      steve

                      Comment


                        #26
                        Originally posted by fungun
                        OK now this is weird.
                        After I changed the script and renumbered the devices, I had the last 2 callers displayed.(they were the same caller) Then my son called. I watched as it erased z76 and z75 to "unknown" then repopulated z76 with my sons cell number. z75-z66 are still empty.
                        Beats me??????????
                        Thanx
                        Tim
                        It just keeps moving the 'call data' from one device to the next, for a proper test you should have 10 calls, preferably from different numbers.

                        Comment


                          #27
                          Bwally you can adapt this rolling buffer idea to anything you want to keep track of. Just make the appropreiate changes.

                          John
                          John

                          Comment


                            #28
                            John,
                            What do I need to get the netremote pop up? I would guess the more recent pay for version. I don't expect a full tutorial here but can you point me in the right direction?
                            John

                            Comment


                              #29
                              I installed the script as originally posted with the the modification of yac_time. Works just fine. However, how would I modify the script to change the format of the s_ncid_number from "1231234567" to something like "(123) 123-4567". This sure would make it eaiser to read when I display in the on ML Scene.

                              Any ideas?
                              Regards, Bob

                              Comment


                                #30
                                Here is how I finally figured out how to get the last 10 callers into virtual devices to be displayed in MainLobby.
                                Tim
                                Attached Files
                                FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                                HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                                Comment

                                Working...
                                X