Webtags (preserving history): Difference between revisions

m
Line 770: Line 770:
**In contrast, a URL with query-string is restricted in total length (the restriction is dependent on a number of other factors, but might be at something like 1000 characters in total), so GET comes with a restriction on how many parameters can be specified.
**In contrast, a URL with query-string is restricted in total length (the restriction is dependent on a number of other factors, but might be at something like 1000 characters in total), so GET comes with a restriction on how many parameters can be specified.


here is an example text file with some web tags in it, let us store it in '''process.txt''':
See https://cumulus.hosiene.co.uk/viewtopic.php?p=145050#p145050 for post example
<pre><#time format="yyyy-MM-dd hh:mm:ss">,<#temp rc=y>,<#hum>,<#dew rc=y>,<#RecentFeelsLike rc=y d=1></pre>
 
The command '''http: //localhost:8998/api/tags/process.txt''' would send that text file to the api server, and you would get back the date and time in ISO format, the current temperature with decimal point, the current humidity, the current dew point with decimal point, and what the feels like temperature was one day ago at this time again with decimal point. I have not included an example of how to process it, but if you know how to process HTML forms using POST you should be able to implement this Cumulus api approach. If your experience does not cover HTML form handling, then you are unlikely to use this api.


=The Web Tags for Cumulus =
=The Web Tags for Cumulus =
5,838

edits