aira icon indicating copy to clipboard operation
aira copied to clipboard

sensors connectivity package ver 0.1 in airapkgs and aira image

Open ensrationis opened this issue 4 years ago • 2 comments

First release of sensors-connectivity repo with COM-port data reading example of source code. Testing with air pollution sensor NOVA PM sds011.

ensrationis avatar Apr 28 '20 19:04 ensrationis

https://github.com/airalab/sensors-connectivity/pull/1 done , but should we add this package in airapkgs ? @PavelSheremetev @Vourhey @akru

ensrationis avatar May 01 '20 15:05 ensrationis

I think it's not a problem to create a nixos service for the package. Enabling/Disabling the service would be as easy as:

services.connectivity.enable = true;

assuming we use default settings. And more advanced usage is

services.connectivity.enable = true;
services.connectivity.config = ''
  general:
    port: "/dev/ttyUSB0"  # COM port of the device
    read-interval: 300    # time between two measurements in seconds
    geo: ""               # Geo coordinates as latitude,longitude
  luftdaten:
    enable: true          # whether or not publish to https://luftdaten.info/
  robonomics:
    enable: true          # enable use of Robonomics Network
    result: true          # publish Result message
    demand: false         # publish Demand message
    model: ""             # Agent's model (IPFS hash)
    token: ""             # Ethereum address of ERC20 token
    lighthouse: ""        # Name of lighthouse, e.g. airalab.lighthouse.5.robonomics.eth
    validator: "0x0000000000000000000000000000000000000000"
    validatorFee: 0
  datalog:
    enable: false         # enable use of Datalog Robonomics subcommand
    path: ""              # path to Robonomics execution file
    suri: ""              # private key of publisher account
    remote: "wss://substrate.ipci.io"
    dump-interval: 3600   # time between two transactions in seconds
  dev:
    sentry: ""
'';

Vourhey avatar May 01 '20 15:05 Vourhey