Database export [rain0total-sumXX] not working **solved**
Posted: Wed Mar 09, 2016 2:31 pm
Hi,
I'm trying to export rain totals to a file which I can use to manually update a database, I want to get hourly totals but I cant get any data out using [rain0total-sum60] (as described in the Templates page of the Wiki)
my tamplate is as follows
UPDATE meteo.alldata SET RHr =[rain0total-sum60:] where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '[YYYY]-[MM]-[DD] [hh]:[mm]';
and I run the 'Export month in hours' option however I get the following result...
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 00:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 01:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 02:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 03:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 04:00';
...
...
as you can see there is no values for [rain0total-sum60:] even though we have had a load of rain and the meteobridge pro database shows accumulated rainfall for the specified period.
I hope you can help
Tom
I'm trying to export rain totals to a file which I can use to manually update a database, I want to get hourly totals but I cant get any data out using [rain0total-sum60] (as described in the Templates page of the Wiki)
my tamplate is as follows
UPDATE meteo.alldata SET RHr =[rain0total-sum60:] where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '[YYYY]-[MM]-[DD] [hh]:[mm]';
and I run the 'Export month in hours' option however I get the following result...
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 00:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 01:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 02:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 03:00';
UPDATE meteo.alldata SET RHr = where CONVERT(cast(dateTime as CHARACTER(16)),DateTime)= '2016-03-01 04:00';
...
...
as you can see there is no values for [rain0total-sum60:] even though we have had a load of rain and the meteobridge pro database shows accumulated rainfall for the specified period.
I hope you can help
Tom