How can I refresh automatically the data in the world ?
I have tried to use a redirection from a static KML file using the <networklink> tag and its <RefreshInterval> value, but it doesn't seem to work (you can find it at URL http://www.alpha-pyxidis.com/kml/velopop.kml). The 2nd world's key is : kinhodv
When I load this "static" KML into GoogleEarth the data are automatically refreshed every 5 min, but within Wikitude published world, I have a "no POI available" message.
Is there any automatic-refresh capabilities using KML or ARML ?
Thanks for your help.
over 9 years ago
First of all thanks for your interest in Wikitude and for your efforts in using it!
Regarding the "refresh topic", there are a couple of suggestions I can give you:
A) In our systems KML format is intended to be a static resource. In facts, it is an XML file which needs to be updated manually in the DevZone when you want edit its content.
B) The good news is that our systems support also dynamic resource as your own Web Service(s) . Unfortunately, you have to switch to ARML format (http://openarml.org).
So, once you have a WS delivering proper ARML content
=> go into the DevZone panel,
=> select ARML type for the new World
=> submit your WS endpoint
=> test your new World into Wikitude Browser through its developer key
If everything works as expected then be sure your World is in Public mode (and not in Draft mode) and wait 24h in order to see it appearing in the entire application. This interval might be needed just at a first setup.
Let us know if you experience any problem during this process: we will assist you as fast as possible :)
I'm truly glad to see you transform the WS in order to deliver ARML responses.
At first, we should start from few tips in order to arrive to a working version of the document ;)
In facts, I noticed that:
a) The 'id' attributes for <Placemark> tags missed the comma, e.g. <Placemark id=3>, whenever it should be <Placemark id="3"> .
b) The MIME TYPE of the response looks to be still "text/html" . Instead, I would suggest you to deliver a proper MIME TYPE like "text/xml".
Let start with those points, and then refine the response until we get a proper result.
Ping me as you are ready;-)
Have a nice day!
over 9 years ago
Thanks for your answer. I have fixed the problem. As you've suggested I have added the missing double-quotes around the placemark ids.
I also saw on an other ticket that some blank line at the beginning of the ARML data stream should also cause the same error.
It was the case for my PHP script. I was generating a blank empty line before sending the first <?xml markup. I changed that and it is now working.
The world dev-key is "fdguzwg"
Now that I have a WS-based on ARML file generation, how can I refresh periodically the data published in this World ? Is there any interval parameter I should set somewhere ?
I've noticed that, unlike with KML, now the data are refreshed when I first connect to the ARML world.
But once I have loaded the data, I have to quit the Wikitude App to have the data refreshed.
Thks a lot for your help
over 9 years ago
I'm happy to hear that the problems are gone now!
Our system will periodically check if your WS is up and running: in this case your WS will be always in the loop.
Concerning the refresh of the data "client-side", you have to keep in mind that there are some policies used by Wikitude World Browser in order to refresh data under certain circustamces. This approach won't overload the WS with too many requests.
Regarding the refresh of the data "server-side", it is up-to-you to your Server to decide the right policies.
If you have any other questions then please don't hesitate to contact us.
Thank you very much for your interest!
about 9 years ago
Hello Vincent ,
Can you give me the sample source code in PHP to generate the ARML file .