Jump to content

freeman

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by freeman

  1. Does anyone know how to make Chrome browser full screen? I'm on an Android Tablet. The built in browser lags very much compared to chrome.

     

    You cannot force page to fullscreen in Android Chrome.

     

    Page must have JS code like: document.webkitRequestFullscreen()

     

    https://developer.mozilla.org/ru/docs/DOM/Using_fullscreen_mode

     

     

     

    If you can't edit code, try over apps for Android.

    For example:

    https://play.google.com/store/apps/details?id=com.isolator.fullscreenbrowser2

    or

    https://play.google.com/store/apps/details?id=de.ozerov.fully

    • Like 1
  2. We've added the 3 new lines to the SSE header, as you've requested. We've also implemented the /api JSON API that you've requested, in the way you've proposed. With the sensors tag you have to list the sensor items in the way AIDA64 calls them, separated by comma. So an example URL might be:

    ipaddress:8080/api?callback=myCallback&sensors=SDATE,STIME,TMOBO

    Both the callback and sensors tag are optional.

    The only quirk is that you have to place all the items you need to access via /api to your RemoteSensor layout as Simple Sensor Items.

    You can find the new AIDA64 Extreme beta build at:

    http://www.aida64.com/downloads/latesta64xebeta

    After upgrading to this new version, make sure to restart Windows to finalize the upgrade.

    Let me know how it works ;)

     

     

    Thank You!

     

    Every thing works perfectly.

     

    SSE now can be accessed from any origin.

     

    JSONP api is great.

     

     

    Next week I'll end up my project and share all sources here.

     

    Right now it looks like this:

     

    YmE8dPLsZ1Evdr.png

    • Like 1
  3. Yes yes yes!

     

    I want to build custom RemoteSensor Panel using HTML.

     

    Javascript EventSource request can be blocked by browser, in order to Same Origin Policy.

     

    To make it work JS must have extra parameter: 

    withCredentials: true

     

    So, if IP of target machine is 192.168.1.2

     

    JS would look like this:

     

    var source = new EventSource("http://192.168.1.2/sse", {

    withCredentials: true
    });

     

    Server (AIDA64 on target machine)  should answer with extra headers:

     

    Access-Control-Allow-Origin: *

    Access-Control-Allow-Credentials: true

    Access-Control-Expose-Headers: *   - it's just to be sure)

     

     

     

     

    But it would be realy great if you make one more API.

    API would answer with JSONP

    like:

     

    myCallback({

          sensor1: {

                    label: "CPU1",

                    value: 37,

                    unit: "°С"

          },

          sensor2:{

                    label: "CPU2",

                    value: 38,

                    unit: "°С"

          },

          sensor3:{

                    label: "Memory usage",

                    value: 40,

                    unit: "%",

                    color: "#00FF00"

          }

    });

     

     

    http://stackoverflow.com/questions/2067472/what-is-jsonp-all-about

     

     

     

    And would be perfect if you could get only needed sensor items you want, if you send extra GET param.

     

    like:

     

    http: //192.168.1.2/api?sensors=sensor1&callback=myCallback

     

    Answer would be:

     

    myCallback({

          sensor1: {

                    label: "CPU1",

                    value: 37,

                    unit: "°С"

          }

    });

×
×
  • Create New...