0

Append ID



What is the append funtion field in the BA server setup used for? I have set it and see it in the current-sync.xml file. I was looking to identify each BS unit in my apache logs via this name think it was appended to the HTTP GET field thanks bill

9 comments

  • 0
    Avatar
    RokuLyndon


    append id addes the serial number of the unit to the name that's reported. that's how it works for simple networking. Even if you don't use append id, each unit reports it's serial number in the header when it contacts the server. So, you don't need appendID to get the serial number.
  • 0
    Avatar
    Bsanderson


    is there any way to get the unit to display it's ID is it the # that is displayed below the wifi mac address and above the version on the boot BS screen with no SD care?
  • 0
    Avatar
    Bsanderson


    I check the HTML Agent Headers in Apache and can only see the standard

    HTTTP_USER_AGENT   HD210w / 3.3.78 Rocku BrightSign"

    I set the append to a location name.  where is the Apend data appended too?

    thanks
    bill

    I need to identify each box as they check for customer Ads.
  • 0
    Avatar
    RokuLyndon


    I don't know much about http, but I know the unit serial number is included when the box pings the server.

    I'm pasting in a sample php script one of our webguys wrote to parse usage logs coming from an older version of brightauthor. Maybe, there's something useful there.

    I have a very simple web server I use for testing, HFS, running on my computer. If I right-click on any of the connections established with the server from one of my brightsign units, the serial number and model # are always included. THere's nothing special about this webserver, and I haven't customized it in anyway, but it's getting the model and serial number info from the unit.

    <?php

    if(!file_exists('data')){
    mkdir('data', 0777);
    }

    $dataRecieve = FALSE;
    $deviceID = "";

    $datetime=date('D F j, Y H:i');
    $fileStream .= "begin! \n";
    $fileStream .= "Server time: ".$datetime."\n";

    if(!empty($_SERVER['HTTP_DEVICEID'])) {
    $deviceID = $_SERVER['HTTP_DEVICEID'];
    }

    if(!empty($GLOBALS['HTTP_RAW_POST_DATA'])) {

    $dataRecieve = TRUE;

    $rawPostData = "DeviceID: ".$deviceID."\n";
    $rawPostData .= print_r($GLOBALS['HTTP_RAW_POST_DATA'], TRUE);

    $filedatetime=date('ymdHis');
    $rawPostFile = "data/playlog_".$filedatetime.".txt";
    $rawPostHandler = fopen($rawPostFile, 'w') or die('Could not open file!');
    fwrite($rawPostHandler, $rawPostData) or die('Could not write to file');
    fclose($rawPostHandler);

    $fileStream .= $rawPostData;
    }

    if(!$dataRecieve) $fileStream .= "There is no any incoming data!\n";

    $fileStream .= "Done!";

    echo $fileStream;
    $fileStream = "<pre>\n".htmlentities($fileStream)."</pre>\n";

    $file = "upload_log.html";
    $handler = fopen($file, 'a') or die('Could not open file!');
    fwrite($handler, $fileStream) or die('Could not write to file');
    fclose($handler);
    ?>
  • 0
    Avatar
    Bsanderson


    we just check and dump the header and we are not seeing the SERVERID come in when the BS210W hits our webserver.

    I going to call in to you now since I need to get this working and my coder is with me.

    bill
  • 0
    Avatar
    RokuLyndon


    Ok, well if it's not there, then we can modify the autorun.brs to add the serial number header. Maybe, the serial number is only added to the headers when usage logging is in use.

    I'll check the script and see where we can manually add the unit serial number to the information being sent in.
  • 0
    Avatar
    Bsanderson


    I posted the glogal dump of our apache test server and the ServerId  is not there.

    it is only output when you use  the advance BS hosted service and maybe not in SImple Network mode?

    thanks
    bill
  • 0
    Avatar
    Bsanderson



    Lyndon

    we did find a short coming in the agent on the BS210    Seems the agent only sends the HTTP HEADERS on a GET call from only files
    with *.xml extension.

    We are building the xml on the fly with a  http://wwww.mydomain.com/getweather.php   which returns the xml to BS 210w  but the php extension
    make the BS 210w not send up the HTTP HEADER info with the DEVICE_ID I was looking for.

    So at least i now there is a limitation in the box.  Can you ask the developers why they are limiting the HTTP HEADER on a GET call for file extensions only
    of filename.xml?

    We wanted to dynamically produce images data to each BS box based on its UNIT ID.   So like the weather. We could have on RSS Media url   mydomain.com/getweather.php for all out BS boxes to call into.  Which would have grabbed the HTTP HEADER for the BS210w DEVICE_ID and we would know that unit was in Miami Florida and sent it a image back of Miami weather update.
    and on and on for each location.

    We are looking at some work arounds.  but would be nice to have the DEVICE_ID on all calls out from the BS box???????

    thanks...
    bill

  • 0
    Avatar
    RokuLyndon


    This should be configurable in the autorun script that's brightauthor uses. I'll see what I can find.
Please sign in to leave a comment.