Announcement

Collapse
No announcement yet.

Integrate Grandstream gds3710 video doorbell

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

    #16
    All very well documented with examples in the online documentation at http://big5.ivanv.com/Expressions

    Comment


      #17
      Click image for larger version

Name:	bigg.JPG
Views:	213
Size:	96.8 KB
ID:	1390913

      It did not split it up

      Comment


        #18
        Click image for larger version

Name:	nosplit.JPG
Views:	217
Size:	81.1 KB
ID:	1390933

        Tried it several more ways but it does not split up the string.

        Comment


          #19
          Click image for larger version

Name:	bigerror.JPG
Views:	202
Size:	176.8 KB
ID:	1390970

          Here are some more attempts and errors and no split of the string

          Comment


            #20
            Show me your big5 profiles both http post and http get

            Comment


              #21
              http://192.168.0.12:2222/goform/apicmd?${Input} is the get



              http://192.168.0.12:2222//goform/api...d=0&user=admin is the post

              Comment


                #22
                Wait. Are you putting the expression that I gave you in the payload. It should go in the http post profile

                Comment


                  #23
                  Pls show screenshots of the profiles.

                  Comment


                    #24
                    Click image for larger version

Name:	post.JPG
Views:	193
Size:	44.3 KB
ID:	1390995Click image for larger version

Name:	post1.JPG
Views:	192
Size:	103.4 KB
ID:	1390996Click image for larger version

Name:	post2.JPG
Views:	193
Size:	104.2 KB
ID:	1390997 There is nothing in the profiles except the url

                    Comment


                      #25
                      All clear. You should put the expressions that I gave you in the POST profile’s device value expression box.
                      Actually I’m not sure you need POST profile for that as there is no payload to post. It works anyhow you nay keep it but the expressions go in the profile. Furthermore you will need matching names. So in the name expressions box put this

                      “key1” && “key2”

                      so that the two values have a named device in hs3 to go to

                      Comment


                        #26
                        Here is the result. The string did not split You get a funny Hs3 device with a device inside a deviceClick image for larger version

Name:	606.JPG
Views:	187
Size:	15.8 KB
ID:	1391130

                        I put “key1” && “key2” in the profile device name epression box and I put Substring(input, 32) && Substring(input, 33,20) in the Device value expression box

                        http://192.168.0.12:2222//goform/api...d=0&user=admin is the post

                        Comment


                          #27
                          Jun-04 6:06:45 AM Big5 [Big5 Plugin] [HTTP LBK Gds3710 - POST http://192.168.0.12:2222//goform/api...d=0&user=admin IN]: -8" ?>
                          Jun-04 6:06:45 AM Big5 Error (Big5Connection) at Flee.PublicTypes.ExpressionContext.DoParse() at Flee.PublicTypes.ExpressionContext.Parse(String expression, IServiceProvider services) at Flee.InternalTypes.Expression`1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression`1..ctor(String expression, ExpressionContext context, Boolean isGeneric) at Flee.PublicTypes.ExpressionContext.CompileDynamic(String expression) at HSPI_Big5.Big5Connection.EncodeStringForTransmission(String message, String input)
                          Jun-04 6:06:45 AM Big5 Error (Big5Connection) SyntaxError: unexpected character '“', on line: 1 column: 2
                          Jun-04 6:06:45 AM Big5 Error (Big5Connection) at Flee.PublicTypes.ExpressionContext.DoParse() at Flee.PublicTypes.ExpressionContext.Parse(String expression, IServiceProvider services) at Flee.InternalTypes.Expression`1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression`1..ctor(String expression, ExpressionContext context, Boolean isGeneric) at Flee.PublicTypes.ExpressionContext.CompileDynamic(String expression) at HSPI_Big5.Big5Connection.EncodeStringForTransmission(String message, String input)
                          Jun-04 6:06:45 AM Big5 Error (Big5Connection) SyntaxError: unexpected character '“', on line: 1 column: 1
                          Jun-04 6:06:45 AM Big5 [Big5 Plugin] [Raw message in]: 0dda4b7b7723033bbee58343372b71a50T8T9CMYTDQENYQBBACAW
                          Jun-04 6:06:45 AM Big5 [HttpConnection] [HTTP POST http://192.168.0.12:2222//goform/api...d=0&user=admin OUT]: { "status": "ok" }
                          Jun-04 6:06:45 AM Big5 [Big5 Plugin] message =
                          Jun-04 6:06:45 AM Big5 [Big5 Plugin] profile = 425981
                          Jun-04 6:06:45 AM Big5 [Big5 Plugin] type = HTTP
                          Jun-04 6:06:45 AM Big5 [Big5 Plugin] Debugging dictionary with 3 keys
                          Jun-04 6:06:45 AM Event Event Trigger "GDS3710 Send First Post"
                          Jun-04 6:06:45 AM Event Event GDS3710 Send First Post triggered by the events page 'Run' button.


                          This is the log from the above profile

                          Comment


                            #28
                            I got the devices to look right by fixing the quotation marks but it still doe not split the string It works in the sandbox but not in the profileClick image for larger version  Name:	gd.JPG Views:	0 Size:	17.3 KB ID:	1391138

                            Comment


                              #29
                              1. Clear up the box Request/Response in the profile that contains status:OK . It doesn't seem to affect anything but you don't need unnecessary data travel back and forth.
                              2. Change the expression as shown below and remove any spaces around && in the value expression box .

                              Substring(input,1,32)&&Substring(input,33,20)


                              3. Run your event few times and show me the log.

                              It seems that you receive some "extras" over this input such as "-8?>". Big5 takes this data and overrides the real useful information with it. Fortunately Big5 has ways to filter it, using the "Device affect expression" box. Let's first find what it is in the Log and than we will filter it.

                              Comment


                                #30
                                Click image for larger version  Name:	thursday3.JPG Views:	0 Size:	186.3 KB ID:	1391238Click image for larger version  Name:	Thursday.JPG Views:	0 Size:	96.5 KB ID:	1391239Click image for larger version  Name:	thursday1.JPG Views:	0 Size:	17.3 KB ID:	1391240


                                Even if you go for a single value and try to get just one number from the string split it does not work

                                I have tried at least 50 different combinations of expressions and entries

                                Comment

                                Working...
                                X