Novel Air Pollution Measurement System Based on Ethereum Blockchain
Abstract
:1. Introduction
2. Experiments
2.1. Data
2.2. Blockchain
2.3. IPFS Protocol
- An HTTP request is of the type http://10.20.30.40/folder/file.txt
- An IPFS request is of the type ipfs/QmT5NvUtoM5n/folder/file.txt
- It makes it difficult for a website to go offline. In the case of a sudden failure or accident that damages the servers, it will still be possible to get the same webpage at a different address.
- It makes it more difficult for authorities to censor the content because files on IPFS can come from different places, and it is very difficult for private or public authorities to block their contents.
- It can speed up the web when the user is away or disconnected. It is quicker to get a file from someone nearby instead of hundreds or thousands of miles away; with IPFS, the latter happens more quickly. Organizations with enough money and expertise can do this with Content Distribution Networks (CDNs) or with Multiple Data Centers (MDCs), but IPFS aims to make it possible for everyone.
2.4. Python
2.5. Web3.py
- Web3.HTTP provider for connection to JavaScript Object Notation (JSON-RPC) servers based on http and https.
- Web3.IPCP provider for connection to JSON-RPC sockets based on the Inter-process communication (ipc) sockets.
- Web3.Websocket provider for connection to websocket and secure websocket connection (wss) based JSON-RPC servers.
- from: sender address;
- to: recipient address;
- gas: gas limit;
- gas price: the price of the gas to pay;
- value: the value of the sending Ether;
- date: data to be sent in the transaction;
- nonce: this allows the overwriting of the pending transaction using the same nonce.
2.6. Firebase.py
2.7. Zlib.py
2.8. Ipfshttpclient.py
2.9. Requests.py
2.10. Firebase
2.11. Ganache
2.12. Infura
2.13. Concept Design
- The sending of the generated IPFS protocol hash or the sending of compressed data.
- The possibility to choose the sending of only a sample of the interested zip code or the Milan zip code directly.
- The possibility to choose to send a sample that refers to the following day, to a past day or to several days in the past.
- Two files in JSON and text file format, containing data as well as recovery data from the blockchain.
- Two files in JSON and text file format with the possibility of choosing whether, in addition to sampling, to have only the date of the blockchain or only the data recording date in Firebase.
3. Results and Discussion
3.1. Methodology Implementing the String to Send in the Blockchain
3.2. Blockchain Implementation
4. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Giuliano, A.; Catizzone, E.; Barisano, D.; Nanna, F.; Villone, A.; De Bari, I.; Cornacchia, G.; Braccio, G. Towards methanol economy: A techno-envoronmental assessment for a bio-methanol OFMSW/Biomass/Carbon Capture-based integrated plant. Int. J. Heat Technol. 2019, 37, 665–674. [Google Scholar] [CrossRef]
- European Environment Agency. Air quality in Europe—2019. Available online: https://www.eea.europa.eu/publications/air-quality-in-europe-2019 (accessed on 10 September 2020).
- Sofia, D.; Giuliano, A.; Gioiella, F.; Barletta, D.; Poletto, M. Modeling of an air quality monitoring network with high space-time resolution. In Computer Aided Chemical Engineering; Proceedings of the 28th European Symposium on Computer Aided Process Engineering; Friedl, A., Klemeš, J.J., Radl, S., Varbanov, P.S., Wallek, T., Eds.; Elsevier: Amsterdam, The Netherlands, 2018; Volume 43, pp. 193–198. [Google Scholar] [CrossRef]
- Buonanno, G.; Stabile, L.; Morawska, L. Personal Exposure to Ultrafine Particles: The Influence of Time-Activity Patterns. Sci. Total Environ. 2014, 468–469, 903–907. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Morakinyo, O.M.; Mukhola, M.S.; Mokgobu, M.I. Ambient Gaseous Pollutants in an Urban Area in South Africa: Levels and Potential Human Health Risk. Atmosphere 2020, 11. [Google Scholar] [CrossRef]
- World Health Organization. Ambient Air Pollution: A Global Assessment of Global Exposure and Burden of Disease; WHO: Geneva, Switzerland, 2016. [Google Scholar]
- Nguyen, T.H.; Nagashima, T.; Doan, Q.-V. Air Quality Modeling Study on the Controlling Factors of Fine Particulate Matter (PM2.5) in Hanoi: A Case Study in December 2010. Atmosphere 2020, 11, 733. [Google Scholar] [CrossRef]
- Sofia, D.; Gioiella, F.; Lotrecchiano, N.; Giuliano, A. Cost-benefit analysis to support decarbonization scenario for 2030: A case study in Italy. Energy Policy 2019, 173. [Google Scholar] [CrossRef]
- Sofia, D.; Giuliano, A.; Gioiella, F. Air Quality Monitoring Network for Tracking Pollutants: The Case Study of Salerno City Center. Chem. Eng. Trans. 2018, 68, 67–72. [Google Scholar] [CrossRef]
- Sofia, D.; Lotrecchiano, N.; Giuliano, A.; Barletta, D.; Poletto, M. Optimization of number and location of sampling points of an air quality monitoring network in an urban contest. Chem. Eng. Trans. 2019, 74, 277–282. [Google Scholar] [CrossRef]
- Gao, H.; Yang, W.; Yang, Y.; Yuan, G. Analysis of the Air Quality and the Effect of Governance Policies in China’s Pearl River Delta, 2015–2018. Atmosphere 2019, 10, 412. [Google Scholar] [CrossRef] [Green Version]
- Lotrecchiano, N.; Gioiella, F.; Giuliano, A.; Sofia, D. Forecasting Model Validation of Particulate Air Pollution by Low Cost Sensors Data. J. Model. Optim. 2019, 11, 63–68. [Google Scholar] [CrossRef] [Green Version]
- Languille, B.; Gros, V.; Bonnaire, N.; Pommier, C.; Honoré, C.; Debert, C.; Gauvin, L.; Srairi, S.; Annesi-Maesano, I.; Chaix, B.; et al. A methodology for the characterization of portable sensors for air quality measure with the goal of deployment in citizen science. Sci. Total Environ. 2020, 708, 15. [Google Scholar] [CrossRef]
- Lotrecchiano, N.; Sofia, D.; Giuliano, A.; Barletta, D.; Poletto, M. Real-time On-road Monitoring Network of Air Quality. Chem. Eng. Trans. 2019, 74, 241–246. [Google Scholar] [CrossRef]
- Weijers, E.P.; Khlystov, A.Y.; Kos, G.P.A.; Erismana, J.W. Variability of particulate matter concentrations along roads and motorways determined by a moving measurement unit. Atm. Environ. 2004, 38, 2993–3002. [Google Scholar] [CrossRef]
- Bukowiecki, N.; Kittelson, D.B.; Watts, W.F.; Burtscher, H.; Weingartner, E.; Baltensperger, U. Real-time characterization of ultrafine and accumulation mode particles in ambient combustion aerosols. J. Aer. Sci. 2002, 33, 1139–1154. [Google Scholar] [CrossRef]
- Bukowiecki, N.; Dommen, J.; Pre’voˆt, A.S.H.; Richter, R.; Weingartner, E.; Baltensperger, U. A mobile pollutant measurement laboratory—Measuring gas phase and aerosol ambient concentrations with high spatial and temporal resolution. Atm. Environ. 2002, 36, 5569–5579. [Google Scholar] [CrossRef]
- Bumblauskas, D.; Mann, A.; Dugan, B.; Rittmer, J. A blockchain use case in food distribution: Do you know where your food has been? Int. J. Inf. Manag. Sci. 2019, 52, 2020–102008. [Google Scholar] [CrossRef]
- Zhao, G.; Liu, S.; Lopez, C.; Lu, H.; Elguet, S.; Chen, H.; Boshkosk, B.M. Blockchain technology in agri-food value chain management: A synthesis of applications, challenges and future research directions. Comput. Ind. 2019, 109, 83–99. [Google Scholar] [CrossRef]
- Tanwar, S.; Parekh, K.; Evans, R. Blockchain-based electronic healthcare record system for healthcare 4.0 applications. J. Inf. Secur. Appl. 2020, 50, 102407. [Google Scholar] [CrossRef]
- Liu, X.L.; Wang, W.M.; Guo, H.; Barenji, A.V.; Li, Z.; Huang, G.Q. Industrial blockchain based framework for product lifecycle management in industry 4.0. Rob. Comp. Int. Man. 2020, 63, 101897. [Google Scholar] [CrossRef]
- Dorri, A.; Kanhere, S.S.; Jurdak, R.; Gauravaram, P. LSB: A Lightweight Scalable Blockchain for IoT security and anonymity. J. Par. Distr. Comp. 2019, 134, 180–197. [Google Scholar] [CrossRef]
- Wei, P.C.; Wang, D.; Zhao, Y.; Kumar, S.; Tyagi, S.; Kumar, N. Blockchain data-based cloud data integrity protection mechanism. Fut. Gen. Comp. Syst. 2020, 102, 902–911. [Google Scholar] [CrossRef]
- Benedict, S.; Rumaise, P.; Kaur, J. IoT Blockchain Solution for Air Quality Monitoring in SmartCities. In Proceedings of the IEEE International Conference on Advanced Networks and Telecommunications Systems (ANTS), Goa, India, 16–19 December 2019; pp. 1–6. [Google Scholar] [CrossRef]
- Yusuf, A.A.; Kurnia Basuki, D.; Sukaridhoto, S.; Pratama, Y.P.; Bramasta Putra, F.; Yulianus, H. ArmChain—A Blockchain Based Sensor Data Communication for the Vehicle as a Mobile Sensor Network. In Proceedings of the International Electronics Symposium (IES), Surabaya, Indonesia, 27–28 September 2019; pp. 539–543. [Google Scholar] [CrossRef]
- Niya, S.R.; Jha, S.S.; Bocek, T.; Stiller, B. Design and implementation of an automated and decentralized pollution monitoring system with blockchains, smart contracts, and LoRaWAN. In Proceedings of the NOMS 2018—2018 IEEE/IFIP Network Operations and Management Symposium, Taipei, Taiwan, 23–27 April 2018; pp. 1–4. [Google Scholar] [CrossRef] [Green Version]
- Wang, Q.; Zhu, X.; Ni, Y.; Gu, L.; Zhu, H. Blockchain for the IoT and industrial IoT: A review. Internet Things 2020, 10. [Google Scholar] [CrossRef]
- Nyaletey, E.; Parizi, R.M.; Zhang, Q.; Choo, K. BlockIPFS—Blockchain-Enabled Interplanetary File System for Forensic and Trusted Data Traceability. In Proceedings of the IEEE International Conference on Blockchain, Atlanta, GA, USA, 14–17 July 2019. [Google Scholar]
- Easley, D.; O’Hara, M.; Basu, S. From mining to markets: The evolution of bitcoin transaction fees. J. Financ. Econ. 2019, 134, 91–109. [Google Scholar] [CrossRef]
- De Tazoult, C.T.; Chiky, R.; Foltescu, V. A Distributed Pollution Monitoring System: The Application of Blockchain to Air Quality Monitoring. In Computational Collective Intelligence ICCCI 2019, Lecture Notes in Computer Science; Nguyen, N., Chbeir, R., Exposito, E., Aniorté, P., Trawiński, B., Eds.; Springer: Cham, Switzerland, 2019; Volume 11684. [Google Scholar]
Tx-hash | Block no. | Unix Timestamp | Date/Time | From | To | Value In (ETH) | Value Out (ETH) | Current Value @ USD 154.96/ETH | Txn Fee (ETH) | Txn Fee (USD) | Historical USD Price/ETH |
---|---|---|---|---|---|---|---|---|---|---|---|
0x2f0b603ba2c061d270d722690b0f2e18c70d47883a1642b2e079293f7c02c744 | 8269236 | 1564722075 | 08/02/2019 05:01 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 217.70 |
0x7a40d356eb2e21ad532b2f7d924ce9bae5bf7827ed04e9249bd8e00548f8eddc | 8277036 | 1564826279 | 08/03/2019 09:57 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 217.73 |
0x1d5d662e89b07f94274e5463d557dac3a8e9a5baab8f7d7fa872973482aa0a5c | 8295101 | 1565067623 | 08/06/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 228.70 |
0xbc30a0bbcdbdd8220e14ee0883d812e9a9d090f64b5212e4a5cec80045c21a18 | 8301513 | 1565154025 | 08/07/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 225.99 |
0x25e0c047c81aa2c9151fede6f7444f7573d0b144f902bcc6d71fd487d41ee956 | 8307942 | 1565240479 | 08/08/2019 05:01 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 221.18 |
0xde6ecdcf5346b5d7921176b7db3d413f6bdbe0c3c4c5d6dfec916098c57cda00 | 8314437 | 1565326841 | 08/09/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 210.47 |
0x5572d61666ac167752e046bfd3b3737db6a395460d507eda6cfd15c3c0b8e229 | 8320815 | 1565413238 | 08/10/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 206.26 |
0x172b5545a5dbd6ab19aa1920769cdf06c1ef2090c2c831f1af0522af6fa82f0a | 8340186 | 1565672442 | 8/13/2019 5:00:42 AM | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 208.62 |
0xa51280a92edf9c23998062619ad460776f17738ae00b82466eb9224994c5288a | 8346608 | 1565758834 | 8/14/2019 5:00:34 AM | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0,00024 | 0,03739 | 186.49 |
Tx-hash | Block no. | Unix Timestamp | Date/Time | From | To | Value In (ETH) | Value Out (ETH) | Current Value @ USD 154.96/ETH | Txn Fee (ETH) | Txn Fee (USD) | Historical USD Price/ETH |
---|---|---|---|---|---|---|---|---|---|---|---|
0x2f0b603ba2c061d270d722690b0f2e18c70d47883a1642b2e079293f7c02c744 | 8269236 | 1564722075 | 08/02/2019 05:01 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 217.70 |
0x7a40d356eb2e21ad532b2f7d924ce9bae5bf7827ed04e9249bd8e00548f8eddc | 8277036 | 1564826279 | 08/03/2019 09:57 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 217.73 |
0x1d5d662e89b07f94274e5463d557dac3a8e9a5baab8f7d7fa872973482aa0a5c | 8295101 | 1565067623 | 08/06/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 228.70 |
0xbc30a0bbcdbdd8220e14ee0883d812e9a9d090f64b5212e4a5cec80045c21a18 | 8301513 | 1565154025 | 08/07/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 225.99 |
0x25e0c047c81aa2c9151fede6f7444f7573d0b144f902bcc6d71fd487d41ee956 | 8307942 | 1565240479 | 08/08/2019 05:01 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 221.18 |
0xde6ecdcf5346b5d7921176b7db3d413f6bdbe0c3c4c5d6dfec916098c57cda00 | 8314437 | 1565326841 | 08/09/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 210.47 |
0x5572d61666ac167752e046bfd3b3737db6a395460d507eda6cfd15c3c0b8e229 | 8320815 | 1565413238 | 08/10/2019 05:00 | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 206.26 |
0x172b5545a5dbd6ab19aa1920769cdf06c1ef2090c2c831f1af0522af6fa82f0a | 8340186 | 1565672442 | 8/13/2019 5:00:42 AM | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 208.62 |
0xa51280a92edf9c23998062619ad460776f17738ae00b82466eb9224994c5288a | 8346608 | 1565758834 | 8/14/2019 5:00:34 AM | 0x428ebe9232f8d68c02e5c369693c60bb7ce5f45d | 0x60aabce99f44f8b8a1e11934cd04f7671b16fd53 | 0 | 0 | 0 | 0.00024128 | 0.037386336 | 186.49 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Sofia, D.; Lotrecchiano, N.; Trucillo, P.; Giuliano, A.; Terrone, L. Novel Air Pollution Measurement System Based on Ethereum Blockchain. J. Sens. Actuator Netw. 2020, 9, 49. https://doi.org/10.3390/jsan9040049
Sofia D, Lotrecchiano N, Trucillo P, Giuliano A, Terrone L. Novel Air Pollution Measurement System Based on Ethereum Blockchain. Journal of Sensor and Actuator Networks. 2020; 9(4):49. https://doi.org/10.3390/jsan9040049
Chicago/Turabian StyleSofia, Daniele, Nicoletta Lotrecchiano, Paolo Trucillo, Aristide Giuliano, and Luigi Terrone. 2020. "Novel Air Pollution Measurement System Based on Ethereum Blockchain" Journal of Sensor and Actuator Networks 9, no. 4: 49. https://doi.org/10.3390/jsan9040049
APA StyleSofia, D., Lotrecchiano, N., Trucillo, P., Giuliano, A., & Terrone, L. (2020). Novel Air Pollution Measurement System Based on Ethereum Blockchain. Journal of Sensor and Actuator Networks, 9(4), 49. https://doi.org/10.3390/jsan9040049