PHPackages                             dalen/owl-packet-interceptor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dalen/owl-packet-interceptor

ActiveLibrary

dalen/owl-packet-interceptor
============================

Intercepts packet from OWL Intuition and parses them

214[1 issues](https://github.com/danieleorler/owl-packet-interceptor/issues)PHP

Since Feb 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/danieleorler/owl-packet-interceptor)[ Packagist](https://packagist.org/packages/dalen/owl-packet-interceptor)[ RSS](/packages/dalen-owl-packet-interceptor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

owl-packet-interceptor
======================

[](#owl-packet-interceptor)

Official repo stats

[![Build Status](https://camo.githubusercontent.com/617ca4c6ec1c527f72f4e03ae05f08e2a0c8980ab70e3c6409d052493f197393/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c656f726c65722f6f776c2d7061636b65742d696e746572636570746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/danieleorler/owl-packet-interceptor)[![Coverage Status](https://camo.githubusercontent.com/ee16920a4d45fd77a243156a87e37a23f1244b3c775e8b4976014b2474329b92/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f64616e69656c656f726c65722f6f776c2d7061636b65742d696e746572636570746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/danieleorler/owl-packet-interceptor?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/08f57e8e9c5fee95b6a69f6a1f2cfd67dd30a94f1df8510d32bc06250960a9ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616e69656c656f726c65722f6f776c2d7061636b65742d696e746572636570746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/danieleorler/owl-packet-interceptor/?branch=master)

\###Description owl-packet-interceptor is a PHP library which intercepts and parses XML packets sent via UDP by an [OWL Monitor](http://www.theowl.com/).

To do so you first need to change the Data Push Settings on your OWL Intuition Dashboard providing IP address and port where you will install owl-packet-interceptor.

At the moment owl-packet-interceptor is able to handle packets coming from these devices:

- [OWL Intuition-e](http://www.theowl.com/index.php/energy-monitors/remote-monitoring/intuition-e/)
- [OWL Intuition-pv](http://www.theowl.com/index.php/energy-monitors/solar-pv-monitoring/intuition-pv/)

\###Structure owl-packet-interceptor is divided in four main packages:

- **Packet:** Classes into which the packet is unmarshalled. The Packet package contains a sub-package for each kind of packet sent from OWL devices, for now only the Electricity and Solar packets type are supported. Each packet is represented by a main class (Electricity.php for electricity, Solar.php for solar) which implements the IPacket interface.
- **Listener:** Contains the UDP Listener which intercepts packets sent from the device.
- **Parser:** Contains the classes which are used to extract data from the XML packet. Each parser implements the interface IParser.
- **Storage:** Contains the classes which handle the Packet representation. Each storage class implements the IStorage interface.

So:

- the **Listener** intercepts a new packet,
- the **Parser** extract data from the packet and build a new **Packet object**,
- the Packet object in handled by the **Storage**

\###Getting started

Create a new folder and move into it

Install owl-packet-interceptor

```
$ composer require dalen/owl-packet-interceptor:dev-master
```

Create a new php file, say App.php, and write something like:

```
