Json API

Add a Json API :

`raspcontrolURL`/api.php?username=`user`&password=`password`&data=`data`

- **raspcontrolURL** :
     The url of raspcontrol, typically "http://`ip`/raspcontrol".

- **user** :
     The user name used to log in raspcontrol.

- **password** :
     The password used to log in raspcontrol.

- **data** :
     The requested datas, the possibles values are : 
<table>
  <tr>
    <td>all</td>
    <td>Return all the informations (details & services).</td>
  </tr>
  <tr>
    <td>details</td>
    <td>Return rbpi, uptime, memory, cpu, hdd, net, users informations (informations of the details page in raspcontrol).</td>
  </tr>
  <tr>
    <td>rbpi</td>
    <td>Return the rbpi informations (hostname, distribution, kernel, firmware, internal & external ip).</td>
  </tr>
  <tr>
    <td>uptime</td>
    <td>Return the uptime (D days H hours M minutes S seconds ).</td>
  </tr>
  <tr>
    <td>memory</td>
    <td>Return the memory informations (ram, swap).</td>
  </tr>
  <tr>
    <td>cpu</td>
    <td>Return the cpu informations (usage, heat).</td>
  </tr>
  <tr>
    <td>hdd</td>
    <td>Return the hdd informations (array of disks).</td>
  </tr>
  <tr>
    <td>net</td>
    <td>Return the net informations (number of connections, up & down).</td>
  </tr>
  <tr>
    <td>users</td>
    <td>Return the array of ssh active users.</td>
  </tr>
  <tr>
    <td>services</td>
    <td>Return the services with their status.</td>
  </tr>
</table>