It's common knowledge that we have known about the greenhouse effect since the late 19th century. Having started Andrea Wulf's "The Invention of Nature" about Alexander von Humboldt, its interesting to read that he observed human activity changing climate as well as destroying ecosystems and tried to warn of the risk at the very beginning of that century.
Good thing we paid attention and rapidly learned not to trash the planet, eh?