Hello, Sean

That's quite an ambitious project you're doing! Sounds like fun.

To start, make sure you take a look at the Weewx Customizing Guide
<http://weewx.com/docs/customizing.htm>. It explains how weewx works under
the hood.

Weewx expects a stream of raw sensor data, while your raw data seems to be
a mix of sensor data plus aggregates and historical data. I don't know how
wedded you are to your data stream (and underlying MySQL model), but if you
are, it could be very difficult to adapt the weewx reporting machinery to
it.

Alternatively, you could keep your database schema, and run weewx in
parallel with it. Don't know why you'd want two different databases holding
what is essentially the same data, but that would work.

Another approach would be to do ditch your database and PHP script and
substitute weewx's logging capability in their place.

The last two alternatives would require that you either write a custom
driver, or adapt an existing driver, to log the data coming off the
Arduino. See the Customizing Guide for instructions on how to write a custom
driver <http://weewx.com/docs/customizing.htm#porting>.

Give the Customizing Guide a read and think this over. Once you decide what
approach you want to take we can discuss the details.

Would love to see some pictures of the hardware you built!

-tk


On Sat, Jul 29, 2017 at 2:55 PM, Sean Coston <sdcos...@gmail.com> wrote:

> Hi all. First post here.
>
> I have been on a several month journey of building my own weather station
> using an  Arduino Mega and an ESP8266 wifi communications module along with
> a number of sensors.
> I have 3-D printed anenometer, wind-vane, and rain-meter parts of my own
> design and have calibrated these instruments. The data I am getting from my
> set up seems to be reliable compared to readings from a nearby weather
> station posted on WU.
> Right now, I have the data from the weather station being sent to a very
> simple web server that I built on a Linux 16.04 virtual machine running on
> my FreeNAS11 box. I've written a php script that accepts posts from the
> ESP8266 (data passed to it from the Arduino) and the php script takes live
> data and constructs a web page that I can access from any browser. The php
> script also writes posted sensor data to a MySQL database on the Linux
> server, and queries the same database to receive conditioned data like
> max/min temps, averaged data, etc. The php script also writes to a "|"
> (vertical bar) delimited raw data file (similar to that used by WD, and
> others) that is constantly updated and can be read by any program with
> simple parsing techniques.
>
> Attached are a screen shot of my webpage, and a copy of my raw data file
> with some data in it.
> My question to this group is, is there any way to "show" custom weather
> station data to weewx so the robust data display tools can be used? I have
> had fun up to now, but really don't want to reinvent the wheel when it
> comes to data display.
>
>
> <https://lh3.googleusercontent.com/-9p-EklsKpuM/WX0CugJz2aI/AAAAAAAAPRk/Q_WgyNoFyN4Y2p_bV9ngzqn3tq0J8ncTACLcBGAs/s1600/Screenshot%2Bfrom%2B2017-07-29%2B15-48-02.png>
>
>
>
> I'm not looking for anyone to hold my hand, just to maybe explain how
> WeeWx gets its data so maybe I can mimic that and thus "present" my data to
> WeeWx as if it were coming from an already developed weather station
> platform.
>
> Thanks to anyone responding to this.
>
> Sean
>
>
> --
> 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+unsubscr...@googlegroups.com.
> 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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to