Authorized access.

Current date/time: 2018-09-28 09:18:44

api called by http

update B: 315

update G: 20.92

update RR: 0.000

update H: 85.0

update SW: weewx-3.8.2

update S: 171.000

update LW4: 0.0

update TXBAT: 0

update P: 1022.418

update TIN: 24.50

update R: 0.000

update U: 1538145000

update T: 0.28

update W: 14.48

update UGP: 992.487

update HIN: 43.0

Begin of common part of api script

Start handling live data

Checking if extra sensors should be logged

Extra sensors data to save in db: TIN, HIN

add live data: D: -1.8

add live data: DTime: 1538144024

add live data: A: -4.8

add live data: ATime: 1538144024

calculated D: -2

calculated A: -4.8

Save meteotemplateLive.txt: {"B":315,"G":20.9200000000000017053025658242404460906982421875,"RR":0,"H":85,"SW":"weewx-3.8.2","S":171,"LW4":0,"TXBAT":0,"P":1022.4180000000000063664629124104976654052734375,"TIN":24.5,"R":0,"U":1538145000,"T":0.2800000000000000266453525910037569701671600341796875,"W":14.480000000000000426325641456060111522674560546875,"UGP":992.4869999999999663486960344016551971435546875,"HIN":43,"BTime":1538144324,"GTime":1538144324,"RRTime":1538144324,"HTime":1538144324,"SWTime":1538144324,"STime":1538144324,"LW4Time":1538144324,"TXBATTime":1538144324,"PTime":1538144324,"TINTime":1538144324,"RTime":1538144324,"UTime":1538144324,"TTime":1538144324,"WTime":1538144324,"UGPTime":1538144324,"HINTime":1538144324,"D":-2,"DTime":1538144324,"A":-4.79999999999999982236431605997495353221893310546875,"ATime":1538144324}

Start data parsing

Parsing date; Server time: 2018-09-28 09:18:44

Validating date: 1538145000 (2018-09-28 09:30:00)

Parsing temperature

Temperature: 0.28 C

Database units: C

Checking temperature is between limits specified in template Main settings.

Minimum temperature limit: -100 C

Maximum temperature limit: 100 C

Temperature is OK and within the allowed limits

Parsing maximum temperature

Parsing minimum temperature

Parsing humidity

Humidity: 85.0 percent

Checking humidity is between limits specified in template Main settings.

Minimum humidity limit: 0 %

Maximum humidity limit: 100 %

Humidity is OK and within the allowed limits

Parsing wind speed

Wind speed: 14.48 kmh

Database wind speed units: kmh

Checking wind speed is between limits specified in template Main settings.

Minimum wind speed limit: 0 kmh

Maximum wind speed limit: 200 kmh

Wind speed is OK and within the allowed limits

Parsing wind gust

Wind gust: 20.92 kmh

Database wind units: kmh

Checking wind gust is between limits specified in template Main settings.

Minimum wind gust limit: 0 kmh

Maximum wind gust limit: 200 kmh

Wind gust is OK and within the allowed limits

Parsing wind direction

Wind direction: 315 degrees

Wind direction is OK and within the allowed limits

Parsing daily cumulative precipitation

Precipitation: 0.000 mm

Database precipitation units: mm

Checking precipitation is between limits specified in template Main settings.

Minimum precipitation limit: 0 mm

Maximum precipitation limit: 200 mm

Precipitation is OK and within the allowed limits

Parsing rain rate

Rain rate: 0.000 mm/h

Database rain units: mm/h

Checking rain rate is between limits specified in template Main settings.

Minimum rain rate limit: 0 mm/h

Maximum rain rate limit: 500 mm/h

Rain rate is OK and within the allowed limits

Parsing solar radiation

Solar radiation: 171.000 w/m2

Checking solar radiation is between limits specified in template Main settings.

Minimum solar radiation limit: 0 W/m2

Maximum solar radiation limit: 2000 W/m2

Solar radiation is OK and within the allowed limits

Now parsing extra sensors.

Sensor indoor temperature raw value: 24.50 deg C

Limits for this sensor: 1 to 50

Sensor data within acceptable limits.

Sensor indoor humidity raw value: 43.0 %

Limits for this sensor: 0.01 to 100

Sensor data within acceptable limits.

No cache file found, create empty file.

Parsing pressure

Pressure: 1022.418 hpa

Database pressure units: hpa

Checking pressure is between limits specified in template Main settings.

Minimum pressure limit: 950 hpa

Maximum pressure limit: 1100 hpa

Pressure is OK and within the allowed limits

Pressure is valid.

Calculated dew point: -2 C

Dew point ok.

Calculated apparent temperature: -4.8 C

Apparent temperature ok.

End time for database update based on timestamp of current data: 1969-12-31 18:00:00

Rounded end time for database update: 1969-12-31 18:00:00

Time to update the database, preparing query.

Timestamp first cached record: 1969-12-31 18:00:00

Timestamp last cached record: 1969-12-31 18:00:00

Timestamp last received record: 1969-12-31 18:00:00

Timestamp new database record: 1969-12-31 18:00:00

Cache file deleted.

Generating log file cache/apiLog.txt


ERRORS:

Date is invalid; difference with server time is 676 s

No max temperature data provided.

No min temperature data provided.

Meteotemplate MySQL Error: Duplicate entry '1969-12-31 18:00:00' for key 'PRIMARY' with query: 
            INSERT INTO alldata
            (DateTime)
            values ('1969-12-31 18:00:00'
        )

