Announcement

Collapse
No announcement yet.

xapmcsWebControl

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

    #61
    Originally posted by Michael McSharry View Post
    With the xAP Message Viewer determine if 17,0 or 17.0 is being sent by xapmcsWebControl in the xapbsc messages. I suspect xapmcsWebControl is not converting the .0 correctly. I believe I found the issue and updated xapmcsWebControl 1.0.2.4. I also updated xapmcs1Wire to handle the 24 hour clock for Today/Tomorrow time formatting.
    Hello

    I installed the last xapmcswebcontrol 1.0.2.4 (on its web page, it's indicated 1.0.2.3 btw), I've the following message sent (xfx viewer)
    Code:
    xap-header
    {
    v=13
    hop=1
    uid=FF.0025:00
    class=Homeseer.Event
    source=mcs.WebControl.domo-PC
    }
    Event.Log
    {
    Time=21/12/2011 22:04:53
    Type=xapmcsWebControlDebug
    Data=GetCGI Response <response><op1>0</op1><op2>0</op2><op3>0</op3><op4>0</op4><op5>0</op5><op6>0</op6><op7>0</op7><op8>0</op8><ophex>0x00</ophex><var1>0</var1><var2>0</var2><var3>0</var3><var4>0</var4><var5>0</var5><var6>0</var6><var7>0</var7><var8>0</var8><ip1>0</ip1><ip2>0</ip2><ip3>0</ip3><ip4>0</ip4><ip5>0</ip5><ip6>0</ip6><ip7>0</ip7><ip8>0</ip8><ts1>17.0 C</ts1><ts2>10.5 C</ts2><ts3>11.8 C</ts3><ts4>10.2 C</ts4><ts5>17.6 C</ts5><ts6>unbound</ts6><ts7>unbound</ts7><ts8>unbound</ts8><tstat1>ok</tstat1><tstat2>ok</tstat2><tstat3>ok</tstat3><tstat4>ok</tstat4><tstat5>ok</tstat5><tstat6>unbound</tstat6><tstat7>unbound</tstat7><tstat8>unbound</tstat8><romcode1>28ABB76D0300</romcode1><romcode2>2899926D0300</romcode2><romcode3>2821956D0300</romcode3><romcode4>28E2C66D0300</romcode4><romcode5>28CC39700300</romcode5><romcode6>000000000000</romcode6><romcode7>000000000000</romcode7><romcode8>000000000000</romcode8><hs1>49 %</hs1><aip1>0</aip1><aip2>2</aip2><aip3>0</aip3><aip4>360</aip4><aip5></aip5><aip6></aip6><aip7></aip7><aip8></aip8><date>12/21/2011</date><time>22:04:54</time><datetime>12/21/2011 22:04:54</datetime><ipaddr>192.168.0.120</ipaddr><macaddr>00:22:12:02:00:2B54</macaddr><name>WEBCONTROL     </name></response>
    }
    and in xfx viewer detailed for this sensor:
    Code:
    xap-header
    {
    v=13
    hop=1
    uid=FF.0025:1010
    class=xAPBSC.info
    source=mcs.WebControl.domo-PC:Temp_VMC_pulsion_frais.1921680_120___01.Temperature
    }
    input.state
    {
    State=OFF
    Text=17,0
    }
    So, the answer to your question is "17.0 C"

    Strange this is that also on the web interface, when forcing a reading, the "changed" column is not updated: (screenshot webcontrol.jpg attached). timestamp is still 2 days ago.

    Thank you again for your very efficient support :-)

    Thomas
    Attached Files

    Comment


      #62
      Originally posted by Michael McSharry View Post
      I also updated xapmcs1Wire to handle the 24 hour clock for Today/Tomorrow time formatting.
      Hello

      I install the new release to solve the issue.

      Not sure about what you put in the ZIP file for 3.0.4.2 release:

      -binary EXE is from 27/2/2011
      -on web page, it's indictaed 3.0.2.3
      -and time is still 12h mode (10:36 instead of 22h36)

      despite I kill the previous 1wire process before replacing by "new" release

      Thomas
      Attached Files

      Comment


        #63
        Looks like the 1 wire upload never made it. I redid it.

        Comment


          #64
          Originally posted by Michael McSharry View Post
          Looks like the 1 wire upload never made it. I redid it.
          thank you Michael,

          both xapmcs1wire and xapmcswebcontrol have been fixed correctly :-)

          Comment


            #65
            Hello Michael,

            I would like to change the port number of my webcontrol board (81 instead of 80) and activate http login/password.

            Is that possible to do this ? Or maybe this is already there with hidden options ?

            Thank you

            Comment


              #66
              Unable to add new devices

              I have been using this plug in for a few years to read data from a webcontrol board I had and it worked perfectly, so I bought a 2nd board, which I have configured.

              All works perfectly, until I restart homeseer, then the devices (temp sensors) do not get updated.

              I also notice that they are no longer setup in the mcsXAP setup page.

              I also get messages like this in the event log:

              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.Tempera ture','',0,0,'FF.0025:2010',0,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteScalar SELECT count(Source) as extant FROM xAPBSC WHERE upper(Source)='MCS.WEBCONTROL.HOMESEER2ECKING_TEMP.192168100_75__02.FILTER' Line 0 Some kind of disk I/O error occurreddisk I/O error
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteScalar SELECT count(Source) as extant FROM xAPBSC WHERE upper(Source)='MCS.WEBCONTROL.HOMESEER2ECKING_TEMP.192168100_75__02.LLON' Line 0 Some kind of disk I/O error occurreddisk I/O error
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.UL','', 0,0,'FF.0025:2015',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.Filter' ,'',0,0,'FF.0025:2018',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteScalar SELECT count(Source) as extant FROM xAPBSC WHERE upper(Source)='MCS.WEBCONTROL.HOMESEER2ECKING_TEMP.192168100_75__02.ULOFF' Line 0 Some kind of disk I/O error occurreddisk I/O error
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.LLOn','',0,0,'FF.0025:202A',1,' 2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.Bias ','',0,0,'FF.0025:2037',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.LLOn',' ',0,0,'FF.0025:201A',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.LL','', 0,0,'FF.0025:2014',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.ULOf f','',0,0,'FF.0025:203B',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.Filt er','',0,0,'FF.0025:2038',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.UL', '',0,0,'FF.0025:2035',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.RateFil ter','',0,0,'FF.0025:2019',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.LL', '',0,0,'FF.0025:2034',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.LLOn ','',0,0,'FF.0025:203A',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.Filter','',0,0,'FF.0025:2028',1 ,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.UL','',0,0,'FF.0025:2025',1,'20 12-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.Bias',' ',0,0,'FF.0025:2017',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.Rate Filter','',0,0,'FF.0025:2039',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:02 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.Bias','',0,0,'FF.0025:2027',1,' 2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:03 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.RateFilter','',0,0,'FF.0025:202 9',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:03 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Pub_Temp.192168100_75__01.ULOff', '',0,0,'FF.0025:201B',1,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:03 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.ULOff','',0,0,'FF.0025:202B',1, '2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:03 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.LL','',0,0,'FF.0025:2024',1,'20 12-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:03 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2ecking_Temp.192168100_75__02.Temperature','',0,0,'FF.0025:20 20',0,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed
              04/12/2012 12:32:03 ~!~mcsXap~!~ExecuteCommand INSERT INTO xAPBSC (Source, DC, Reject, Accept, UID, Controllable, DetectedDate, MaxLevel) Values ('mcs.WebControl.Homeseer2:Fridge_Temp.192168100_75__03.Temp erature','',0,0,'FF.0025:2030',0,'2012-12-04 12:32:02','') Line 0 The database disk image is malformeddatabase disk image is malformed


              any ideas whats going wrong?

              I am using version V3.0.0.0/3.0.0.11

              Comment


                #67
                I have now resolved this issue, I restored the mcxxap.db file with a prevous version and all looks good now

                Comment


                  #68
                  xAPmcsWebControl

                  I recently began working with a CAI WebControl and have it integrated with Homeseer. Everything is working great except when I restart my server, I am losing the invert relay setting within xAPmcsWebControl. I can set it using the status page without any issue and it will remain set until I restart.

                  Is there somewhere in the config file that I can force the invert for the relay to remain checked?
                  Last edited by H Crew; December 23, 2012, 10:41 AM.

                  Comment


                    #69
                    Are you using BRE or PLC WebControl? Do you experience the problem only when restarting the server, when restarting Homeseer, or when restarting xapmcsWebControl?

                    Comment


                      #70
                      Hi Michael,

                      Thanks for the response. I am using the PLC version and I can duplicate the problem by simply closing the xAPmcsWebControl program and restarting it.

                      Comment


                        #71
                        The configuration status of the hardware is obtained by HTTP calls to the WebControl on startup. For the BRE version the IO setup status is obtained using the same technique that is available to a user with the browser UI. For the PLC the IO setup is populated with javascript so is not available using the same technique. I posted a request for the CGI commands that can be used for the PLC to get this information on their user support forum. We will see what response is provided.

                        Since xapmcsWebControl cannot currently query the polarity it assumes all inputs and outputs are normal polarity. If CAI is unable to provide a method to get this information then two choices are available. One is for xapmcsWebControl to remember the last setup at the time it shutdown and restore it when it starts again. This goes against the basic concept that the WebControl holds the truth about the state of the system. The other is to change the user (your) logic so that only non-inverted inputs and outputs are used with WebControl for the PLC version.

                        Comment


                          #72
                          I have recently installed the XapMcsWebControl plugin for Homeseer and controlling the DO's for the two WebVontrol boards works fine.

                          I have now added two additional devices for each WebControl board, a temperature device and a status device. Both devices are not updated in Homeseer and when looking at the xAP Messages in the Message Viewer I noticed some errors related to conversion of date and time:

                          xap-header
                          {
                          v=13
                          hop=1
                          uid=FF.0025:00
                          class=Homeseer.Event
                          source=mcs.WebControl.HS-1000
                          }
                          Event.Log
                          {
                          Time=3-3-2013 22:40:58
                          Type=xapmcsWebControl
                          Data=Sensor 1921681_221___04 () Conversion from string "0,/03/2013" to type 'Single' is not valid. at 82
                          }

                          xap-header
                          {
                          v=13
                          hop=1
                          uid=FF.0025:00
                          class=Homeseer.Event
                          source=mcs.WebControl.HS-1000
                          }
                          Event.Log
                          {
                          Time=3-3-2013 22:40:55
                          Type=xapmcsWebControl
                          Data=Sensor 1921681_221___05 () Conversion from string "22:40:52" to type 'Single' is not valid. at 82
                          }

                          Not sure if this is related to the devices not being updated but I like to know if somebody has an idea to solve this.

                          Comment


                            #73
                            Did some more digging and found that changing the short date and time format from H:mm:ss and d-MM-yy to HH:mm:ss and dd-MM-yy solved the issue.

                            Please add ths to the doc as a pre-req.

                            Comment


                              #74
                              Likely related. A number was expected at this time and it looks like a date is in the string. The particular version of WebControl firmware will make a difference since CAI changed how they present data over time. The biggest change if between BRE and PLC versions.

                              It is likely the temperature sensor is causing the problem. The _4 and _5 are both temperature sensors. There is a debug option that I think will show the data returned from the WebControl.

                              I dont know what you mean by the status device being added.

                              Comment


                                #75
                                I am trying to get the status of the 8 VARs on my webcontrol board reported into homeseer. I can't see them listed on MCS Web Control Status, but can see them fine on the CAI webcontol status page. How can I get the status of these vars?

                                Thanks

                                Jim

                                Comment

                                Working...
                                X