diff --git a/docker-compose.yml b/docker-compose.yml index ff2cfab4..36febe49 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,9 +7,9 @@ services: network_mode: "host" restart: unless-stopped volumes: - - ${APP_DATA_LOCATION}/pialert/config2:/home/pi/pialert/config + - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config # - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - - ${APP_DATA_LOCATION}/pialert/db2:/home/pi/pialert/db + - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log # DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes diff --git a/front/network.php b/front/network.php index 3831a04d..c70c7bd1 100755 --- a/front/network.php +++ b/front/network.php @@ -504,6 +504,45 @@ var treeLoadedAlready = false; var hiddenMacs = []; + // --------------------------------------------------------------------------- + function formatFlatDevicesList() + { + devList = getDevicesList() + + result = [] + + for(i=0;i 3, relationnalField: "children", + // relationnalField: "parentMac", }); myTree.refresh(myHierarchy); - + // myTree.refresh(formatFlatDevicesList()); //hasFlatData } // ---------------------------------------------------------------------------