r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
53 stars 42 forks source link

server: mqtt2bufr can write malformed bufr #345

Open pat1 opened 3 years ago

pat1 commented 3 years ago

related with https://github.com/ARPA-SIMC/dballe/issues/257

If a user publish wrong data/metadata on mqtt those data are written as bufr and amqp2dballed raise an exception. A check on import level is not so easy because the bufr are grouped in amqp messages. Python api do not implement an --rejected option as in dbadb import that shoud be a solution. https://github.com/ARPA-SIMC/dballe/issues/258 Rejected messages can be managed with an nack and a "x-dead-letter-exchange" option in rabbitmq queue with a dedicated exchange and queue ...