1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2017
    Rep Power

    data push from logger to server URL


    I have a data logger (electrical meter for a building) that is capable of pushing data to a server URL. The technical documents state that the logger uses HTML POST and it will transmit the data in XML format.

    I have a Python script that I want try and use that will parse the data from XML to CSV, but I dont know what I need to do on the server to make it ready to accept the HTML POST.

    Do I need to setup the server as an HTML server? Any recommendations for this would be greatly appreciated...

  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2003
    in da kitchen ...
    Rep Power
    you'll need to set up a consumer for the XML, beit an application or a webserver

    install wamp or lamp stack, configure the data logger to divert to your PC, eg http://192.168.1.x/datalogger.php,

    The python reference is handy to have but there's other XML->CSV scripts out there
    without exception, there is no rule ...
    Handmade Irish Jewellery
    Targeted Advertising Cookie Optout (TACO) extension for Firefox
    The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones

    09 F9 11 02
    9D 74 E3 5B
    D8 41 56 C5
    63 56 88 C0
    Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
    -- Jamie Zawinski
    Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...

IMN logo majestic logo threadwatch logo seochat tools logo