osoc17 / code9000 Goto Github PK
View Code? Open in Web Editor NEWUrban Data Birds: Providing a new haven for urban biodiversity.
Home Page: https://osoc17.github.io/code9000/
License: MIT License
Urban Data Birds: Providing a new haven for urban biodiversity.
Home Page: https://osoc17.github.io/code9000/
License: MIT License
Try out hardware
Camera must be enabled by the user in raspi-config.
In case that it's still disabled, what error do we get in Python?
And how can we fix it?
Make a block scheme of all the hardware in order to see what we're building and which pieces are missing.
MySQL database for users, observations and votes
Tests are required to see if a motion can be registered sharp using the camera.
Physical assembly of the Naturalbytes kit
& possible to change the <Title>
tag
making an 'interface' to easy store and refresh our token
If we send a request, and we get a 401:
Calculate the power consumption of our IOT device to choose the correct hardware.
Keep in mind these things:
When tindering birds, your vote-buttons should be accesable, should send your vote to the api and the next bird will be showing, so you can vote the next one.
Huawei USB 3G stick on Linux seems to be pitty
Update it
testHardware.py contains demo code for the hardware. Use that to create clean code for production.
Create hardware folder and add some information for the hackathon.
Model for observations, votes and users
Provide:
Install Raspbian & setup screen
POST
/api/observations (upload image with metadata) ๐
/api/observations/vote (upvote/downvote) ๐
GET
/api/observations (limited by pagination)
/api/observations/{id} (metadata)
/api/observations/{id}/picture (full picture)
see https://docs.google.com/document/d/1nDretUIrXzD86Wt2fOnsMBwyUKZG2T2ZFDmxr1IGJLg/edit
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.
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
Sample data (observations (pictures and metadata) and user data)
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.
Data that needs to provided:
Users needs to be logged in to do this.
Depends on issue #8
We need to figure out which solar kit we need to buy, the kit needs to have the following things:
Write test software to test all the hardware we're using:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.