All very well documented with examples in the online documentation at http://big5.ivanv.com/Expressions
Announcement
Collapse
No announcement yet.
Integrate Grandstream gds3710 video doorbell
Collapse
X
-
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
-
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
-
Here is the result. The string did not split You get a funny Hs3 device with a device inside a device
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
- Likes 1
Comment
-
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
-
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
Comment