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.