<commit_before>justgage-influx
===============

How to:
=======
The graphHandler.js script contains an interface to creating and placing gauges in your html page.

First you'll want to enter the credentials inside a metatag like so:

```
<meta name="influxDBCredentials" content="databaseIP: 172.16.58.3; port: 8086; database: home-sensor-array; username: root; password: <PASSWORD>;">
```

Create a div in your html page with a meta-tag inside it containing the gauges configuration as follows:
Note: The div MUST HAVE an id associated with it or the gauge will not shop up.

```
<div id="gauge-id" class="gauge">
  <meta content="influxValue: value; influxTimeSeries: sensor; min: 0; max: 100; title: awesome gauge example;">
</div>
```
Note: the influxValue and influxTimeSeries values are used to form the query "select influxValue from influxTimeSeries".


The rest is handled by influxDBGauge.js, jQuery.js and your div's css properties.<commit_msg>Edited readme.<commit_after>justgage-influx
===============

How to:
=======
The graphHandler.js script contains an interface to creating and placing gauges in your html page.

First you'll want to enter the credentials inside a metatag like so:

```
<meta name="influxDBCredentials" content="databaseIP: 172.16.58.3; port: 8086; database: home-sensor-array; username: root; password: <PASSWORD>;">
```

Create a div in your html page with a meta-tag inside it containing the gauges configuration as follows:

Note: The div MUST HAVE an id associated with it or the gauge will not shop up.

```
<div id="gauge-id" class="gauge">
  <meta content="influxValue: value; influxTimeSeries: sensor; min: 0; max: 100; title: awesome gauge example;">
</div>
```
Note: the influxValue and influxTimeSeries values are used to form the query "select influxValue from influxTimeSeries".


The rest is handled by influxDBGauge.js, jQuery.js and your div's css properties.
{'fraction_non_alphanumeric': 0.11349372384937238, 'fraction_numerical': 0.016736401673640166, 'mean_word_length': 5.211038961038961, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1283376', 'n_tokens_mistral': 586, 'n_tokens_neox': 527, 'n_words': 244}