GithubHelp home page GithubHelp logo

pimetarmap's Introduction

PiMetarMap

France map

PiMetarMap is yet another METAR plotter running on raspberry pi. It uses Adafruit CircuitPython NeoPixel to control WS2811 addressable LEDs.

Most of the solutions on Github are made using US VFR/MVFR/IFR rules to drive led colors.

This project is using French MétéoFrance color code as pictured here:

MétéoFrance VMC levels

  • Blue: visibility > 9999m and ceiling above 3000ft
  • Green: visibility > 8000m and ceiling above 2000ft
  • Yellow: visibility > 5000m and ceiling above 1000ft
  • Orange: visibility > 1500m and ceiling above 500ft
  • Red: visibility > 800m and ceiling above 200ft
  • Purple: visibility <= 800m and ceiling bellow 200ft

Configuration

VMC levels

From 0 to 5, or very bad weather to very nice, following the scale explain right above.

Colors have to be hex RGB values.

You can cheat and select the same color if you need less precision and don't want to tweak the code.

Default values are :

VMC_LEVEL_COLORS = {
    0: '#cc00cc',
    1: '#ff0000',
    2: '#ff3000',
    3: '#ffff00',
    4: '#00ff00',
    5: '#0000ff',
}

Airports

Add ICAO airports codes with Led position in the strip as index.

AIRPORTS = {
    0: 'LFRH',
    3: 'LFJR',
    8: 'LFOV',
    13: 'LFRN',
    18: 'LFRV',
...
}

Weather API

Currently using Aviation Weather REST API. But easily adaptable to other services by implementing the ProviderInterface.

You'll need to register for free and get an authorisation token if you plan to use AVWX.rest.

Api calls are throttled to stay within the quota of the METAR provider service. You'll have to specify this quota. AVWX.rest limits its free accounts to 4000 call/day.

AVWX_WEATHER_API = {
    'daily_quota': 4000,
    'bearer': '<your_secret_token_goes_here>',
    'endpoint': 'https://avwx.rest/api/metar/',
}

NeoPixel

Some mandatory settings to specify :

  • The Raspberry Pi GPIO pin the command wire of your led strip is connected to (NeoPixel requires that it is only one of D10, D12, D18 or D21)
  • Number of led you have on your strip
  • Brightness used on daylight, before 6am (float value from 0 to 1. 0 is "on", 1 is "eye piercing", and you'll need an extra power supply because your DC5V @2.1Amp from usb will not be enough if you powered it to max brightness! 0.2 if really enough)
  • Brightness used after 8pm.
NEOPIXEL = {
    'gpio_pin': 'D18',
    'num_pixels': 50,
    'day_brightness': 0.2,
    'night_brightness': 0.05
}

pimetarmap's People

Contributors

dodubassman avatar

Watchers

 avatar  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.