Facility Control

 View Only
  • 1.  HTTP Listener get Payload/Body from Request?

    Posted 01-29-2022 04:03

    Hey guys, Im pretty new to webstuff and Dashboard and im kind of been banging my head against a wall to get this to work but seems like I need some help.

    To let a python script communicate with my dashboard setup I want to do it via HTTP Requests. I successfully set up a listener (I found scome script I copy pasted ;P)

    When I print my Event I also see the Payload at the bottom of the Event texts:
    I see theres a hpsvalue:123 pair for example. But I cant seem to figure out how to access those values. Coming from beginner programming stuff I would guess it would be simple as event.hpsvalue or something but seems like web/communication does make it more complicated than that.

    Any help is much appreciated!

    09:50:48:221: ------WebKitFormBoundaryb3xkRTgnjz4E3Is2
    
    09:50:48:223: Content-Disposition: form-data; name="hpsvalue"
    
    09:50:48:227: 
    
    09:50:48:231: 123
    
    09:50:48:233: ------WebKitFormBoundaryb3xkRTgnjz4E3Is2
    
    09:50:48:238: Content-Disposition: form-data; name="hps1value"
    
    09:50:48:241: 
    
    09:50:48:243: 234
    
    09:50:48:246: ------WebKitFormBoundaryb3xkRTgnjz4E3Is2--


    ------------------------------
    Marius Baumann
    ------------------------------


  • 2.  RE: HTTP Listener get Payload/Body from Request?

    Posted 01-31-2022 13:25
    Hi Marius,

    Are you able to post the code you have already?   It would be easier to help that way.

    Ben

    ------------------------------
    Ben Gatien
    Ross Video
    ------------------------------