Announcement

Collapse
No announcement yet.

Xap & MCS Temperature

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Xap & MCS Temperature

    Not sure were to post this ? But I have a odd problem with HS web display of MCS temps and voltage of temp08. I am displaying the temps with an icon and voltage with a small meter. what happens is the Icons go away and just displays a numeric value then they may come back then go away again.

    This all hapened when I intalled the Xap plug-in. I have proven this by removing it and all is then fine again.

    Has any one ran into this?
    HS2 Environment
    Zotac 1.83 GHz Quadcore
    HomeSeer Way2Call
    Netiom-Xap board
    opnode 1-wire 1.2.7
    Plug-In's
    WeatherXML 1.0.0.32
    Pwr Link USB 1.0.0.13
    mcsTemp V6.2.0.14
    mcsXap V3.0.0.0/3.0.0.20
    IM Connector 4.87.2.5
    Sip Connector 2.56.2.4
    RFXCOM 15.0.0.22
    Odroid X2
    Asterisk 11.5.1
    FreePBX 2.11.0.42
    WebMin 1.720
    Xap Switchboard by Mi4

    There is no place Like 127.0.0.1

    #2
    You must be parsing the temperatature text somehow to convert it into an icon.

    I am guessing but probably the text coming via xAP must be slightly different and in a form the parser does not recognise?

    Kevin

    Comment


      #3
      mcsTemperature populates the deviceString and deviceValue of the virtual devices. The strings are populated as formatted HTML or raw data depending upon settings. Do you have the xap plugin setup to write to the same virtual devices as mcsTemperature?

      mcsTemperature uses it own set of icons. These of course can be replaced by your own of the same name. It looks like you are formatting another web page with the contents from mcsTemperature virtual devices. Same conclusion as above with two plugins writing to the same virtual device.

      Comment


        #4
        I am using a temp08 connected to com port 1 on the HS computer.

        The Device codes for my MCS temp sensors are as follows:

        NAME CODE
        Voltage 770000004CC0C326A [66
        Voltage4 [65
        Sensor Error Count [63
        Temp05 Error Count [62
        DS9097 Error Count [61
        Composite Error Rate [60
        Outside [4
        Mstr Bd Rm [3
        Attic [2
        Computer Cabnet [1

        None of this should be in the Xap Conduit but some how it thinks it is.

        The Xap stuff starts with code _6 to _46 so I don't see the problem unless it does not see [ , _ befor the code number.

        Here is a cut of the Xap debug log:

        1/13/2005 7:01:03 PM~!~xAP Conduit~!~Setio3
        1/13/2005 7:01:06 PM~!~xAP Conduit~!~xAP Heartbeat from KCSoft.Hub.mcs-backup
        1/13/2005 7:01:06 PM~!~xAP Conduit~!~xAP Heartbeat from KCSoft.Hub.mcs-backup
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Timer check
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device value change - Computer Cabnet. Sending xAP message
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device value change - 83-83
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device string change - -<TABLE><TBODY><TR><TD></TD><TD vAlign=center align=left></TD></TR></TBODY></TABLE>
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Timer Trigger event on device change 911 ComputerCabnet.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Running Sequence Device\911 ComputerCabnet.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Finished Sequence Device\911 ComputerCabnet.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device value change - Attic. Sending xAP message
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device value change - 43-44
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device string change - -<TABLE><TBODY><TR><TD></TD><TD vAlign=center align=left></TD></TR></TBODY></TABLE>
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Timer Trigger event on device change 912 Attic.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Running Sequence Device\912 Attic.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Finished Sequence Device\912 Attic.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device value change - Mastr Bd Rm. Sending xAP message
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device value change - 67-66
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Device string change - -<TABLE><TBODY><TR><TD></TD><TD vAlign=center align=left></TD></TR></TBODY></TABLE>
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Timer Trigger event on device change 913 MastrBdRm.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Running Sequence Device\913 MastrBdRm.dvevt
        1/13/2005 7:01:10 PM~!~xAP Conduit~!~Finished Sequence Device\913 MastrBdRm.dvevt
        1/13/2005 7:01:24 PM~!~xAP Conduit~!~xAP Heartbeat from mi4.xRouter.mcs-backup
        1/13/2005 7:01:24 PM~!~xAP Conduit~!~xAP Heartbeat from mi4.xRouter.mcs-backup



        See were its writing to my temp images and values not sure how it getting into it ?
        Any thing else I should check?
        HS2 Environment
        Zotac 1.83 GHz Quadcore
        HomeSeer Way2Call
        Netiom-Xap board
        opnode 1-wire 1.2.7
        Plug-In's
        WeatherXML 1.0.0.32
        Pwr Link USB 1.0.0.13
        mcsTemp V6.2.0.14
        mcsXap V3.0.0.0/3.0.0.20
        IM Connector 4.87.2.5
        Sip Connector 2.56.2.4
        RFXCOM 15.0.0.22
        Odroid X2
        Asterisk 11.5.1
        FreePBX 2.11.0.42
        WebMin 1.720
        Xap Switchboard by Mi4

        There is no place Like 127.0.0.1

        Comment


          #5
          You indicate that you are displaying with small icons and meter. Where are these being displayed? Do you have a script that collects data and formats it onto a web page? Does it format it into another virtual device? Are you just looking at the Homeseer status page for device [4 or similiar and seeing its format change?

          Comment


            #6
            Are you just looking at the Homeseer status page for device [4 or similiar and seeing its format change?[/QUOTE]

            Yes the HS web status. If you look at my HS site you can see from time to time the temp number icons come and go.
            HS2 Environment
            Zotac 1.83 GHz Quadcore
            HomeSeer Way2Call
            Netiom-Xap board
            opnode 1-wire 1.2.7
            Plug-In's
            WeatherXML 1.0.0.32
            Pwr Link USB 1.0.0.13
            mcsTemp V6.2.0.14
            mcsXap V3.0.0.0/3.0.0.20
            IM Connector 4.87.2.5
            Sip Connector 2.56.2.4
            RFXCOM 15.0.0.22
            Odroid X2
            Asterisk 11.5.1
            FreePBX 2.11.0.42
            WebMin 1.720
            Xap Switchboard by Mi4

            There is no place Like 127.0.0.1

            Comment


              #7
              From your xap debug log it looks like the xap plugin is using the event callbacks on devicestring changes. If I recall correctly the callback occurs as the string is pending a change, but before the string change is actually posted. I do not know if any processing withing the xap plugin could disrubt this or if the xap plugin is ever writing to the device string as part of its processing of this event. I also do not know if the event is handled as part of its scheduled processing or if another winsock message is initiated immediately. These are all things internal to the xap plugin.

              I can add a mirrored write to a file for all writes to the mcsTemperature device strings done by mcsTemperature, but I suspect that all that will be found is that the plugin is writing correctly and something else is changing it later. Since the problem seems to only occur with the xap plugin is also installed, then I would work with James to see what insight he can provide on what he does in response to the string change homeseer event.

              Comment

              Working...
              X