The script looks correct. The cron uses local time for the timezone of the
Kapacitor process. To change the timezone for the process use the TZ env
var on Unix like systems.
On Friday, September 2, 2016 at 8:18:28 AM UTC-6, wug wrote:
>
> I am trying to define a batch task with Kapacitor which is execute each
> day at a certain time. First I am just trying to do a select using cron but
> this is not working (I have enabled the task). Here the code:
>
>
> 1 batch
>
> 2 |query('''
>
> 3 SELECT distinct(value) as value FROM
> FMV_energy."default"."puissance.electricite"
>
> 4 WHERE "source" = 'FMV' AND "station" = 'siesa.consommation.PCV'
> AND "typeof" = 'forecast'
>
> 5 ''')
>
> 6 .period(2d)
>
> 7 .cron('0 5 16 * * * *')
>
> 8 .groupBy(time(15m))
>
> 9 .fill(0)
>
>
> What am I doing wrong?
>
>
> How have I to manage the timezone in Kapacitor? It should be the problem?
>
>
> Thank you
>
>
> wug
>
>
>
>
>
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/3d41dce9-0539-4b15-b5cc-13103311e0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.