Giter Site home page Giter Site logo

birdfeeder's Introduction

Bird Feeder - Dashboard

Bird Feeder is a small project for our IT project work term. It contains iOT device side and Web Server side. On the iOT device side, we use one outside Raspberry Pi to collect different kind of data, like: image of bird, temperature, humidity, light, etc. and send these data to MQTT Broker. We also have another inside Raspberry Pi connected to the TV monitor. We run a Web Server on this Pi and use it to deploy our web application - Dashboard.

In this document, we will only introduce the Dashboard part of this project.

Keywords

MQTT, Raspberry Pi, Web Server, Web Application, Dashboard, iOT, Python, JavaScript, HTML, CSS, etc.

Project Structure

NodejsAPISave # Nodejs API Server
├──  api.js # read images from our AI processed folder and send them to the web server 
├──  main.js # connect to MQTT Broker and save image to the local folder 
├──  run.js # run api.js and main.js
WebServer # Dashboard Web Server
├── static    # static files
│   ├── css
        └── style.css # main css file
│   └── images
│   └── js
        └── bundle.js # main js file
├── templates # html templates
├── runWebServer.py # run web server

Usage

Step 1

run the following command to start the Nodejs API Server and save images from MQTT Broker:

node run.js

Then we can access the API Server through the following URL:

http://localhost:3000/api/images

Step 2

Our web server use Flask as the framework. To run the web server, you need to install Flask first, and then run the following command:

python3 runWebServer.py

Then we can access the web server through the following URL:

http://localhost:80/

License

MIT

birdfeeder's People

Contributors

waltonca avatar

Watchers

 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.