Hello, Howard

1. Unfortunately, no. The daily summaries are updated by the archiving
service, not the reporting engine.

2. You could do this. There are some subtleties, but nothing too
complicated. Nevertheless, I'd discourage this approach, as it puts you in
the position of keeping up with any subtle changes in the daily summaries.
Better to stay farther up the abstraction stack using one of the following
methods.

Other options:

3. Have your Java program write a file, then run a WeeWX program with a
driver that would monitor the file, using it as a data source. Kind of like
emulating a device. I seem to recall someone writing such a file-based
device driver, but I don't see it right now on the Wiki page. Perhaps
someone could chime in? Or, search the weewx-user archives (only 4,500+
topics!).

4. Have your Java program publish to an MQTT broker, then subscribe to it
using an MQTT driver for WeeWX, such as weewxMQTT driver
<https://github.com/morrowwm/weewxMQTT>.

5. Even more exotic would  be to use a Java-to-Python bridge, such as Py4J
<https://www.py4j.org/index.html>.

6. Finally, you could rewrite your Java driver as a Python WeeWX driver.

That's all that comes to mind.

Personally, if #6 is not possible, I would go with the MQTT broker. They
are efficient, robust, and can act as a rendezvous point for other devices
as well.

-tk

On Tue, Feb 20, 2018 at 11:43 AM, Howard Walter <[email protected]> wrote:

> A Java program collects house energy and power data once per minute and
> writes it into a weewx compatible sqlite database. Weewx is used to
> generate graphs and display them along with my weather station data.
> Everything was working well until I wanted to use weewx tags such as $day
> and realized that the daily database tables were not being updated.
>
> Two options that I have considered are
>
> 1. Have weewx update the daily tables automatically when weewx runs its
> reports every 5 minutes. Is there a way to do this?
>
> 2. Translate the weewx python code that updates the daily tables into java
> and have the java data collection program also update the daily tables. I
> started down this path but am not sure that I am looking at the right code.
> Is the appropriate code _addSingleRecord in class DaySummaryManager in
> manager.py?
>
> BTW: I've tried other energy software such as emoncms but don't need all
> the bells and whistles. Good old weewx is just about perfect for my needs
> so far.
>
> Thanks for any help or suggestions.
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to