Hi All,
We use a couple of RPi as AIS receivers in a harbour. This works great.
We also have a script to store recent vessel GPS info in a mysql database so other applications can fetch there current location.
This is a buggy/old script and i would like to get rid of it and build something new.
It would be great if there is a way to store AIS data from kplex in a database.
I want one table with all current vessels in reach of AIS, so we can query the most recent info from this database.
And if this works good, i also want to store some historic gps movement, so we can request a gps track from his visit to the harbour.
Yes, i know there are already online services for this :-) but we like to store it ourself if possible.
This brings up two main questions.
1) how to get the NMEA data into a mysql database in readable format.
2) how to limit the amount of data send to the database.
to explain (2), one RPi receiver, on avarage receives between 20 - 30 messages a second.
We want 3 to 4 receivers to cover all the area. So updating the database on each message would be generating way to much updates.
does anybody have any ideas, tips, examples...
thanks in advance.