Deploy Sensor Map

After assembling a sensor and setting up Sensors Connectivity module it is time to deploy personal decentralised sensor map.


Sensors Map works on JS. So you need to install node and yarn manager.

sudo curl -fsSL | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install --global yarn


Let's download and build the map:

git clone
yarn install

For tests let's run the map in development mode. It will create map with all robonomics sensors available:

yarn serve

Go to url in terminal. You will see the similar:

Stop it with ctrl+C.


Now we will create configuration files. For this go to src folder and rename the files:

cd src 
cp config.template.json config.json
cp agents.template.json agents.json

Now you need to add your IPFS id to agents.json. First find it with ipfs id. It will be in "ID" field:

$ ipfs id
	"ID": "QmUZxw8jsRpSx5rWkTpJokPGKvWihTrt5rbRCFXzJ4eCAP",

Insert your IPFS id in agents.json. It will look like:


Next open config.json file. You need to change the next part of configuration file:

  MAP: {
    zoom: "8",
    position: {
      lat: "",
      lng: "",

Here you have to insert latitude and longitude of your city.

Optionally, you can set up "Wind direction" service and provide URL to it in WIND_PROVIDER field.

Build for Release

To build files for release run:

yarn build

It will create dist directory. It contains all components of static website. To check if everything is correct, move to dist directory and open index.html file. You should see the similar:

After some time sensor's data from your Sensors Connectivity module will appear on the map.

That's all. Now you have your own Decentralized Sensors Map. Currently, it aggregates sensors data realtime only. To look throughout of history measurements, you need to set up "RoSeMAN" module. Find out setup process in the next article.

previous ← Configuration Options Description next RoSeMAN Setup →