cloudy cloudy

Author Topic: Lightning 2000 example file  (Read 559 times)

0 Members and 1 Guest are viewing this topic.

Offline mihec

  • Posts: 211
  • OS/Browser:
  • (Linux Mint)
  • Firefox 58.0
Lightning 2000 example file
« on: March 14, 2018, 01:38:52 PM »
WD has an option to use lightning data from the Lightning 2000 software. Does anyone has an example file from the Lightning 2000 ? I'd like to adapt the output from my lightning detector to the file format from Lightning 2000.
Many thanks.

Offline Budgie

  • Martin
  • Global Moderator
  • Posts: 5,986
  • CWOP: CW7959
  • Lochaber, Scotland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 58.0
    • Lochaber-Weather
Re: Lightning 2000 example file
« Reply #1 on: March 15, 2018, 11:11:34 PM »
Which lightning detector do you have?

Offline mihec

  • Posts: 211
  • OS/Browser:
  • (Linux Mint)
  • Firefox 59.0
Re: Lightning 2000 example file
« Reply #2 on: March 15, 2018, 11:42:12 PM »
I bought a little board from playingwithfusion on eBay and connected it to RPi. I'd like that WD keeps lightning strikes' records instead of having data in text files.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,420
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 65.0.3325.162
Re: Lightning 2000 example file
« Reply #3 on: March 16, 2018, 12:07:43 AM »
One of these AS3935 boards?

Offline mihec

  • Posts: 211
  • OS/Browser:
  • iOS 11.2.6
  • Safari 11.0
Re: Lightning 2000 example file
« Reply #4 on: March 16, 2018, 04:02:53 AM »
Yes. I wrote about it in the other thread.

Online Weather Display

  • Posts: 84,672
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: Lightning 2000 example file
« Reply #5 on: March 16, 2018, 07:46:44 PM »
WD will be expecting a line of data in the file
like
strokes per minute

Offline mihec

  • Posts: 211
  • OS/Browser:
  • Mac OS X 10.13.4
  • Safari 11.1
Re: Lightning 2000 example file
« Reply #6 on: May 21, 2018, 06:45:56 PM »
A late update to this. I've tested and I confirm WD reads the file. I just need info from Brian how often does WD access the file - so I need to know how often I need to refresh the file content. I must adjust the python script which updates the file. Thanks!

Online Weather Display

  • Posts: 84,672
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 66.0.3359.139
    • Weather Display
Re: Lightning 2000 example file
« Reply #7 on: May 21, 2018, 07:14:57 PM »
every second

Offline mihec

  • Posts: 211
  • OS/Browser:
  • Mac OS X 10.13.4
  • Safari 11.1
Re: Lightning 2000 example file
« Reply #8 on: May 21, 2018, 07:24:10 PM »
Thank you Brian. Shall I update the file every second then? So it keeps the last strikes in a rolling minute?

Online Weather Display

  • Posts: 84,672
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 66.0.3359.139
    • Weather Display
Re: Lightning 2000 example file
« Reply #9 on: May 21, 2018, 07:41:25 PM »
total strikes in a minute and then also last strike (time etc)

Offline mihec

  • Posts: 211
  • OS/Browser:
  • Mac OS X 10.13.4
  • Safari 11.1
Re: Lightning 2000 example file
« Reply #10 on: May 21, 2018, 08:21:24 PM »
I've set it up now. We might get some lightning in the next days. I'll report back how it works. Thanks.

Offline mihec

  • Posts: 211
  • OS/Browser:
  • (Linux Mint)
  • Firefox 60.0
Re: Lightning 2000 example file
« Reply #11 on: June 05, 2018, 05:20:19 PM »
We're having major thunderstorms around and my detector reports hundreds of lightning strikes.
The RPi logs every stroke in the log file. Today there were about 450. But the WD only reports 214.

Are there any other fields that need to be populated in the nowcast.txt file? Or do I need to adjust the update frequency?
I log a file every 60 seconds (python script in RPi), WD downloads this file from RPi (web server).

It's not a major issue but if it worked I could write down nice how-to how to integrate own lightning detector with WD. Hobby boards is not available anymore so one alternative would be welcome.

Online Weather Display

  • Posts: 84,672
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 66.0.3359.139
    • Weather Display
Re: Lightning 2000 example file
« Reply #12 on: June 05, 2018, 07:51:07 PM »
do you mean you use the http download in WD to get the file?

Offline mihec

  • Posts: 211
  • OS/Browser:
  • (Linux Mint)
  • Firefox 60.0
Re: Lightning 2000 example file
« Reply #13 on: June 05, 2018, 07:55:16 PM »
Yes, correct.

Lightning detector --> RPi (here the web server runs)  <-- WD http download every 1 minute

RPi:
1. Logs every strike to a file
2. Another python script analyzes the file and generates nowcast.txt and writes the number of strokes in the last current minute. Sleeps for 60 seconds and again it goes.

Online Weather Display

  • Posts: 84,672
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 66.0.3359.139
    • Weather Display
Re: Lightning 2000 example file
« Reply #14 on: June 05, 2018, 08:10:50 PM »
am I able to download that here to test same setup?

 

cumulus