Commit graph

140 commits

Author SHA1 Message Date
Romain Bazile f801d74c0e imager: bugfix for wrong message received
If we stop the imager when the pump is still running, we were removing the callback treating the messages from the pump.
The effect is that if a status message has already been sent by the pump, the imager would parse the message with its normal code. So yeah, not nice.
I've now integrated all message treatment in one function, and pump_callback disappeared!
2020-12-15 16:44:01 +01:00
Romain Bazile 87fb866942 integrity: typo in error message 2020-12-15 16:08:15 +01:00
Romain Bazile f55182d79c raspimjpeg: remove unnecessary scripts 2020-12-08 17:31:23 +01:00
Romain Bazile fde4b166d4 segmenter: remove description from metadata 2020-12-08 16:52:50 +01:00
Romain Bazile dfdcf66be5 raspimjpeg: replace FIFO location 2020-12-08 16:52:22 +01:00
Romain Bazile 9852c3c469 imager: remove spaces in path 2020-12-08 16:51:55 +01:00
Romain Bazile 5312f37906 gallery: add all local files 2020-12-05 13:28:33 +01:00
Romain Bazile ede52d59db double all i2c calls and change nginx config in update script 2020-12-05 11:39:49 +01:00
Romain Bazile 6ce27f177d hardware.json: add wb gain settings 2020-12-05 03:22:47 +01:00
Romain Bazile 849d6188fd rename nginx template file 2020-12-05 03:13:01 +01:00
Romain Bazile 69b8782fb4 flow: icon of monitoring tab and update nginx config 2020-12-05 03:04:46 +01:00
Romain Bazile 7cc9aa4845 stepper: solve bug if flowrate is 0 2020-12-05 02:59:52 +01:00
Romain Bazile 1faf91ff51 Remove thumbsup and replace by simple nginx autoindex 2020-12-05 02:22:20 +01:00
Romain Bazile 93a7b5658d update: another typo, time to stop and go home 2020-12-03 18:07:50 +01:00
Romain Bazile bb8b3225d9 update: fix major fuckup 2020-12-03 18:00:40 +01:00
Romain Bazile ae13f07f45 fix typos 2020-12-03 17:28:54 +01:00
Romain Bazile b3d417e3b9 imager bug if object_date is not set 2020-12-03 16:45:01 +01:00
Romain Bazile d9aab5fc0b fix imager bug 2020-12-03 16:29:12 +01:00
Romain Bazile a03f3fb6aa imager: run thumbsup after every picture taken 2020-12-03 14:30:59 +01:00
Romain Bazile 841d9b8831 gallery: finishing installing thumbsup 2020-12-03 14:19:13 +01:00
Romain Bazile bbd3146f7c update: finable around npm crappy ownership issues 2020-12-03 13:59:23 +01:00
Romain Bazile aec7669ac6 update: add thumbsup install 2020-12-03 13:18:19 +01:00
Romain Bazile e2d6a21d0f thumbsup: add config 2020-12-03 13:13:09 +01:00
Romain Bazile a72b819b5a Flow: addition of log output, refactoring of GPS coordinates handling, refactoring of datetime management 2020-12-02 19:26:27 +01:00
Romain Bazile 13307476e2 imager add uuid for each acquisition and check for id reuse 2020-12-02 19:25:59 +01:00
Romain Bazile 8e70723310 add usb backup UI 2020-12-01 21:12:29 +01:00
Romain Bazile 054244f32c display: center text 2020-11-30 12:05:35 +01:00
Romain Bazile 9a0fef4411 first display use release, show machine name 2020-11-30 11:52:27 +01:00
Romain Bazile cbed5e4d18 main: add ready light 2020-11-30 11:45:59 +01:00
Romain Bazile ff59c0cac6 update the updater 2020-11-30 02:46:40 +01:00
Romain Bazile 51ff3b7375 update the light library
also replaces smbus by smbus2 to allow for cleaner setups
2020-11-30 00:17:30 +01:00
Romain Bazile 156286a8da add sample_gear_net_opening and sample_concentrated_sample_volume
improve #44
2020-11-29 23:48:54 +01:00
Romain Bazile 63102172fc add sleep_before, closes #48 2020-11-29 14:28:31 +01:00
Romain Bazile f04c2bcab6 add larger gain control range (up to 8.0) 2020-11-28 22:25:59 +01:00
Romain Bazile dcec3d01e4 retrieve camera name 2020-11-27 18:57:43 +01:00
Romain Bazile 594eeb5690 add white balance switch 2020-11-27 18:39:09 +01:00
Romain Bazile ebdf7876ce update: final update to flow 2020-11-27 12:53:54 +01:00
Romain Bazile fd741afc5a update: add git stash drop 2020-11-27 12:45:49 +01:00
Romain Bazile ac2d44a24e addition of white balance gain slider 2020-11-27 12:45:22 +01:00
Romain Bazile dd66f1adf0 update: improvement to the script 2020-11-27 11:58:01 +01:00
Romain Bazile f1b49e672b main.json: update to update code ;-) 2020-11-27 11:53:21 +01:00
Romain Bazile 4f5c59c061 imager: remove minimum volume check (done in Node-Red now) 2020-11-27 11:31:18 +01:00
Romain Bazile bcb1e245f0 usb_backup: fix typo and add purge of files 2020-11-27 11:30:49 +01:00
Romain Bazile a62891eb6a light: catch exceptions 2020-11-27 11:30:29 +01:00
Romain Bazile 1cf3d1df12 Fix bugs all around 2020-11-25 17:01:14 +01:00
Romain Bazile 05dc317095 imager: add support for white balance 2020-11-24 17:31:11 +01:00
Romain Bazile 3bb27b9e15 integrity: this and udev rule closes #15 2020-11-20 18:03:55 +01:00
Romain Bazile 6009e07cd6 first release of the integrity check mechanism 2020-11-20 18:03:55 +01:00
Romain Bazile ae29f8597e Main: print the machine name 2020-11-16 17:53:23 +01:00
Romain Bazile f27c9823a1 Integration of raspimjpeg
The source code of the modified version of raspimjpeg used by the PlanktoScope is hosted [here](https://github.com/PlanktonPlanet/userland/tree/master/host_applications/linux/apps/raspicam).

We moved away from picamera to improve the stability of the system. This commit should closes the elusive #51 and #54.

After a lot of tests, it was clear that even a forked version of picamera was not going to solve our problem while also improving on our capturing speed.

The modified version of RaspiMJPEG does that.
RaspiMJPEG streams the image flux to /dev/shm/mjpeg/cam.jpg . This is passively reloaded by the streaming server (still written in python).

RaspiMJPEG is controlled through a special file called a Pipe which is used to send it commands.
The list is available [here](https://github.com/PlanktonPlanet/userland/tree/master/host_applications/linux/apps/raspicam/Config.md).

The raspimjpeg binary is distributed directly in this repository, in the folder `scripts/raspimjpeg/bin/`.
2020-11-16 17:53:23 +01:00