Coder Social home page Coder Social logo

wenipolcan's Introduction

WeNiPol CAN

Work in progress

Notes

Startup

On startup the ESP sends a baked-in Westwoodlabs logo to the WeNiPol.

WiFi

This project uses WiFi-Manager to connect to a WiFi network. If the ESP cannot connect to a network, it will create its own network with the SSID WeNiPol setup.

When connected to an existing WiFi network, the ESP will announce itself via mDNS as WeNiPol (wenipol.local). You probably should only use the mDNS lookup to determine the IP address (e.g. via ping) and then use the IP for curl requests, as this mDNS is pretty slow.

Uploading GIFs

  • GIFs MUST be 48x48 pixels.
  • The red-channel controls the red-LEDs, the green-channel controls the yellow-LEDs.
    The LED will be on if the value is 0xF0 or greater.
  • If all channels (R,G and B) are 0xF0 or greater, the LED won't be lit,
    as "white" is interpreted as a background color.
  • GIFs MAY be animated and contain any number of frames. The animation timing will be applied,
    but the animation will be looped indefinitely always.
  • To upload a GIF use the following endpoint:
    $> curl -F gif=@$filename http://$IP/gif
    If you want the GIF to be displayed imediately, add ?show to the URL.
  • To show an existing GIF use:
    $> curl -X POST 'http://$IP/gif/$FILENAME/:show'
  • To list all GIFs use:
    $> curl 'http://$IP/gif'
  • To delete a GIF use:
    $> curl -X DELETE 'http://$IP/gif/$FILENAME'
  • To set the brightness use the following endpoint:
    $> curl -X POST 'http://$IP/brightness?brightness=$VALUE'
    The brightness value MUST be between 0 and 2400. The LEDs will only be visibly lit
    from values about 130 and up.
  • You can also reboot the ESP, if anything goes wrong:
    $> curl -X POST 'http://$IP/reboot'

wenipolcan's People

Contributors

pmenke-de avatar metaln00b avatar

Stargazers

 avatar

Watchers

Patric Steffen avatar Fab!an 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.