Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sensors connectivity package ver 0.1 in airapkgs and aira image #101

Open
ensrationis opened this issue Apr 28, 2020 · 2 comments
Open

sensors connectivity package ver 0.1 in airapkgs and aira image #101

ensrationis opened this issue Apr 28, 2020 · 2 comments
Assignees

Comments

@ensrationis
Copy link
Member

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

@ensrationis
Copy link
Member Author

airalab/sensors-connectivity#1 done , but should we add this package in airapkgs ? @PavelSheremetev @Vourhey @akru

@Vourhey
Copy link
Member

Vourhey commented May 1, 2020

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: ""
'';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants