After assembling a sensor and setting up Sensors Connectivity module it is time to deploy personal decentralized sensor map.
Since the sensor map is powered by JavaScript, first you need to install the node
and the yarn
manager:
Download and build the map:
Run the map in development
mode for testing
Go to URL from terminal, you should see the sensor map. After that, stop it with Ctrl+C
.
Find your IPFS ID with:
Go to src
folder and rename the files:
Insert your IPFS ID in agents.json
:
Open config.json
file and change the next part of configuration file:
Here you have to insert latitude (lat
) and longitude (lng
) of your city. Optionally, you can set up wind direction service and provide URL to it in WIND_PROVIDER
field.
Run the following command to build files for release:
It will create dist
directory with all components of static website.
To check if everything is correct, move to dist
directory and open index.html
file. After some time sensor's data from your Sensors Connectivity module will appear on the map.