01 December 2024

Webserver for the Greenhouse Gas Sensors

๐Ÿ”˜ Carbon Dioxide, CO2, and Methane, CH4, are present in the atmosphere in part due to burning fossil fuels ๐Ÿญ, and farming ๐Ÿ‚( particularly livestock ). They are potent 'greenhouse' gases as they have a significant impact on global warming, which drives climate change.

A new WiFi version of the Greenhouse Gas Monitoring System, ( ๐Ÿ“…28.07.2022, 5.01.2023 & 18.02.2024 ) has been completed, incorporating a web ๐Ÿ•ธ server having an embedded webpage. The firmware and webpage were developed along very similar lines to that used recently with the "Solarometer" ๐Ÿ”…( ๐Ÿ“…13.10.2024 ); the latter using html and CSS *.
However, as the outdoor location of the gas sensors, ( type MQ-4 for CH4, type MQ-135 for CO2 ), will always be within the coverage area of an existing WiFi network access point, ( AP ), the system has been configured as a station ( STA ) on that network, and assigned the IP address 192.168.1.49.
Webpage opened in a smart phone's browser

The concentration ( parts per million, ppm ) measurements๐Ÿ“ are updated in real-time ๐Ÿ•”, and can be quickly viewed on a mobile device's๐Ÿ– browser, saving time over logging in to cloud ☁ based repositories, if historical data are not required.

Another way is to use the new SpacerLabs custom App "Greenhouse_Gas_Viewer v1.nn", for Android devices.

Displaying ppm measurements using the App
In this case the webpage itself ( /root directory ) is not displayed. Only the sub-directories ( /CH4ppm & /CO2ppm ), which are the place-holders for the CH4 and CO2 concentration data, are read by the App and the data held therein displayed.๐Ÿ”˜

* CSS = Cascading Style Sheets - used to add style attributes to an html document.

No comments:

Post a Comment