Sensor says it outputs "energy" but don't see it in code.. Aug 3, 2020 14:49:22 GMT -8
Post by earlthesquirrel on Aug 3, 2020 14:49:22 GMT -8
Now that the wind and rain sensors are operating after a loooong time debugging, now on to Lightning Detector.
1) I'm feeding the output data into a Weewx weather monitoring set up.
It has the following values to be tracked for Lightning:
I see Distance, and Strike Count in the existing code (from the GitHub repo).
I don't see any counts for Noise or Disturber (I do see that they can occur, but it looks more like it adjusts based on them,
but doesn't keep track of count... is that correct? And if so, I don't see that as a big problem)
I do see "energy" on displays related to the sensor. Such as your Instructable : www.instructables.com/id/Lightning-Detector-for-Raspberry-Pi-WeatherPi-Weat/ On the LCD display it shows "Energy". Also on the spec sheet indicates it as well.
Was this left out of your existing code? Is there an example or place where I could pull the code on how to read this value?
Question 3: As you can see in picture below, I 3-D printed out the case, so the set up matches your instructions for setting it up with a Raspberry Pi with Grove Hat and Grove LCD, Buzzer and Sensor. The code however, leaves the LCD on continuously. That seems to be a lot of wear and tear on that... I know when mine restarts the text is fairly faint and doesn't really get readable for a bit. Is that expected? The colors are useful of course (in mine you can see that I caught it as orange/red during a strike)
Question 4: I am trying to figure out the proper placement of the device. Having it outside (and having the buzzer connected) doesn't provide the best solution. Having it inside and having buzzer go off in the middle of the night (or if power goes out) isn't a great answer either. As you can expect, i have the buzzer disconnected right now :-) Where do you recommend it being placed? I might have one window sill it could go on... is that a reasonable solution? If so, do you recommend the "set_indoors" to be set to True or False if it's on a Window sill?
Today during the storm, with indoors set to False, I got a lot of hits. In the 200-300 range. Is that a "reasonable" expectation?
(I have Minimum_Strikes set to 1, which I "believe" indicates that it only takes 1 strike to trigger the interrupt that there was lightning... that correct? From code it "looks like it") I got it saying Lightning 34km away as well.
I had to restart the device a couple times today (was tweaking the code) so I never saw if the Last Result ever resets. From looking at the code, it doesn't seem that it ever does. What is the best way to detect that Lightning is detected and when is a reasonable time to "stop" displaying that it's Lightning in the area? Set some flags in the try loop? Base it on color changing on display? Or??
Thanks in advance...