https://github.com/airalab/roseman
Node.js software for sensors data collector function based on Substrate
https://github.com/airalab/roseman
citizen-science node-js polkadot-sdk sensors-network substrate
Last synced: about 1 year ago
JSON representation
Node.js software for sensors data collector function based on Substrate
- Host: GitHub
- URL: https://github.com/airalab/roseman
- Owner: airalab
- License: bsd-3-clause
- Created: 2020-04-27T15:29:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T10:35:54.000Z (over 1 year ago)
- Last Synced: 2025-04-11T21:12:42.507Z (about 1 year ago)
- Topics: citizen-science, node-js, polkadot-sdk, sensors-network, substrate
- Language: JavaScript
- Homepage:
- Size: 619 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Robonomics Sensors Measure Analytics and Archive Node (RoSeMAN)
node.js software with substrate blockchain sensors data collector function!
## Running with Docker
Required. Docker must be installed.
You need to run the following command
```bash
mkdir config
curl -o ./config/agents.json https://raw.githubusercontent.com/airalab/RoSeMAN/master/config/agents.template.json
curl -o ./config/config.json https://raw.githubusercontent.com/airalab/RoSeMAN/master/config/config.template.json
```
Make a white list of addresses, parachane accounts, from which we will collect data in the `/config/agents.json` file.
If necessary, change the configuration file `/config/config.json`.
Create a `docker-compose.yml` file with content
```
version: "3.8"
services:
app:
container_name: roseman_app
image: vol4/roseman
ports:
- "3000:3000"
volumes:
- ./config:/app/config
depends_on:
- mongo
mongo:
container_name: mongo
image: mongo
```
Run server
```bash
docker compose up -d
```
Web server launched at http://127.0.0.1:3000
As a user client, you can connect this service to [sensors map](https://github.com/airalab/sensors.robonomics.network).
## Running with Node.js
You need to clone the repository.
```bash
$ git clone https://github.com/airalab/RoSeMAN.git
```
Create configuration files.
```bash
$ cp config/config.template.json config.json
$ cp config/agents.template.json agents.json
```
!!! The work requires the Mongodb Database server.
If necessary, change access to the database in the configuration file `/config/config.json`.
Make a white list of addresses, parachane accounts, from which we will collect data in the `/config/agents.json` file.
Install requirements.
```bash
$ yarn install
```
## Building
```bash
$ yarn build
```
## Run server
```bash
$ yarn start
```
Web server launched at http://127.0.0.1:3000
As a user client, you can connect this service to [sensors map](https://github.com/airalab/sensors.robonomics.network).
## Bug Reports
See https://github.com/airalab/RoSeMAN/issues
## Learn
[Wiki](https://wiki.robonomics.network/)