the download from the Ecowitt cloud is not
fully based on their public http-API - it rather offers a "canon
ball" solution as the author says
for details about the API see https://doc.ecowitt.net/
if you want to develop your own thing or create a more specific
solution using the accounts APP and API keys (to be created in
the account)
the link provided by @Marlon seems to be a
working solution, however it has some caveats you might want to
consider
(like other things you might do)
- it downloads data from all devices
connected to your user account (if you have only once console,
then there's no issue here)
=> if you have more devices, you will get several CSV files
with the device-ID (=MAC address I guess, that's what the device
ID is on ecowitt.net) as file name
- you have to consider the resolution and retention times at
ecowitt.net
=> you may have to run the script let's say every two months
to have a 5 minute resolution of the data on ecowitt.net as CSV
as potential backup
see https://www.wxforum.net/index.php?topic=40730.0 chapter 14
- the download will not be complete if you have extra sensors
beyond the basic sensors - its "field map" would need to be
extended, especially for a WS90 outdoor array and its "piezo
data" if you have one and for the battery values (depends on
what you store in your weewx database
A more specific method would be using the APP and API keys
together with the device ID and providing a starting and ending
time stamp (down to a 5 minute slice) - e.g. a (still to be
created) weewx extension with an automatic refill from
ecowitt.net at restart when needed (i.e. when there was a -
wanted or unwanted- interruption of the data logging bigger than
the weewx archiving intervall) as already implemented ever since
the API was published in the CumulusMX software.
Hi Benedict
you need two files
1. the very file to import which contains
the data with a headline giving a name to each field (between
two separators, delimiters, in the example a ";") and having the
same sequence below where the data are
2. the .conf file where the weewx import program is told which
fields to import into which fields of your database
the ecowitt2weewx example is very primitive
and only handles the basic weather observations, no extra
sensors
my attached examples contains also
extra sensors, not existing or used ones being commented out
(with a leading "#")
what is missing for you you can add yourself - the weewx
database names to be used (left side of the assignments) you
find in
the database schema - location (in my case):
/usr/share/weewx/schemas and there it is the wview_extended.py
file
your location may be different depending on your weewx version
and installation method
I attach two examples of a .conf file and a data file which should make the story clear
you will have to use of course your own data
file and modified conf file - and e.g. the path to your data
file in the .conf file has to be adapted to your situation 🙂
make sure that the date-time format from your to-be-imported data
file is properly described in your .conf file header section
you can do this all manually for a test
download the xlsx file from your account at ecowitt.net (Export
button), load it into Excel, save it again as a csv text file
good luck
--
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 visit https://groups.google.com/d/msgid/weewx-user/3bb24aa9-e4cf-4bc4-ab8f-f530c788c49dn%40googlegroups.com.