Giter VIP home page Giter VIP logo

lightningdetector's Introduction

Description

This project is a supybot plugin which detects lightning strikes based on Finnish Meteorological Institute's open weather data.

Usage

Clone this plugin into supybot's run directory under plugins. After this, the authorized user can load the plugin with command "load LightningDetector".

Commands

  • alarmadd lat lon radius_km
    • Adds an alarm for the user -- each user can have only one alarm.
    • Once an alarm is set, the plugin will periocally check if any lighting strikes are detected in the vicinity. The user will be alarmed to the channel where the alarm was originally set. The plugin tries not to spam and has three hour blocking period after user has been alarmed.
    • Example: alarmadd 62.2321 24.2455 50
  • alarmremove
    • Removes alarm for the user
  • alarmlist
    • Lists all alarms
    • Output format is the following: user channel lat lon radius unix_ts_until_next_alarm
    • Example: tipi^ #salamatesting 62.2447 25.7472 50 1463528267
  • alarmstatus
    • Forces the alarm to be shown regardless blocking period
  • alarmemail email
    • Adds email alert to user's alarm. User can remove the email alert by using this command without parameter.
    • Using this command requires that Gmail credentials are entered to userconf.py
  • weather place
    • Returns the weather for a city in Finland

User configuration file

In addition to the files contained in this project, the user must create a file 'userconf.py' which contains the variable APIKEY in the following format.

APIKEY = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

The API key is a personal key which the user can register for [here] (https://ilmatieteenlaitos.fi/rekisteroityminen-avoimen-datan-kayttajaksi).

If you wish to use the email alarm functionality, add Gmail credentials to the same file.

GMAIL_USER = '<user>@gmail.com'
GMAIL_PASS = '<pass>'

lightningdetector's People

Contributors

tipith avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.