1,651
edits
m (→Using Webtags) |
m (→Using Webtags) |
||
Line 41: | Line 41: | ||
There are two bonus methods for getting values out of the CMX database: | There are two bonus methods for getting values out of the CMX database: | ||
#Getting [[Cumulus_MX_Local_API#Predetermined_Data|predetermined data]] | #Getting [[Cumulus_MX_Local_API#Predetermined_Data|predetermined data]] (not really with Webtags) | ||
#Using MySQL through the Custom Upload feature | #Using MySQL through the Custom Upload feature | ||
Line 49: | Line 49: | ||
== Processing files == | == Processing files == | ||
The oldest, most common and possibly the easiest method for using webtags is processing a file (e.g. a HTML web page or a PHP script) which contains a webtag description like <#temp rc=y>. After processing the output file then contains the value for that webtag and the complete description, including the brackets have then disappeared. | The oldest, most common and possibly the easiest method for using webtags is processing a file (e.g. a HTML web page or a PHP script) which contains a webtag description like <#temp rc=y>. After processing the output file then contains the value (e.g. 17.1) for that webtag and the complete description, including the brackets have then disappeared. | ||
The configuration should look like the screenshot below: | The configuration should look like the screenshot below: | ||
Line 58: | Line 58: | ||
== MySQL == | == MySQL == | ||
to | In the MySQL settings of the Interface there exists the possibility to create Custom Upload queries. This is n ot the place to treat the use of MySQL extensively, but CumulusMX offers the possibility to use Webtags in such a Custom Upload query definition. The example below should calrify: | ||
INSERT IGNORE INTO `test_daily_summary` (`MaxRainRate`, `LogDate`, `RollOver`) VALUES ('<#rrateTM>', '<#metdateyesterday format=yyyy-MM-dd>', '(1 * SUBSTRING(<#rollovertime>,0,2))'); | |||
Again, the modifiers are discussed below. | |||
= Webtag modifiers = | = Webtag modifiers = |