Incorrect time in reports

80 views
Skip to first unread message

Kike .Asekas

unread,
Jul 15, 2019, 7:56:37 AM7/15/19
to weewx-user
Hello. I have a raspberry pi with raspbian. It have CEST+0200 timezone as reported by date +"%Z %z". If I type 'date' my local time is reported correctly, but in the reports of weewx the time is 2 hours later.  I mean if it's 10:00 the webpages say 12:00.
In python
datetime.datetime.now() gives the current local time correctly
and
datetime.datetime.utcnow()gives 2 hours before correctly too.
The database have the correct local time too.

Thomas Keffer

unread,
Jul 15, 2019, 9:07:45 AM7/15/19
to weewx-user
What do you get if you try

python -c "import time; print time.strftime('%x %X')"

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/649312fb-f97d-484e-9815-7b4f814a9e75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kike .Asekas

unread,
Jul 15, 2019, 9:12:30 AM7/15/19
to weewx-user
The current local time correctly.


El lunes, 15 de julio de 2019, 15:07:45 (UTC+2), Thomas Keffer escribió:
What do you get if you try

python -c "import time; print time.strftime('%x %X')"

-tk

On Mon, Jul 15, 2019 at 4:56 AM Kike .Asekas <enu...@gmail.com> wrote:
Hello. I have a raspberry pi with raspbian. It have CEST+0200 timezone as reported by date +"%Z %z". If I type 'date' my local time is reported correctly, but in the reports of weewx the time is 2 hours later.  I mean if it's 10:00 the webpages say 12:00.
In python
datetime.datetime.now() gives the current local time correctly
and
datetime.datetime.utcnow()gives 2 hours before correctly too.
The database have the correct local time too.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Kike .Asekas

unread,
Jul 15, 2019, 9:18:45 AM7/15/19
to weewx-user
The driver I use is SDR. I have debug enabled and I see the packets created by sdr and in the field datetime in Unix epoch format it's correct too.


Andrew Milner

unread,
Jul 15, 2019, 9:22:17 AM7/15/19
to weewx-user
how is the date being put on the webpages?

Thomas Keffer

unread,
Jul 15, 2019, 9:25:09 AM7/15/19
to weewx-user
Well, all weewx does is use strftime. Basically,

time.strftime("%x %X"), time.localtime(v))

We will need to see the log to go any farther. Stop weewx, set debug=1, restart, post the log through the first reporting cycle.

-tk



To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2973beaf-baee-4682-b370-98b204c4e77e%40googlegroups.com.

Kike .Asekas

unread,
Jul 15, 2019, 9:45:25 AM7/15/19
to weewx-user
2 hours later.

Kike .Asekas

unread,
Jul 15, 2019, 9:49:02 AM7/15/19
to weewx-user
But in the database the datetime is in UTC timezone or in local timezone?. I datetime field in my database reflects the local time. I think sum the +2 of my timezone later.

Kike .Asekas

unread,
Jul 15, 2019, 10:03:59 AM7/15/19
to weewx-user


I delete the database. I see "cannot find start time" in the templates of the webpages.
The log:
Jul 15 15:55:51 raspberrypi weewx[11746]: Starting weewx weather system: weewx.
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Using configuration file /etc/weewx/weewx.conf
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Debug is 1
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Initializing engine
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Loading station type SDR (user.sdr)
Jul 15 15:55:52 raspberrypi weewx[11768]: sdr: MainThread: driver version is 0.64
Jul 15 15:55:52 raspberrypi weewx[11768]: sdr: MainThread: sensor map is {'windDir': 'wind_dir.*.FOWHx080Packet', 'windSpeed': 'wind_speed.*.FOWHx080Packet', 'outTemp': 'temperature.*.FOWHx080Packet', 'outHumidity': 'humidity.*.FOWHx080Packet', 'rain_total': 'rain_total.*.FOWHx080Packet', 'inTemp': 'temperature.*.FOWHx080Packet', 'inHumidity': 'humidity.*.FOWHx080Packet'}
Jul 15 15:55:52 raspberrypi weewx[11768]: sdr: MainThread: deltas is {'strikes': 'strikes_total', 'rain': 'rain_total'}
Jul 15 15:55:52 raspberrypi weewx[11768]: sdr: MainThread: startup process 'rtl_433 -q -F json -R 32 -f 868.3M'
Jul 15 15:55:52 raspberrypi weewx[11768]: sdr: stdout-thread: start async reader for stdout-thread
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdTimeSynch
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdTimeSynch
Jul 15 15:55:52 raspberrypi weewx[11768]: sdr: stderr-thread: start async reader for stderr-thread
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Loading service user.extra_sensors_service.ExtraSensorsService
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Finished loading service user.extra_sensors_service.ExtraSensorsService
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdConvert
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: StdConvert target unit is 0x11
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdConvert
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdCalibrate
Jul 15 15:55:52 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdCalibrate
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdQC
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdQC
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Loading service weewx.wxservices.StdWXCalculate
Jul 15 15:55:53 raspberrypi weewx[11768]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Jul 15 15:55:53 raspberrypi weewx[11768]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdArchive
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Archive will use data binding wx_binding
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Record generation will be attempted in 'software'
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Using archive interval of 300 seconds (software record generation)
Jul 15 15:55:53 raspberrypi weewx[11768]: engine: Use LOOP data in hi/low calculations: 1
Jul 15 15:55:53 raspberrypi weewx[11768]: manager: Created and initialized table 'archive' in database 'weewx.sdb'
Jul 15 15:55:54 raspberrypi weewx[11768]: manager: Created daily summary tables
Jul 15 15:55:54 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jul 15 15:55:54 raspberrypi weewx[11768]: manager: Starting backfill of daily summaries
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdArchive
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.restx.StdStationRegistry
Jul 15 15:55:54 raspberrypi weewx[11768]: restx: StationRegistry: Registration not requested.
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.restx.StdStationRegistry
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.restx.StdWunderground
Jul 15 15:55:54 raspberrypi weewx[11768]: restx: Wunderground: Posting not enabled.
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.restx.StdWunderground
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.restx.StdPWSweather
Jul 15 15:55:54 raspberrypi weewx[11768]: restx: PWSweather: Posting not enabled.
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.restx.StdPWSweather
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.restx.StdCWOP
Jul 15 15:55:54 raspberrypi weewx[11768]: restx: CWOP: Posting not enabled.
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.restx.StdCWOP
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.restx.StdWOW
Jul 15 15:55:54 raspberrypi weewx[11768]: restx: WOW: Posting not enabled.
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.restx.StdWOW
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.restx.StdAWEKAS
Jul 15 15:55:54 raspberrypi weewx[11768]: restx: AWEKAS: Posting not enabled.
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.restx.StdAWEKAS
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdPrint
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdPrint
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Loading service weewx.engine.StdReport
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Finished loading service weewx.engine.StdReport
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Starting up weewx version 3.9.1
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Station does not support reading the time
Jul 15 15:55:54 raspberrypi weewx[11768]: engine: Starting main packet loop.
Jul 15 15:55:57 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:00 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:03 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:06 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:09 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:12 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:15 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:18 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:21 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:24 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:27 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:30 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:35 raspberrypi weewx[11768]: sdr: MainThread: lines=['{"time" : "2019-07-15 15:56:31", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.500, "humidity" : 58, "direction_deg" : 0, "speed" : 0.000, "gust" : 2.448, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n']
Jul 15 15:56:35 raspberrypi weewx[11768]: sdr: MainThread: packet={'outHumidity': 58.0, 'dateTime': 1563206191, 'windDir': 0.0, 'outTemp': 26.5, 'windSpeed': 0.0, 'inHumidity': 58.0, 'inTemp': 26.5, 'rain_total': 62.4, 'usUnits': 16}
Jul 15 15:56:35 raspberrypi weewx[11768]: extrasensors: found pressure value of 1008.14 mbar
Jul 15 15:56:35 raspberrypi weewx[11768]: extrasensors: found temperature value of 23.6 C
Jul 15 15:56:36 raspberrypi weewx[11768]: reportengine: Running reports for latest time in the database.
Jul 15 15:56:36 raspberrypi weewx[11768]: reportengine: Running report 'SeasonsReport'
Jul 15 15:56:36 raspberrypi weewx[11768]: reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jul 15 15:56:37 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY.txt.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY-MM.txt.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template index.html.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template celestial.html.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template telemetry.html.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template tabular.html.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template statistics.html.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Skipping template rss.xml.tmpl: cannot find start time
Jul 15 15:56:37 raspberrypi weewx[11768]: cheetahgenerator: Generated 0 files for report SeasonsReport in 0.35 seconds
Jul 15 15:56:38 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:56:39 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:42 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:43 raspberrypi weewx[11768]: imagegenerator: Generated 14 images for SeasonsReport in 5.55 seconds
Jul 15 15:56:43 raspberrypi weewx[11768]: copygenerator: copied 5 files to /var/www/html/weewx
Jul 15 15:56:43 raspberrypi weewx[11768]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Jul 15 15:56:43 raspberrypi weewx[11768]: reportengine: Report 'MobileReport' not enabled. Skipping.
Jul 15 15:56:43 raspberrypi weewx[11768]: reportengine: Report 'StandardReport' not enabled. Skipping.
Jul 15 15:56:43 raspberrypi weewx[11768]: reportengine: Report 'FTP' not enabled. Skipping.
Jul 15 15:56:43 raspberrypi weewx[11768]: reportengine: Report 'RSYNC' not enabled. Skipping.
Jul 15 15:56:45 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:48 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:51 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:54 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:56:57 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:00 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:03 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:06 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:09 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:12 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:15 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:18 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:23 raspberrypi weewx[11768]: sdr: MainThread: lines=['{"time" : "2019-07-15 15:57:19", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.500, "humidity" : 58, "direction_deg" : 90, "speed" : 0.000, "gust" : 1.224, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n', '{"time" : "2019-07-15 15:57:20", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.500, "humidity" : 58, "direction_deg" : 90, "speed" : 0.000, "gust" : 1.224, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n']
Jul 15 15:57:23 raspberrypi weewx[11768]: sdr: MainThread: packet={'outHumidity': 58.0, 'dateTime': 1563206239, 'windDir': 90.0, 'outTemp': 26.5, 'windSpeed': 0.0, 'inHumidity': 58.0, 'inTemp': 26.5, 'rain_total': 62.4, 'usUnits': 16}
Jul 15 15:57:24 raspberrypi weewx[11768]: extrasensors: found pressure value of 1008.09 mbar
Jul 15 15:57:24 raspberrypi weewx[11768]: extrasensors: found temperature value of 23.5 C
Jul 15 15:57:24 raspberrypi weewx[11768]: reportengine: Running reports for latest time in the database.
Jul 15 15:57:24 raspberrypi weewx[11768]: reportengine: Running report 'SeasonsReport'
Jul 15 15:57:24 raspberrypi weewx[11768]: reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jul 15 15:57:24 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY.txt.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY-MM.txt.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template index.html.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template celestial.html.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template telemetry.html.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template tabular.html.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template statistics.html.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Skipping template rss.xml.tmpl: cannot find start time
Jul 15 15:57:24 raspberrypi weewx[11768]: cheetahgenerator: Generated 0 files for report SeasonsReport in 0.35 seconds
Jul 15 15:57:24 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:57:27 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:30 raspberrypi weewx[11768]: imagegenerator: Generated 14 images for SeasonsReport in 5.10 seconds
Jul 15 15:57:30 raspberrypi weewx[11768]: copygenerator: copied 0 files to /var/www/html/weewx
Jul 15 15:57:30 raspberrypi weewx[11768]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Jul 15 15:57:30 raspberrypi weewx[11768]: reportengine: Report 'MobileReport' not enabled. Skipping.
Jul 15 15:57:30 raspberrypi weewx[11768]: reportengine: Report 'StandardReport' not enabled. Skipping.
Jul 15 15:57:30 raspberrypi weewx[11768]: reportengine: Report 'FTP' not enabled. Skipping.
Jul 15 15:57:30 raspberrypi weewx[11768]: reportengine: Report 'RSYNC' not enabled. Skipping.
Jul 15 15:57:30 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:33 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:36 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:39 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:42 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:45 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:48 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:51 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:54 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:57:57 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:00 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:03 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:06 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:11 raspberrypi weewx[11768]: sdr: MainThread: lines=['{"time" : "2019-07-15 15:58:07", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.400, "humidity" : 59, "direction_deg" : 315, "speed" : 0.000, "gust" : 7.344, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n']
Jul 15 15:58:11 raspberrypi weewx[11768]: sdr: MainThread: packet={'outHumidity': 59.0, 'dateTime': 1563206287, 'windDir': 315.0, 'outTemp': 26.4, 'windSpeed': 0.0, 'inHumidity': 59.0, 'inTemp': 26.4, 'rain_total': 62.4, 'usUnits': 16}
Jul 15 15:58:11 raspberrypi weewx[11768]: extrasensors: found pressure value of 1008.06 mbar
Jul 15 15:58:11 raspberrypi weewx[11768]: extrasensors: found temperature value of 23.6 C
Jul 15 15:58:11 raspberrypi weewx[11768]: reportengine: Running reports for latest time in the database.
Jul 15 15:58:11 raspberrypi weewx[11768]: reportengine: Running report 'SeasonsReport'
Jul 15 15:58:12 raspberrypi weewx[11768]: reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jul 15 15:58:13 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY.txt.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY-MM.txt.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template index.html.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template celestial.html.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template telemetry.html.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template tabular.html.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template statistics.html.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Skipping template rss.xml.tmpl: cannot find start time
Jul 15 15:58:13 raspberrypi weewx[11768]: cheetahgenerator: Generated 0 files for report SeasonsReport in 0.58 seconds
Jul 15 15:58:13 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:58:14 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:17 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:18 raspberrypi weewx[11768]: imagegenerator: Generated 14 images for SeasonsReport in 5.04 seconds
Jul 15 15:58:18 raspberrypi weewx[11768]: copygenerator: copied 0 files to /var/www/html/weewx
Jul 15 15:58:18 raspberrypi weewx[11768]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Jul 15 15:58:18 raspberrypi weewx[11768]: reportengine: Report 'MobileReport' not enabled. Skipping.
Jul 15 15:58:18 raspberrypi weewx[11768]: reportengine: Report 'StandardReport' not enabled. Skipping.
Jul 15 15:58:18 raspberrypi weewx[11768]: reportengine: Report 'FTP' not enabled. Skipping.
Jul 15 15:58:18 raspberrypi weewx[11768]: reportengine: Report 'RSYNC' not enabled. Skipping.
Jul 15 15:58:20 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:23 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:26 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:29 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:32 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:35 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:38 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:41 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:44 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:47 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:50 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:53 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:58:59 raspberrypi weewx[11768]: sdr: MainThread: lines=['{"time" : "2019-07-15 15:58:55", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.300, "humidity" : 59, "direction_deg" : 0, "speed" : 0.000, "gust" : 2.448, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n', '{"time" : "2019-07-15 15:58:56", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.300, "humidity" : 59, "direction_deg" : 0, "speed" : 0.000, "gust" : 2.448, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n']
Jul 15 15:58:59 raspberrypi weewx[11768]: sdr: MainThread: packet={'outHumidity': 59.0, 'dateTime': 1563206335, 'windDir': 0.0, 'outTemp': 26.3, 'windSpeed': 0.0, 'inHumidity': 59.0, 'inTemp': 26.3, 'rain_total': 62.4, 'usUnits': 16}
Jul 15 15:58:59 raspberrypi weewx[11768]: extrasensors: found pressure value of 1008.11 mbar
Jul 15 15:58:59 raspberrypi weewx[11768]: extrasensors: found temperature value of 23.5 C
Jul 15 15:59:00 raspberrypi weewx[11768]: reportengine: Running reports for latest time in the database.
Jul 15 15:59:00 raspberrypi weewx[11768]: reportengine: Running report 'SeasonsReport'
Jul 15 15:59:00 raspberrypi weewx[11768]: reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jul 15 15:59:00 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY.txt.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY-MM.txt.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template index.html.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template celestial.html.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template telemetry.html.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template tabular.html.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template statistics.html.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Skipping template rss.xml.tmpl: cannot find start time
Jul 15 15:59:00 raspberrypi weewx[11768]: cheetahgenerator: Generated 0 files for report SeasonsReport in 0.36 seconds
Jul 15 15:59:00 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:59:03 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:05 raspberrypi weewx[11768]: imagegenerator: Generated 14 images for SeasonsReport in 5.12 seconds
Jul 15 15:59:06 raspberrypi weewx[11768]: copygenerator: copied 0 files to /var/www/html/weewx
Jul 15 15:59:06 raspberrypi weewx[11768]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Jul 15 15:59:06 raspberrypi weewx[11768]: reportengine: Report 'MobileReport' not enabled. Skipping.
Jul 15 15:59:06 raspberrypi weewx[11768]: reportengine: Report 'StandardReport' not enabled. Skipping.
Jul 15 15:59:06 raspberrypi weewx[11768]: reportengine: Report 'FTP' not enabled. Skipping.
Jul 15 15:59:06 raspberrypi weewx[11768]: reportengine: Report 'RSYNC' not enabled. Skipping.
Jul 15 15:59:06 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:09 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:12 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:15 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:18 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:21 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:24 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:27 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:30 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:33 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:36 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:39 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:42 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:47 raspberrypi weewx[11768]: sdr: MainThread: lines=['{"time" : "2019-07-15 15:59:43", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 83, "temperature_C" : 26.300, "humidity" : 59, "direction_deg" : 315, "speed" : 0.000, "gust" : 1.224, "rain" : 62.400, "battery" : "OK", "mic" : "CRC"}\n']
Jul 15 15:59:47 raspberrypi weewx[11768]: sdr: MainThread: packet={'outHumidity': 59.0, 'dateTime': 1563206383, 'windDir': 315.0, 'outTemp': 26.3, 'windSpeed': 0.0, 'inHumidity': 59.0, 'inTemp': 26.3, 'rain_total': 62.4, 'usUnits': 16}
Jul 15 15:59:47 raspberrypi weewx[11768]: extrasensors: found pressure value of 1007.97 mbar
Jul 15 15:59:47 raspberrypi weewx[11768]: extrasensors: found temperature value of 23.5 C
Jul 15 15:59:47 raspberrypi weewx[11768]: reportengine: Running reports for latest time in the database.
Jul 15 15:59:47 raspberrypi weewx[11768]: reportengine: Running report 'SeasonsReport'
Jul 15 15:59:47 raspberrypi weewx[11768]: reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jul 15 15:59:48 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY.txt.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template NOAA/NOAA-YYYY-MM.txt.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template index.html.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template celestial.html.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template telemetry.html.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template tabular.html.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template statistics.html.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Skipping template rss.xml.tmpl: cannot find start time
Jul 15 15:59:48 raspberrypi weewx[11768]: cheetahgenerator: Generated 0 files for report SeasonsReport in 0.36 seconds
Jul 15 15:59:48 raspberrypi weewx[11768]: manager: Daily summary version is 2.0
Jul 15 15:59:50 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:53 raspberrypi weewx[11768]: sdr: MainThread: lines=[]
Jul 15 15:59:53 raspberrypi weewx[11768]: imagegenerator: Generated 14 images for SeasonsReport in 5.19 seconds
Jul 15 15:59:53 raspberrypi weewx[11768]: copygenerator: copied 0 files to /var/www/html/weewx
Jul 15 15:59:53 raspberrypi weewx[11768]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Jul 15 15:59:53 raspberrypi weewx[11768]: reportengine: Report 'MobileReport' not enabled. Skipping.
Jul 15 15:59:53 raspberrypi weewx[11768]: reportengine: Report 'StandardReport' not enabled. Skipping.
Jul 15 15:59:53 raspberrypi weewx[11768]: reportengine: Report 'FTP' not enabled. Skipping.
Jul 15 15:59:53 raspberrypi weewx[11768]: reportengine: Report 'RSYNC' not enabled. Skipping.

Andrew Milner

unread,
Jul 15, 2019, 10:12:44 AM7/15/19
to weewx-user
The dateTime in the database should be epoch time == UTC time, not local time.

Kike .Asekas

unread,
Jul 15, 2019, 10:17:03 AM7/15/19
to weewx-user
The problem looks like is in current object in the datetime function I think. Where is the code of current object?


Kike .Asekas

unread,
Jul 15, 2019, 10:22:16 AM7/15/19
to weewx-user
Well, the time in my database is in local time. Why?

Andrew Milner

unread,
Jul 15, 2019, 10:24:43 AM7/15/19
to weewx-user
I suspect you should not be using the dateTime field in the SDR packet as that appears to be a local time and not UTC time - this results in other parts of weewx looking for dates in the future - which of course will not be found.

Kike .Asekas

unread,
Jul 15, 2019, 10:50:26 AM7/15/19
to weewx-user
Well. The problem was here. The SDR driver was not in utc.I put the parameter and all go well now. Thanks
Closed

mwall

unread,
Jul 15, 2019, 5:49:02 PM7/15/19
to weewx-user

On Monday, July 15, 2019 at 10:50:26 AM UTC-4, Kike .Asekas wrote:
Well. The problem was here. The SDR driver was not in utc.I put the parameter and all go well now. Thanks
Closed

in the weewx-sdr driver, the default rtl_433 command is:

rtl_433 -M utc -F json -G

you must have removed the '-M utc' at some point, which results in localtime in the SDR timestamps instead of UTC

you can replace the '-G' with whatever '-R xxx' options you need, but you really do not want to remove the '-M utc' option

Reply all
Reply to author
Forward
0 new messages