jas-n/geohome

GeoHome PHP library

Maintainers

Details

github.com/Jas-n/GeoHome

Source

Issues

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

dev-main 2022-12-14 18:13 UTC

This package is auto-updated.

Last update: 2024-05-14 20:49:42 UTC


README

Pre-requisites

  1. Wi-Fi module
  2. 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