I have a weather station supplying me data every 2.5 seconds. (using weewx)
I want to show this live on my website using highcharts to plot live data.
Currently i can pickup the messages from the redis channel ‘weather’ using Predis just to test.
The issue is that the data is only sent every 2.5, so when a users opens the php site he sometimes has to wait 2.5 seconds for the chart to appear.
Do you have any suggestions to get around this issue?
I have a weather station supplying me data every 2.5 seconds. (using weewx) I
Share
What you should do is have a second listener dump data into a key current_weather every time an event comes across. When you first load the page, pull from that key to build the chart, then start listening for updates.