CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
178 stars 50 forks source link

Allow archive suffix to be defined #219

Closed g7gpr closed 1 year ago

g7gpr commented 1 year ago

https://github.com/CroatianMeteorNetwork/RMS/issues/218

Modifies existing event_monitor.db file by adding a suffix column if this column is missing Sanitises a suffix field, loads into database, and then adds as a suffix to the archive file

AU002A_20230913_151600_test-2.tar.bz2

was created from

# Required 
EventTime                : 20230913_151600
TimeTolerance (s)        : 35
EventLat (deg +N)        : -32.34301
EventLon (deg +E)        : 116.60553
EventHt (km)             : 95.80500
CloseRadius(km)          : 1000.00
FarRadius (km)           : 6000.00
EventLat2 (deg +N)       : -32.37110
EventLon2 (deg +E)       : 116.81883
EventHt2 (km)            : 81.24380
Suffix           : te.s.><t-2
g7gpr commented 1 year ago

Now tested on Pi4 64bit with this modification. No ill effects on existing systems running without this new code - undefined key is ignored. DB upgrade working without re-upload of events.

Omitting the suffix falls back to using event

EventTime                : 20230929_143300
TimeTolerance (s)        : 5
EventLat (deg +N)        : -32.356
EventLon (deg +E)        : 115.816
EventHt (km)             : 84.2
CloseRadius(km)          : 100.00
FarRadius (km)           : 300.00
EventLat2 (deg +N)       : -32.355
EventLon2 (deg +E)       : 115.900
EventHt2 (km)            : 70.96

END

yields

/home/au0007/files/event_monitor/AU0007_20230929_143300_event.tar.bz2