Shop OBEX P1 Docs P2 Docs Learn Events
HTML and XML — Parallax Forums

HTML and XML

MoskogMoskog Posts: 554
edited 2014-10-19 09:43 in General Discussion
I’m soon finishing my weather station project, a project that has been going on for long time now. It’s a Propeller version of my old Basic Stamp station that will include a lot more data from a lot more places than the old one. It will include conditions at several 2m repeater stations located on mountain peaks (designed as an emergency radio system for workers out of range of the GSM network) Also include conditions at my cottage in the mountains some 15 kilometers away, data sent at 4am through 2 repeaters. Using the emergency repeaters at a time with probably no other traffic. And finally weather conditions at the place where I live.
I have three test pages up and running:
http://la3usa.com/moskog.htm-weather conditions from where I live
http://la3usa.com/snappar.htm -conditions at my cottage, including temperature inside the cottage, outside temp, wind conditions, (still waiting for the anemometer) and amount of birdfood in a feeder nearby. (No currently access to this cottage-station because of some repeater difficulties these days, the link between the two repeaters is down)
http://la3usa.com/sima.htm -conditions at one of the repeater stations.
Now all these three HTML-pages are located on my PINK-server, one of them using a separate script-file. The Spinneret is receiving the whole data-file from the Main Station (some 314 bytes at the moment) and then generate several xml-files for the HTML’s at the PINK.
I’ll try to post the current Spinneret-spinfile.
I’m using the PINK because of risk of Spinneret memory overflow. The Spinneret spin-file is based on MikeG’s HTMLGraph.spin. The Spinneret has been very healthy with no problems at all using this file, for weeks.
When using PINK for the htm-file and Spinneret for the xml file, like http://la3usa.com:5000/moskog I ran into the fact that I cannot address the xml-file using the domestic IP-address. I have to go through the DYN DNS: la3usa.com. This is making the xml-request time consuming and sometimes the request simply hangs and I need to close down the page and try again.
So I been thinking about posting the HTML-pages on a server at my Internet-provider, (means fast access and download). But the problem is the xml. What will be the best solution here, what is most common, to let the Spinneret post the xml-file at the remote server e.g. once a minute? Is it possible to make an application that send a request to the Spinneret each time someone access the HTML-page –to get the xml-file?
You now I been studying both HTML and AJAX and others but have some problems understanding all this complicated stuff so I thought I should ask for some advice again here.
Sign In or Register to comment.