Coder Social home page Coder Social logo

osoc17 / code9000 Goto Github PK

View Code? Open in Web Editor NEW
8.0 9.0 1.0 16.4 MB

Urban Data Birds: Providing a new haven for urban biodiversity.

Home Page: https://osoc17.github.io/code9000/

License: MIT License

PHP 46.84% HTML 1.93% JavaScript 27.94% Python 2.17% CSS 20.22% Shell 0.35% C++ 0.57%
birds code9000

code9000's People

Contributors

bcommeine avatar cynthiav11 avatar demianbot avatar demiand avatar diegodewilde avatar dylanvanassche avatar mietcls avatar mrvdries avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lab9k

code9000's Issues

Collect data when a bird is detected

  • Check for a PIR sensor trigger, otherwise sleep
  • Collect data from the sensors, camera, ... when PIR sensor is triggered
  • Check if data is valid and recollect when necessary

Creating design guidelines

  • Doing some design research.
  • Looking at similar/interesting projects for inspiration.
  • Creating a mood board.

Calculate the power consumption of our IOT

Calculate the power consumption of our IOT device to choose the correct hardware.

Keep in mind these things:

  • Hours of sun/weather
  • Battery capacity
  • Solar panel power?
  • Backup battery
  • Time without sun power

Provide logout functionallity

  • Blacklist the token through the API
  • Remove the token from localStorage
  • Show a Logout page, with button to go back to login (or show immediately the login page)

Add Models

Model for observations, votes and users

Backup battery

Do we really need a separate battery as backup or not?
A warning can be submitted to the Thunderbird API to say that the IOT node is almost dead.

Backup battery should keep the device online for a certain amount of time and needs to be charged while the main battery is alive.

Add a data repository

  • Implementation of Repository Pattern in Laravel means separations of the data access logic from the business logic.

  • When fetching all, and we are logged in, give all the photos back that haven't been validated for the user.

  • When nog logged in, return all (default)

Not yet pagination

Add a seeder with some Dummy data

Sample data (observations (pictures and metadata) and user data)

  • a sample user
  • maybe all users of oSoc (can be handy for a demo)?

Preparing Pitch (3min)

  • Short intro of project
    What happen to day and what will happen:
  • Hardware
  • WebApi
  • WebApp
    -Short demo

Use Form Request Validation instead

At this moment we have following code:

    public function store(Request $request)
    {
        if ($request->hasFile('image') && $request->has('longitude') && $request->has('latitude') && $request->has('captured_at')) {
            $file = $request->file('image');
            if ($file->extension() == 'jpeg') {
                $picture_storage = Storage::putFile('observation', $file);
                $request['picture_storage'] = $picture_storage;
            }
            Observation::create($request->all());
        }
    }

But we can change it by using a Form Request Validation:
https://laravel.com/docs/5.4/validation#form-request-validation

It's also possible to check the extension of a photo.
https://laravel.com/docs/5.4/validation#rule-mimes

Maybe we should also let store other popular image types store I guess.

Implement vote

  • Users sends a request to /api/votes

Data that needs to provided:

  • observation_id
  • type (good, skip, bad (or other naming))

Users needs to be logged in to do this.

Select the right solar components

Depends on issue #8

We need to figure out which solar kit we need to buy, the kit needs to have the following things:

  • Solar panel
  • Solar charger, MPTT is better than PWM (better efficiency)
  • Cables to connect everything
  • Compatible battery

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.