jas-n / geohome
GeoHome PHP library
dev-main
2022-12-14 18:13 UTC
Requires
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-03-03 09:38:04 UTC
README
Pre-requisites
- Wi-Fi module
- Account on...
Installation
// Composer Installation
Raw Usage
<?php use Jasn\GeoHome\GeoHome; include('vendor/autoload.php'); $username = 'username'; // Your account username, commonly your email $password = 'password'; // Your account password $GeoHome = new GeoHome($username, $password); $electricity_usage = $GeoHome->getMeterReadings('Electricity')->getFormattedUsage(); // Prints #,###w (E.g. 1,234w) where w = watts print_r($electricity_usage);
Usage Documentation
See Wiki for in-depth usage documentation