tijmenvandenbrink / enviroplus_exporter

Prometheus exporter for enviroplus module by Pimoroni
MIT License
84 stars 39 forks source link

combine this with script that uploads data to sensor.community from original enviro plus library #27

Closed nookontherim closed 10 months ago

nookontherim commented 2 years ago

would it be possible to run this program but also have the data uploaded to sensor.community at the same time, as the basic enviro-plus library does/is built to do? I imagine the answer is "yes of course its possible". but as a programming noob, I guess the more appropriate question would be would it be really difficult to make it do that? And if I wanted to try to take that project on, might you have any tips on how to do it?

nookontherim commented 2 years ago

sorry I just noticed that someone already did them pull request. I will try it out!

vgnmnky commented 2 years ago

@nookontherim , did you manage to get it working? I've had it working with the usual luftdaten script before, but not got it working through enviroplus_exporter so far.

nookontherim commented 2 years ago

no I haven't tried it yet, the place I have the sensor setup its a bit difficult to get to it, and I find when I do too much over SSH it freezes and needs to be manually rebooted, so I have to bring it inside on of these days to modify the code. the default temperature compensation factor is wrong too because my temp says 27c which is way high. have to get in there and fuss with that too to get the temp right and rel. humidity

iancattermole commented 1 year ago

Hi Guys,

I too would love an answer on this one I’ve managed to sort the temperature issue by adding a “factor” of 1.75 which kind of works

Sending data to luftdaten is my issue, no matter what I try If I “sudo systemctl stop enviroplus-exporter” I can then run enviroplus-python/examples/luftdaten.py & balena-environ-plus/luftdaten/ luftdaten.py both working fine and sending data

Within enviroplus_exporter.py I’ve also tried changing 'https://api.luftdaten.info/v1/push-sensor-data/', to "https://api.sensor.community/v1/push-sensor-data/",

I’ve also tried to create a script to stop the server, send data to luftdaten.py, kill the connection then restart the server Tried running both together – it doesn’t work If anyone has the answer I would be grateful as I’ve spent way too much time on this Such a project, just need the last bit to work

Thanks, Ian

nookontherim commented 1 year ago

I am planning to bring my raspy inside this weekend because I need change the wifi network details. will see if I can get this working.

nookontherim commented 1 year ago

I gave up on this. I just export to luftdaten/sensor.community with the default enviro plus script. I don't know how to use prometheus or grafana and the only thing I want to do with this project for now is to export the data to contribute to a citizen science project, which already works. someday I will try to use the script again, but for now I want to set it and forget it. will continue to follow this project though - happy monitoring!

tijmenvandenbrink commented 10 months ago

Just verified this works as expected (sending the stats to sensor.community and exposing the prometheus endpoint. Closing this issue.