Authorized access.

Current date/time: 2018-09-07 11:09:25

api called by http

update B: 112

update G: 9.66

update RR: 0.000

update H: 56.0

update SW: weewx-3.8.2

update S: 597.000

update LW4: 0.0

update TXBAT: 0

update P: 1027.837

update TIN: 23.11

update R: 0.000

update U: 1536337200

update T: 18.33

update W: 1.61

update UGP: 999.235

update HIN: 39.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: 9.4

add live data: DTime: 1536336266

add live data: A: 18

add live data: ATime: 1536336266

calculated D: 9.3

calculated A: 17.9

Save meteotemplateLive.txt: {"B":112,"G":9.660000000000000142108547152020037174224853515625,"RR":0,"H":56,"SW":"weewx-3.8.2","S":597,"LW4":0,"TXBAT":0,"P":1027.83699999999998908606357872486114501953125,"TIN":23.1099999999999994315658113919198513031005859375,"R":0,"U":1536337200,"T":18.3299999999999982946974341757595539093017578125,"W":1.6100000000000000976996261670137755572795867919921875,"UGP":999.2350000000000136424205265939235687255859375,"HIN":39,"BTime":1536336565,"GTime":1536336565,"RRTime":1536336565,"HTime":1536336565,"SWTime":1536336565,"STime":1536336565,"LW4Time":1536336565,"TXBATTime":1536336565,"PTime":1536336565,"TINTime":1536336565,"RTime":1536336565,"UTime":1536336565,"TTime":1536336565,"WTime":1536336565,"UGPTime":1536336565,"HINTime":1536336565,"D":9.300000000000000710542735760100185871124267578125,"DTime":1536336565,"A":17.89999999999999857891452847979962825775146484375,"ATime":1536336565}

Start data parsing

Parsing date; Server time: 2018-09-07 11:09:25

Validating date: 1536337200 (2018-09-07 11:20:00)

Parsing temperature

Temperature: 18.33 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: 56.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: 1.61 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: 9.66 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: 112 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: 597.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: 23.11 deg C

Limits for this sensor: 1 to 50

Sensor data within acceptable limits.

Sensor indoor humidity raw value: 39.0 %

Limits for this sensor: 0.01 to 100

Sensor data within acceptable limits.

No cache file found, create empty file.

Parsing pressure

Pressure: 1027.837 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: 9.3 C

Dew point ok.

Calculated apparent temperature: 17.9 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 635 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'
        )

