--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To explain what I am trying to achieve: I have developed a weather station using an Airmar 200WX sensor connected to a Raspberry Pi. The Raspberry Pi has the SignalK Node server and a normal web server serving time plots of wind speed and -direction (using the Smootie Charts JavaScript library) to tablets or mobile phones. These clients connects to the Raspberri Pi through a WLAN USB stick acting as an access point.
However, in order to always get the history in the graphs, I am constantly storing the data in a MySQL database. If the server or client gets offline and then online again, the web page loads the history data and the continues to top up with new data.
All works well but in order to get the historic data right, I need to set the clock manually on the Raspberry Pi after boot (within a couple of seconds). Seems like a waste since the GPS is already there with its time stamp. The problem is that the SignalK server pipes out time stamps but not according to the time on the server and not from the GPS.
Teppo: Your solution could work but I guess I just have to make sure that the serial port gets properly released before the SignalK server takes over.
Rob: Good point on GPS accuracy. If I can access it, I'm pretty sure it is good enough for my purposes but in other implementations it could be something to be aware of.
Teppo: Your solution could work but I guess I just have to make sure that the serial port gets properly released before the SignalK server takes over.