mechawrench / cafcp-hydrogen-station-fuel-status
Retrieve H35/H70 fuel availability and quantity from CAFCP data source
v2.1.1
2020-05-28 21:23 UTC
Requires
- php: ^7.4
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- orchestra/testbench: 5.2.*
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-11-06 09:04:40 UTC
README
Retrieves the hydrogen station fuel availability status from CAFCP. Lists both H70 and H35 status and quantity. This package works with Laravel 7.x.
Installation
You can install the package via composer:
composer require mechawrench/cafcp-hydrogen-station-fuel-status
Usage
// 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;
Find all locations directly from CAFCP
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.