jas-n / geohome
GeoHome PHP library
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-05-14 20:49:42 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