Skip to content

gds32571/lightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightning

Programs to read Acurite Lightning sensor data and transmit an opinion about the likelihood of a close-by lightning strike.

detect.py:

The main decision making program. For testing, you can copy to detect-test.py and edit the testmode flag to do parallel testing.

rules.py:

Thresholds as currently calculated.

testing subsystem:

These should be in a separate folder.

MQTTRecorder: This program will record MQTT transmissions from the HA server and store them in a database. You can record a real lightning storm event (max two hours real time) and record the data in a SQLite database.

MQTTPlayer: Program will replay a storm event. A command line parameter selects which storm from the database.

run_test: A shell script to replay multiple recordings from the database.

events.sql: A database dump of a storm event

client software

check_lightning: This program connects to the lightning manager to read its opinion on likelihood of a "close-by" strike. If 100%, the program will shutdown the Raspberry Pi, the UPS3 that supports the RPI, and then disconnect from the wall wart adapter powering the UPS3. There is a testmode flag so that you can connect to a different port in a different program (detect-test.py). Also can generate test URL instead of real URL. See the program comments.

About

Lightning system with test software

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published