Retrieves the hydrogen station fuel availability status from CAFCP. Lists both H70 and H35 status and quantity. This package works with Laravel 7.x.
You can install the package via composer:
composer require mechawrench/cafcp-hydrogen-station-fuel-status
// All station actions
$stations = CafcpHydrogenStationFuelStatus::getAllStations();
$stations_offline = $stations->where('statusH70', 'offline')->all();
// Single station actions
// Get Station names from https://cafcp.org/stationmap
$station = CafcpHydrogenStationFuelStatus::getStationStatus('Diamond Bar');
$station_name = $station->station;
$statusH70 = $station->statusH70;
$capacity70 = $station->capacity70;
$statusH35 = $station->statusH35;
$capacityH35 = $station->capacityH35;
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.