1.0.15 • Published 5 years ago

corrently-iot-jquery v1.0.15

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

corrently-iot-jquery

HitCount Join the chat at https://gitter.im/corrently/iot

JQuery Extension (Plugin) to bind IoT devices to a Corrently UI.

This JQuery extension will replace the html code of a DOM Element with values from an IoT Device. Purpose of this extension to jquery is to easy work with /things-values/ within a corrently based UI/dashboard.

HTML - Install

Insert script tag after JQuery Include

<script src="https://unpkg.com/corrently-iot-jquery@latest/index.js"></script>

IoT Data

HTML - Code

  <span class="iot" data-iot="0x12345678" data-subscribe="20">-</span>

Javascript - Code

$(document).ready(function() {
  $('.iot').iot();
});

HTML Attributes

data-iot set the device address

data-subscribe refresh value every x seconds

Corrently Wallet Data

HTML - Code

  <span class="account" data-account="0x12345678" data-field="totalConsumption">-</span>

Javascript - Code

$(document).ready(function() {
  $('.account').account();
});

HTML Attributes

data-account set the wallet account

data-field field to set as given by Corrently API Endpoint (meteredconsumption, convertedSupply, generation, ...)

Contributing

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago