Coder Social home page Coder Social logo

maon's Introduction

maon

The maon (most annoying order notifier) makes sure you get notified for each new order placed in your shop.

Hardware

The maon is based on a toy police siren I found on the street and an esp8266 which was laying around in the office. For more information on the hardware check out my project on hackaday.io.

Software

To develop the firmware the Arduino core for ESP8266 is used.
Building and flashing is done with help of makeEspArduino.

Yeah nice, but what it is doing?

Well rather simple...
After boot the maon connects to the configured wifi. When the connection is established it fetches the order list from the shop via the webservice API described here.
Then it will compare the highest order id that was fetched from the server, with the localy stored id. If the local id is the same it means no new order is present. But if the fetched id is higher then the local one, we got a new order! For this case the transistor will be switched "on" and thus the siren will receive power. The new id will also be saved locally.

After 10 seconds the siren will be stopped, the storage access will be finished and the wifi connection will be closed. Then the maon goes to sleep for 1 minute, just to start all over again afterwards.

What shop?

Currently only shops based on PrestaShop are supported.

How to configure?

In the Makefile.config the configuration is done. The first section is for wifi configuration and the second for the shop API.

!!! Attention: never make the config file public, as it holds sensitive information !!!

maon's People

Contributors

mr-mime avatar

Stargazers

DafDaf avatar

Watchers

 avatar

maon's Issues

Add some sound to it

Pretty self explaining...
Else blind people won't get noticed or you miss an order if you fall asleep...

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.