how can I correct mistakes in the database in past? how to get year.json?

72 views
Skip to first unread message

Astrid

unread,
Sep 27, 2020, 6:47:50 AM9/27/20
to weewx-user
Hello!

In my database are some errors, which I
did not recognized before.
E.g. in June some outtemp minus values, which
do not have been in reality.

My weatherstation creates ascii-tables.
I get the data to weewx with fileparse.
And if computer is rebooting it
sometimes delivers wrong data.

I try to fix it. I deleted all recordes is
table "archive" from 01.05 up to now,
I delelte the wrong line with the wrong
values from my ascii-table and import
the data from 01.05 up to now again
into the database, start weewx again
and do wee_reports.
But it did not solve the problem.

I run this too:
wee_database --rebuild-daily
But problem still there.

I deleted in /var/www/htdocs/weewx/json
both json files and run wee_reports again.
week.json is created, but not year.json.

How can I create a year.json again?

Regards, Astrid


Tom Keffer

unread,
Sep 27, 2020, 8:32:27 AM9/27/20
to weewx-user
I'm not familiar with the file year.json. Where did it come from? If it works like the rest of WeeWX reports, if you delete it, then it will be regenerated using the current data. 

--
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/24b502f1-3d90-4188-97c5-4f0742d197a4o%40googlegroups.com.

Astrid

unread,
Sep 27, 2020, 9:10:49 AM9/27/20
to weewx-user
Hello!

I thought year.json was from weewx it self, but this was my mistake,
it comes from Hightchart-skin, which I use too (0.3).

I wait overnight, but it does not appear again. :(

Regards, Astrid

Astrid

unread,
Sep 27, 2020, 9:33:51 AM9/27/20
to weewx-user
The last time year.json was created was on 09.09.2020. At this time I started to switch to weewx 4.1.1 and integrated new highcharts skin 0.3.0 as it has been released.

Regards, Astrid

Astrid

unread,
Sep 27, 2020, 10:00:14 AM9/27/20
to weewx-user
Sorry, I found the mistake.
It was something wrong in weewx.conf at

[[[CheetahGenerator]]]
HTML_ROOT = public_html/json

Now it works. :)

Regards, Astrid
Reply all
Reply to author
Forward
0 new messages