Coder Social home page Coder Social logo

blitzortungapi's Introduction

BlitzortungAPI

Simple WebSocket API for Blitzortung

Installation

Install via npm npm i -S @simonschick/blitzortungapi

Documentation

Please see the example

Notes

  • This project uses TypeScript and I highly recommend using TypeScript for it's consumption.
  • As the Client is relatively simple I will add not in depth documentation.

blitzortungapi's People

Contributors

simonschick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wired8 skelbon

blitzortungapi's Issues

IP/port changed

Blitzortung appears to have changed how their web sockets work. Inspecting the official website's JS, I found that the new port it uses is now 3000, and it also alternates between different websocket servers randomly (or pulls the last one from cookies), and also uses wss instead of ws:
wss://ws5.blitzortung.org:3000
wss://ws7.blitzortung.org:3000
wss://ws6.blitzortung.org:3000
wss://ws1.blitzortung.org:3000
I have fixed this locally for now by editing the Client.js file and setting the websocket URL to be wss://ws1.blitzortung.org:3000.

setArea not limiting area of observation

Apologies for posting another issue report. :)
I have noticed that using setArea doesn't actually limit the area for tracking the lightning strikes. Maybe this got changed at some point as well. I am giving it the standard object like so:

area
  - from
    - latitude: 46.557853
    - longitude: 17.702659
  - to
    - latitude: 44.557853
    - longitude: 19.702659

The method accepts the object without any errors, but the API gives strikes for the whole globe regardless.
image

While this issue does not impede my use case, as I check the distance to strikes anyway, it would help to lower the need for processing so many strikes regardless.

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.