PHP code example of dutchie027 / wallbox

1. Go to this page and download the library: Download dutchie027/wallbox library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dutchie027 / wallbox example snippets


composer 

#!/usr/bin/php


ie027\Wallbox\Wallbox();
...

#!/usr/bin/php


ie027\Wallbox\Wallbox();
$wallbox->monitor();

print $wallbox->checkLock($id);

print $wallbox->getStats($id, $start, $end);

print $wallbox->getChargerStatus($id);

print $wallbox->getFullPayload();

print $wallbox->getLastChargeDuration();

print $wallbox->checkFirmwareStatus($id);

print $wallbox->unlockCharger($id);

print $wallbox->lockCharger($id);

print $wallbox->getChargerData($id);

print $wallbox->getTotalChargeTime($id);

print $wallbox->getTotalSessions($id);
bash
nohup ./monitor.php >/dev/null 2>&1 &