andreacorna / ioccupancyserver Goto Github PK
View Code? Open in Web Editor NEWThis project forked from r0rshark/ioccupancyserver
Flask Rest-full server for iOccupancy project
This project forked from r0rshark/ioccupancyserver
Flask Rest-full server for iOccupancy project
1)download virtualenv: sudo apt-get install python-virtualenv -run virtualenv inside the projec folder: virtualenv venv -activate virtualenv: . venv/bin/activate -download other usefull library: libmysqlclient-dev python-dev gfortran libblas-dev liblapack-dev -if you are using a raspberry in order to install the follow requirements you have to give to compiler all ram, otherwise you cannot compile them. To do this open a terminal and with root privileges launch "raspi-config". On the screen select "Advance options" โ "Memory split" โ set "16" as memory for the gpu. After compiling you can restore the previous value. -install python packages: pip install -r requirements.txt 2) create database: - launch mysqld if not active -start virtualenv with this command: . venv/bin/activate -create a mysql user and a database -check the fields user password host database in iBeaconOccupancy/model/config.py -create database through script: ./create_database.sh 3)launch the server with sudo because runs over port 80:sudo ./start_server.sh NB All scripts must be modified with "chmod +x". If you want to change the port listening by the server just change the port number variable in tornado_laucher.py Library notes SQLAlchemy => libmysqlclient-dev e python-dev scipy => gfortran libblas-dev liblapack-dev if any problem http://scikit-learn.org/stable/install.html matplotlib => libfreetype6-dev libjpeg8-dev libpng-dev Library needed may vary depending on the type and the version of the operationg system so don't completely rely on them probably in yourr system are required slightly different library Folder stucture app.py: app which start the default python server tornado_launcher.py: wrapper of app.py which allowes to run the server through Tornado iBeaconOccupancy: package which contains all the logic of the server test_machine_learning: contains a script used to test parameters and quality of the model found templates:simple html pages to show some information
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.