|
|
Show ChartFrom Meteoplug WikiShow ChartMeteoplug allows to display result of applying your chart definition to your weather data. Simply select chart you want to display from drop-down menu. The chart will immediately generated. If something goes wrong an error message will appear instead of chart. ![]() The link at the bottom allows to access the chart as a stand alone HTML page. When you want to include the chart into your homepage, just put this link into an IFRAME section like this:
<iframe src="http://www.meteoplug.com/cgi-bin/meteochart.cgi?draw=6f686c6a6d791900065249..."
allign="top"
scrolling="no"
frameborder="0"
width="580"
height="430">
Browser does not support IFRAMEs
</iframe>
Using this IFRAME wrapper, the chart will be included into your home page like you can see below. Inclusion by IFRAMES is a very simply but powerful technique to bring Meteoplug content onto your web pages. The URL that "Show Chart" page of Meteoplug does give to you for external reference of the chart is valid as long as
Additional URL parametersThere are a couple of additional URL parameters you can use to change some settings of your chart definition when calling the chart for generation. These parameters have to follow the "draw" token in the URL. You can make use of these additional URL parameters:
Alternative URLMeteoplug can generate pure graphic files (like png) when used in gnuplot or picture mode. Some data polling devices need the URL to address a ".png" or ".jpg" file. Therefore, URLs like "http://www.meteoplug.com/cgi-bin/meteochart.cgi?draw=696368686d7930264f0b100b090b5449130f0414792a343a3337" won't do, because this does not match the expected URL naming schema. For situations like this you can change the URL to "http://www.meteoplug.com/draw/696368686d7930264f0b100b090b5449130f0414792a343a3337/temp-1month.png" where the draw toke is used as a path identifier and a filename of your choice in that path. This technique was designed to generate overlay png file to be used by Mobotix webcams but might be usefull in other situations as well. Additional URL parameters cannot be handled by this type of URL resolution. |
