Rymapt / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://gilestrolab.github.io/ethoscope/
GNU General Public License v3.0
0 stars 2 forks source link

Add a bottle route to trigger check with the update server #60

Closed mark-grimes closed 6 years ago

mark-grimes commented 6 years ago

This adds a route to bottle (http://ethoscope-abcdef.local/onlinesupport) that triggers the online update/support tool. Note that there is no link in the GUI to this - current plan is that when we need to provide support we tell them to type the address in.

I'm a little reticent to put this code in the node server because it has to couple tightly with something outside of the ethoscope codebase. I'll figure out a better way to do it in the future.

I'm also not fully convinced about how the output is displayed. It takes it in turns doing blocking queries on stdout and stderr. So if no error is displayed output is held up until the pipe closes. Another thing to sort out in the future.