ConnectedHumber / Air-Quality-Web

The web interface and JSON api for the ConnectedHumber Air Quality Monitoring Project.
https://sensors.connectedhumber.org/
Mozilla Public License 2.0
9 stars 4 forks source link

Map shows high levels #42

Open BNNorman opened 4 years ago

BNNorman commented 4 years ago

The map has a purple colored section but the highest reading is from freetown way at 30 something. Purple should kick in around 70.

sbrl commented 4 years ago

Hey! I'm not seeing this. When precisely was this happening?

BNNorman commented 4 years ago

Seems normal again. Look at timestamp for my message.

Sent from my Fire

On 25 July 2019, at 13:51, Starbeamrainbowlabs notifications@github.com wrote:

Hey! I'm not seeing this. When precisely was this happening?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/ConnectedHumber/Air-Quality-Web/issues/42?email_source=notifications\u0026email_token=ADY5NXMY4O2VKG2DVXPD6OTQBGOVZA5CNFSM4IGZKS72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ZL5KI#issuecomment-515030697", "url": "https://github.com/ConnectedHumber/Air-Quality-Web/issues/42?email_source=notifications\u0026email_token=ADY5NXMY4O2VKG2DVXPD6OTQBGOVZA5CNFSM4IGZKS72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ZL5KI#issuecomment-515030697", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

sbrl commented 4 years ago

Hrm, interesting. It's possible that it's due to differing algorithms that are used to average the data points for the heatmap and the device graph respectively.

bsimmo commented 4 years ago

Is this similar to what I'm seeing here ? Using ingocnito browsing so nothing else kicks in to chek. Whn PM2.5 hitting around 10ug/m3 is going to an orange colour, I've seen before on a steady plot and this is a more extreme example

Attached showing the effect currently. It should be a dark green colour at the maximum, not the orange in the background. Is it a transparency effect causing it ?

image

BNNorman commented 4 years ago

My 4 sensors are in that area - are they causing the effect you are seeing? Before we had summation - do we now have subtraction?

bsimmo commented 4 years ago

for the bit I pointed out, it's the Essex Road sensor, it's also happened on mine every now and a again. yours is easy to see with the big number 4 to the right of the

I couldn't see anything wrong with the colour categories. 0,4 is the transparency. Didn't quite get to splitting, but I think there is no addition/subtraction when it's one sensor box.

sbrl commented 4 years ago

Ah, thanks for the screenshot, @bsimmo!

Looks like we'll need to do some debugging here and catch the exact value it's trying to display.

It's possible that the interpolation between colours on the heatmap and gauge at the side are slightly different (unlikely), or that the average reported by the device-data HTTP API action is different to that reported by device-data (more likely).

It should be displaying 1 cell in the diagram for each device, @BNNorman. I suspect that there's a bug lurking in there somewhere though, because there aren't as many cells as there perhaps should be. I'd like to finish handling #36 first personally, so that then I can see which markers are supposed to have a segment in the heatmap and which ones shouldn't.