open-index/open-npm huggingface dataset:
npm package: @novavisionspa/eva-logs
Description: logging module for evanova
Author: Carlo Maria Curinga
Latest version: 0.3.6

# eva-logs

### Config via ENV VARS

simply set this environment varables in your app via the resin dashboard to configure the behavour of your devices

* winston variables:
  * **`EVALOGS_WINSTON`** *string* or *boolean* - the flag to active or disable winston
  * **`EVALOGS_INFO_LOGFILE`** *string* - the PATH to be loaded. *defaults to* `/data/filelog-info.log`
  * **`EVALOGS_WARNING_LOGFILE`** *string* - the PATH to be loaded. *defaults to* `/data/filelog-warning.log`
  * **`EVALOGS_ERROR_LOGFILE`** *string* - the PATH to be loaded. *defaults to* `/data/filelog-error.log`
  * **`EVALOGS_DANGER_LOGFILE`** *string* - the PATH to be loaded. *defaults to* `/data/filelog-danger.log`

* sami variables:
  * **`EVALOGS_SAMI`** *string* or *boolean* - the flag to active or disable sami
  * **`EVALOGS_SAMI_BASE_URL`** *string* - the BASE URL of sami api. *defaults to* `https://api.samsungsami.io/v1.1`
  * **`EVALOGS_SAMI_USER_TOKEN`** *string* - the sami USER TOKEN. *deafaults to* `be8d0f5de9534bef9d4b2fa3aa224a5c`**DEAFULT TEMPORARY**
  * **`EVALOGS_SAMI_DEVICE_TYPE_ID`** *string* - the sami DEVICE TYPE ID. *defaults to* `dtab57a70a040f46bea42c7ae389de5142`**DEFAULT TEMPORARY**
  * **`EVALOGS_SAMI_DEVICE_UUID`** *string* - the PATH to be loaded. *defaults to* `process.env.RESIN_UUID` or `testdeviceuuid`**DEAFULT TEMPORARY**

### INSTALLATION

```
npm i @novavisionspa/eva-logs
```

### USAGE

``` javascript
logger.config(function(){
  logger.log("info","tester","unit testing this module",{ "int":1, "string": "lorem ipsum", "array": [0,1,2,3], "obj": { "1": 1, "2": 2}});
  logger.log("error","tester","unit testing this module",{ "int":1, "string": "lorem ipsum", "array": [0,1,2,3], "obj": { "1": 1, "2": 2}});
  logger.log("warning","tester","unit testing this module",{ "int":1, "string": "lorem ipsum", "array": [0,1,2,3], "obj": { "1": 1, "2": 2}});
  logger.log("danger","tester","unit testing this module",{ "int":1, "string": "lorem ipsum", "array": [0,1,2,3], "obj": { "1": 1, "2": 2}});
});
```

### SAMI DEVICE TYPE MANIFEST
[Here](https://github.com/fwrgit/eva-logs/blob/master/sami-devicetype-manifest.json)
npm package: @novavisionspa/eva-nova-rs485-tinker
Description: rs485 abstraction interface
Author: Marco Carrara
Latest version: 0.14.0
Deprecated: false

# eva-nova-rs485
rs485 abstraction interface

# documentation
See [DOCUMENTATION.md](https://github.com/fwrgit/eva-nova-rs485/blob/master/DOCUMENTATION.md)
npm package: @novavisionspa/eva-utils
Description: collection of hw management APIs
Author: Carlo Maria Curinga
Latest version: 0.4.2

# eva-utils
collection of hw management APIs

# Installation
```
npm i @novavisionspa/eva-utils
```
# API
#### Serial
returns a callback with the CPU serial as a string parameter
- `ERR000` for all platforms excepts the raspberrypi
- `[serial]` of the CPU for raspberrypi platform

```javascript
var device = require('@novavisionspa/eva-utils');
device.serial(function(serial){
  console.log(serial); // -> string
});
```

#### readDateTime
returns a callback with a date as a string parameter
- `Mon May  2 09:35:11 UTC 2016` output format example

```javascript
var device = require('@novavisionspa/eva-utils');
device.readDateTime(function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### setDateTime
returns a callback with a date as a string parameter (for ACK)
- `2 OCT 2006 18:00:00` input format example

```javascript
var device = require('@novavisionspa/eva-utils');
device.setDateTime(`2 OCT 2006 18:00:00`,function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### readRtc
returns a callback with a date as a string parameter
- `Mon 02 May 2016 11:13:38 AM UTC  -0.244577 seconds` output format example

```javascript
var device = require('@novavisionspa/eva-utils');
device.readRtc(function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### writeRtc
writes the current date to RTC. Returns a callback with an error object

```javascript
var device = require('@novavisionspa/eva-utils');
device.writeRtc(function(error){
  if (error) {
    console.log(error);
  } else {
    console.log('success'); // -> string
  }
});
```

### buzz
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.buzz(100); // accepts milliseconds, returns error obj
```
### alert
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.alert(); // returns error obj
```
### rts (yellow LED)
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.rts(); // returns error obj
```
### error (red LED)
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.error(); // returns error obj
```
npm package: @novavisionspa/eva-utils-artik
Description: collection of hw management APIs
Author: Carlo Maria Curinga
Latest version: 0.4.6

# eva-utils-artik
collection of hw management APIs

# Installation
```
npm i @novavisionspa/eva-utils
```
# API
#### Serial
returns a callback with the CPU serial as a string parameter
- `ERR000` for all platforms excepts the raspberrypi
- `[serial]` of the CPU for raspberrypi platform

```javascript
var device = require('@novavisionspa/eva-utils-artik');
device.serial(function(serial){
  console.log(serial); // -> string
});
```

#### readDateTime
returns a callback with a date as a string parameter
- `Mon May  2 09:35:11 UTC 2016` output format example

```javascript
var device = require('@novavisionspa/eva-utils-artik');
device.readDateTime(function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### setDateTime
returns a callback with a date as a string parameter (for ACK)
- `2 OCT 2006 18:00:00` input format example

```javascript
var device = require('@novavisionspa/eva-utils-artik');
device.setDateTime(`2 OCT 2006 18:00:00`,function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### readRtc
returns a callback with a date as a string parameter
- `Mon 02 May 2016 11:13:38 AM UTC  -0.244577 seconds` output format example

```javascript
var device = require('@novavisionspa/eva-utils-artik');
device.readRtc(function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### writeRtc
writes the current date to RTC. Returns a callback with an error object

```javascript
var device = require('@novavisionspa/eva-utils-artik');
device.writeRtc(function(error){
  if (error) {
    console.log(error);
  } else {
    console.log('success'); // -> string
  }
});
```

### buzz
```javascript
var evautils = require('@novavisionspa/eva-utils-artik');

evautils.buzz(100); // accepts milliseconds, returns error obj
```
### alert
```javascript
var evautils = require('@novavisionspa/eva-utils-artik');

evautils.alert(); // returns error obj
```
### rts (yellow LED)
```javascript
var evautils = require('@novavisionspa/eva-utils-artik');

evautils.rts(); // returns error obj
```
### error (red LED)
```javascript
var evautils = require('@novavisionspa/eva-utils-artik');

evautils.error(); // returns error obj
```
npm package: @novavisionspa/eva-utils-tinker
Description: collection of hw management APIs
Author: Carlo Maria Curinga
Latest version: 0.5.0
Deprecated: false

# eva-utils
collection of hw management APIs

# Installation
```
npm i @novavisionspa/eva-utils
```
# API
#### Serial
returns a callback with the CPU serial as a string parameter
- `ERR000` for all platforms excepts the raspberrypi
- `[serial]` of the CPU for raspberrypi platform

```javascript
var device = require('@novavisionspa/eva-utils');
device.serial(function(serial){
  console.log(serial); // -> string
});
```

#### readDateTime
returns a callback with a date as a string parameter
- `Mon May  2 09:35:11 UTC 2016` output format example

```javascript
var device = require('@novavisionspa/eva-utils');
device.readDateTime(function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### setDateTime
returns a callback with a date as a string parameter (for ACK)
- `2 OCT 2006 18:00:00` input format example

```javascript
var device = require('@novavisionspa/eva-utils');
device.setDateTime(`2 OCT 2006 18:00:00`,function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### readRtc
returns a callback with a date as a string parameter
- `Mon 02 May 2016 11:13:38 AM UTC  -0.244577 seconds` output format example

```javascript
var device = require('@novavisionspa/eva-utils');
device.readRtc(function(error,dateTime){
  if (error) {
    console.log(error);
  } else {
    console.log(dateTime); // -> string
  }
});
```

#### writeRtc
writes the current date to RTC. Returns a callback with an error object

```javascript
var device = require('@novavisionspa/eva-utils');
device.writeRtc(function(error){
  if (error) {
    console.log(error);
  } else {
    console.log('success'); // -> string
  }
});
```

### buzz
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.buzz(100); // accepts milliseconds, returns error obj
```
### alert
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.alert(); // returns error obj
```
### rts (yellow LED)
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.rts(); // returns error obj
```
### error (red LED)
```javascript
var evautils = require('@novavisionspa/eva-utils');

evautils.error(); // returns error obj
```