See our airdata recorded with a escooter http://airdata.venoc.de.
Since microcomputers have insufficient computing power, a server is hosting the 'dataPusher.js' file which receives the data from the sensor and uploads it to the IOTA Marketplace. Open the folder 'scooter-01' to get a short guide how to start this server. In our case, we consider an AWS EC2 t2.micro instance to be a suitable server for this application.
The pushed sensor data can be obtained directly from the marketplace. Our data can be found at https://data.iota.org/#/sensor/scooter-01. Open the folder 'mongo' to get a short guide how to do this. We also found that an AWS EC2 t2.micro instance would be a good choice for this service.
In the last step we display the data on our frontend. Open the folder 'frontend' to get a short guide how to do this.
We also implemented the Citopia API to get access to our airquality sevice through this blockchain powered mobility marketplace app. It supplements the platform designed for mobility with an awareness of a sustainable and healthy existence in the city.
It runs live on an AWS EC2 t2.micro instance. Test it!
http://3.16.15.24:8080/register?currentLat=32¤tLng=34.7
http://3.16.15.24:8080/services
http://3.16.15.24:8080/bits
If you want to see the code or run it by yourself run the following commands
- Change in die directory mongo
- call
npm install
- call
node api.js
- Use it