bearing / dosenet-raspberrypi

Raspberry Pi specific software for dosimeters.
MIT License
7 stars 21 forks source link

Code restructure #95

Closed bplimley closed 6 years ago

bplimley commented 7 years ago

I think another major restructuring is due soon, for two reasons:

  1. A "master manager" would be useful for keeping track of the PocketGeiger and D3S processes on the same Pi, and potentially more devices in the future. (It could also make it harder to accidentally put the device in a state where it can't get on-the-fly updates.)
  2. There are now several different types of data packets that get sent to the server, including PocketGeiger old data format (which could actually be removed now), PocketGeiger new data format, D3S data, and log messages. They share a lot of code such as encryption and network error handling. With some careful thought, we might implement a DataPacket base class and a variety of classes inheriting from it.
bplimley commented 7 years ago

And the major restructuring might be a good time to move to Python 3 (#57).