I don't know WHAT I'm trying to do anymore.... 8^). This is what I originally thought when I first saw weewx:
I have python gathering data from my sensors. It puts it in its own database called PiWx.
mysql> use PiWx
Database changed
mysql> show tables;
+----------------+
| Tables_in_PiWx |
+----------------+
| temperature |
| wind |
+----------------+
2 rows in set (0.00 sec)
mysql> select * from temperature order by datetime DESC limit 10;
+---------------------+------+----------+-----------+
| datetime | temp | humidity | barometer |
+---------------------+------+----------+-----------+
| 2013-06-06 10:25:06 | 76 | 42 | 30.11 |
| 2013-06-06 10:20:03 | 76 | 43 | 30.11 |
| 2013-06-06 10:15:02 | 76 | 42 | 30.11 |
| 2013-06-06 10:10:02 | 76 | 42 | 30.11 |
| 2013-06-06 10:05:03 | 76 | 42 | 30.11 |
| 2013-06-06 10:00:03 | 76 | 42 | 30.11 |
| 2013-06-06 09:55:03 | 77 | 42 | 30.11 |
| 2013-06-06 09:50:03 | 76 | 43 | 30.11 |
| 2013-06-06 09:45:03 | 76 | 42 | 30.11 |
| 2013-06-06 09:40:10 | 76 | 43 | 30.12 |
+---------------------+------+----------+-----------+
10 rows in set (0.00 sec)
So my assumption was that weewx was doing something similar, and I could just have wee_reports look at my data and generate the pretty pages. After actually reading the documentation and some of the code, I have come to the conclusion I should not assume I can look at someone elses program and guess the logic flow and that I can just change a few lines and make it do what I want. Ah, the hubris of naive wannabe programmers!
So I asked about just running wee_reports with faulty assumptions. I am know thinking I have two paths:
1. Have my code put the data directly into the weewx.stats table and run wee_reports as a cron job only, not using any of weewx as a daemoned (I may have just made up a word!) program. This might be the easier road for me and would probably allow me to upgrade without any major headaches.
2. Create a station type of 'external database'. This might benefit others by allowing weewx to run fully as written. It would just look at the external db (PiWx in this case) for it's data instead of a USB connected station such as a Davis, and then plug along as intended. This might help others who have a non supported station, or just data in a database, and would also allow for upgrades to weewx, since I could submit it as a supported 'station'.
But, I do not have any idea which path to take. Since you know the code better than anyone, point me in the right direction and I will take off running head first, hoping there are fewer brick walls in my path....