gilestrolab / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://lab.gilest.ro/ethoscope/
GNU General Public License v3.0
17 stars 25 forks source link

device_server.py does not call the right app #91

Closed selmalaki closed 5 years ago

selmalaki commented 5 years ago

Shouldn't the run for cherryserver calls 'api' instead of 'app'? app is a global variable and it is used in server.py so it calls another Bottle() which is used for the server.py

When I changed 'app' to 'api' the device_server.py runs with no errors.

ggilestro commented 5 years ago

ethoscope/node_src/scripts/server.py runs on the node, whereas ethoscope/src/scripts/device_server.py runs on the ethoscopes. There is no conflict in the namespace between the two.