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

On 01.06.2025 22:07, Benedict wrote:
How did you config the import for the csv? I have a wittboy and a lot of extra sensors, like leaf wetness, soil moisture (2x) and extra temperature sensors, and would like to have them imported too, but the descriptions in that weewx_import.conf are (again) not very descriptive, and without (current-day) examples.
Could you provide your conf that you've used, so I can base mine on that?
Thanks in advance!

Regards,

Ben
On Wednesday, November 1, 2023 at 7:53:01 AM UTC+1 Marlon wrote:

    Hi Tim
    I recently pushed a PR to that repo, which isn't merged yet which
    got things working for me.
    With this, I managed to extract my ecowitt data and then used
    *wee_import* to bring it into weewx.
    https://github.com/notnullxyz/ecowitt2weewx - a fork from @comes
    with my fixes and his latest changes from yesterday
    I hope that this will help you. It's for me really, but if anyone
    else find it useful, that's cool.



    On Wednesday, 01 November 2023 at 08:29:50 UTC+2 Tim Tuck wrote:

        HI Vince,

        I might do that.

        But I've posted here since this was script originally
        announced here so
        the developer should see this anyway.

        Also there are many weewx user who have Ecowitt kit and
        repopulating the
        db from the Ecowitt server is something that others may have
        done, hence
        my question :)

        regards

        Tim

        On 1/11/23 16:04, vince wrote:
        > Perhaps you might open a github issue at the repo you
        mentioned..,,
        >
        >

--
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]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/3bb24aa9-e4cf-4bc4-ab8f-f530c788c49dn%40googlegroups.com <https://groups.google.com/d/msgid/weewx-user/3bb24aa9-e4cf-4bc4-ab8f-f530c788c49dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/3d71d9b1-fa9e-490f-ad8c-d6d3e176f200%40gmail.com.
source = CSV
[CSV]
file = /var/lib/weewx/weewx-import-MB-20220131-1425-1725.txt
raw_datetime_format = %Y-%m-%d %H:%M 
calc_missing = True
solar_sensor = True
UV_sensor = True
interval = 5
delimiter = ;
rain = cumulative

[[FieldMap]]
    
  dateTime    = date-time
  barometer   = sealevel pressure[hPa], hPa
#  pressure    = Absolute Pressure(hpa), hPa
#  inTemp      = intemp, degree_C
#  inHumidity  = inhum, percent
  outTemp     = temperature[C], degree_C
  outHumidity = humidity[%], percent
  windSpeed   = avg wind speed[m/s], meter_per_second
  windDir     = winddir, degree_compass
  windGust    = gust speed[m/s], meter_per_second
  rain        = rainfall00, mm
  dewpoint    = dew point[C], degree_C
#  windchill   = WindChill[C], degree_C
  radiation   = Solar [W/m2], watt_per_meter_squared
#  UV          = UVI, uv_index
     pm2_5     =  PM25(1), microgram_per_meter_cubed
     pm1_0     =  PM25(2), microgram_per_meter_cubed 
extraTemp1     = extra-temp1 [C], degree_C
extraHumid1    = extra-hum1 [%], percent
extraTemp2     = extra-temp2 [C], degree_C
extraHumid2    = extra-hum2 [%], percent
extraTemp3     = extra-temp3 [C], degree_C
extraHumid3    = extra-hum3 [%], percent
extraTemp4     = extra-temp4 [C], degree_C
extraHumid4    = extra-hum4 [%], percent
# extraTemp5     = extra-temp5 [C], degree_C
# extraHumid5    = extra-hum1 [%], percent
# extraTemp6     = extra-temp6 [C], degree_C
# extraHumid6    = extra-hum6 [%], percent
# extraTemp7     = extra-temp7 [C], degree_C
# extraHumid7    = extra-hum7 [%], percent
extraTemp8     = WH45-temp-in, degree_C
extraHumid8    = WH45-hum-in, percent
soilMoist1 = soil moisture (1) [%], centibar
soilMoist2 = soil moisture (2) [%], centibar
soilMoist3 = soil moisture (3) [%], centibar
soilMoist4 = soil moisture (4) [%], centibar
# lightning_strike_count = lightning total, count
# lightning_distance = lightning distance, km
# lightning_noise_count = lightning energy, second 
co2 = WH45-CO2, ppm
no2 = WH45-PM25,  microgram_per_meter_cubed
pm10_0 = WH45-PM10,  microgram_per_meter_cubed
date-time;temperature[C];humidity[%];dew point[C];sealevel pressure[hPa];avg 
wind speed[m/s];gust speed[m/s];winddir;rainfall00;Solar 
[W/m2];PM25(1);PM25(2);extra-temp1 [C];extra-hum1 [%];extra-temp2 
[C];extra-hum2 [%];extra-temp3 [C];extra-hum3 [%];extra-temp4 [C];extra-hum4 
[%];soil moisture (1) [%];soil moisture (2) [%];soil moisture (3) [%];soil 
moisture (4) [%];soil moisture (5) [%];lightning total;lightning 
distance;lightning energy;WH45-temp-in;WH45-hum-in;WH45-CO2;WH45-PM25;WH45-PM10
2022-01-31 
14:25;5.2;76;1.1;1013.7;6.4;9.6;5;0.0;58.20;9.0;12.0;18.9;55.0;5.4;86.5;5.1;75.5;4.7;83.0;71;17;20;53;0;0;0;0;21.2;45.0;739;5.3;5.1
2022-01-31 
14:30;4.5;81;1.6;1013.8;5.6;13.3;5;0.0;75.20;9.0;12.0;18.9;55.0;5.4;86.0;4.6;80.0;4.4;85.0;70;17;20;53;0;0;0;0;20.9;46.0;717;6.2;5.3
2022-01-31 
14:35;4.2;83;1.6;1013.5;3.0;7.0;11;0.0;128.80;12.0;12.0;18.9;55.0;5.3;86.5;4.3;82.0;4.1;87.0;70;17;20;53;0;0;0;0;21.2;45.0;717;8.6;7.8
2022-01-31 
14:40;4.4;82;1.6;1013.7;4.5;4.5;2;0.0;95.00;12.0;12.0;18.9;55.0;5.3;87.0;4.3;81.5;4.1;88.0;70;17;20;53;0;0;0;0;20.8;46.0;770;7.6;5.9
2022-01-31 
14:45;4.6;80;1.4;1013.7;1.3;2.6;251;0.0;126.20;11.0;12.0;19.0;55.0;5.5;87.0;4.7;80.0;4.1;88.0;70;17;20;53;0;0;0;0;21.2;45.0;754;10.8;8.1
2022-01-31 
14:50;4.9;79;1.6;1014.0;1.6;4.2;47;0.0;106.00;11.0;10.0;19.0;55.0;5.7;87.0;4.9;79.0;4.3;88.0;71;17;20;53;0;0;0;0;20.9;46.0;708;7.5;6.2
2022-01-31 
14:55;5.0;78;1.4;1013.8;2.9;6.9;15;0.0;149.60;9.0;10.0;19.0;55.0;5.9;86.5;5.1;77.0;4.3;88.0;70;17;20;53;0;0;0;0;21.2;45.0;733;4.5;4.2
2022-01-31 
15:00;5.2;76;1.3;1013.8;6.4;8.1;358;0.0;108.00;9.0;9.0;19.0;55.0;6.2;86.0;5.5;75.0;4.7;88.0;70;17;20;53;0;0;0;0;20.9;46.0;757;5.6;5.2
2022-01-31 
15:05;5.3;74;1.0;1013.5;6.8;11.1;351;0.0;122.67;10.0;9.0;19.0;55.0;6.5;85.0;5.5;74.0;4.8;86.0;71;17;20;53;0;0;0;0;21.2;46.0;753;5.0;4.9
2022-01-31 
15:10;5.4;74;1.1;1013.5;3.8;9.5;353;0.0;93.50;10.0;11.0;19.0;55.0;6.5;84.0;5.5;73.5;4.8;85.0;70;17;20;53;0;0;0;0;21.2;45.0;713;8.2;6.8
2022-01-31 
15:15;5.3;73;0.9;1013.6;1.9;12.6;323;0.0;40.25;9.0;11.0;19.0;55.0;6.4;83.0;5.3;73.5;4.8;85.0;70;17;20;53;0;0;0;0;20.9;46.0;749;5.2;4.9
2022-01-31 
15:20;5.2;74;0.9;1013.5;4.3;8.6;2;0.0;31.50;9.0;9.0;19.0;55.0;6.3;83.0;5.2;73.5;4.7;84.0;70;17;20;53;0;0;0;0;21.2;45.0;731;7.2;5.1
2022-01-31 
15:25;5.1;74;0.8;1013.5;3.4;9.9;355;0.0;30.00;9.0;9.0;19.0;55.0;6.0;82.0;5.1;73.0;4.6;83.0;70;17;20;53;0;0;0;0;20.9;46.0;766;3.1;2.7
2022-01-31 
15:30;5.0;75;0.9;1013.6;5.2;11.5;341;0.0;29.80;9.0;8.0;19.0;55.0;5.8;82.0;4.9;74.0;4.5;84.0;71;17;20;53;0;0;0;0;21.1;45.5;744;5.8;4.7
2022-01-31 
15:35;4.8;76;0.9;1013.8;5.2;8.5;355;0.0;35.33;7.0;8.0;19.0;55.0;5.6;83.0;4.8;76.0;4.3;85.0;70;17;20;53;0;0;0;0;21.5;45.0;762;6.2;5.3
2022-01-31 
15:40;4.6;77;0.9;1013.7;3.1;6.3;354;0.0;28.50;7.0;10.0;18.9;55.0;5.3;83.0;4.5;77.0;4.1;86.0;70;17;20;53;0;0;0;0;21.0;46.0;778;7.5;6.4
2022-01-31 
15:45;4.5;78;0.9;1013.8;4.7;8.5;357;0.0;49.67;10.0;10.0;19.0;55.0;5.2;84.0;4.5;77.0;4.0;87.0;71;17;20;53;0;0;0;0;21.1;45.0;781;3.3;3.1
2022-01-31 
15:50;4.6;76;0.7;1013.8;4.5;7.6;355;0.0;35.00;10.0;8.0;18.9;55.0;5.1;84.0;4.6;76.0;4.0;86.0;70;17;20;53;0;0;0;0;20.9;46.0;775;4.0;3.4
2022-01-31 
15:55;4.7;76;0.8;1014.1;3.2;5.1;356;0.0;22.00;9.0;8.0;18.9;55.0;4.9;84.0;4.6;76.0;4.0;86.0;71;17;20;53;0;0;0;0;21.2;45.0;812;6.2;4.8
2022-01-31 
16:00;4.7;75;0.6;1014.1;3.3;7.5;348;0.0;21.50;9.0;9.0;19.0;55.0;4.8;84.0;4.6;75.0;4.0;85.0;70;17;20;53;0;0;0;0;21.4;45.0;782;3.9;3.1
2022-01-31 
16:05;4.7;75;0.6;1014.0;3.4;8.1;359;0.0;10.00;9.0;9.0;19.0;55.0;4.8;84.0;4.7;74.0;4.0;85.0;71;17;20;53;0;0;0;0;20.9;46.0;805;5.0;4.3
2022-01-31 
16:10;4.7;74;0.5;1014.2;3.9;8.8;9;0.0;11.67;9.0;9.0;18.9;55.0;4.7;84.0;4.7;74.5;4.0;85.0;71;17;20;53;0;0;0;0;21.1;45.0;764;6.2;5.0
2022-01-31 
16:15;4.7;74;0.5;1014.1;2.7;6.2;330;0.0;11.00;10.0;9.0;18.9;55.0;4.6;84.0;4.6;74.0;4.0;84.0;70;17;20;53;0;0;0;0;21.2;45.0;769;3.3;3.1
2022-01-31 
16:20;4.7;74;0.5;1014.2;5.7;10.6;341;0.0;10.00;10.0;8.0;19.0;55.0;4.6;84.0;4.6;74.0;4.0;84.0;70;17;20;53;0;0;0;0;21.2;45.0;787;3.6;3.3
2022-01-31 
16:25;4.7;74;0.5;1014.4;4.2;12.6;357;0.0;10.00;10.0;8.0;19.0;55.0;4.6;84.0;4.7;73.5;4.0;82.0;70;17;20;53;0;0;0;0;21.2;45.0;769;4.8;4.0
2022-01-31 
16:30;4.7;75;0.6;1014.4;2.9;5.1;34;0.0;8.00;10.0;7.0;18.9;55.0;4.5;84.0;4.6;75.0;4.1;84.0;70;17;20;53;0;0;0;0;20.9;46.0;803;7.0;5.6
2022-01-31 
16:35;4.5;76;0.6;1014.3;4.4;8.5;358;0.0;5.00;8.0;7.0;18.9;55.0;4.5;85.0;4.5;75.0;4.0;84.0;70;17;20;53;0;0;0;0;21.2;45.0;760;3.1;3.0
2022-01-31 
16:40;4.5;75;0.5;1014.5;2.2;7.0;3;0.0;5.00;8.0;8.0;18.9;55.0;4.4;85.0;4.5;75.0;4.0;84.0;71;17;20;53;0;0;0;0;20.8;46.0;848;8.6;6.5
2022-01-31 
16:45;4.5;75;0.5;1014.6;3.5;8.2;340;0.0;6.00;9.0;8.0;19.0;55.0;4.3;85.0;4.5;75.0;4.0;84.0;70;17;20;53;0;0;0;0;21.1;45.0;762;3.5;3.2
2022-01-31 
16:50;4.4;76;0.5;1014.6;3.2;7.6;6;0.0;1.00;9.0;8.0;18.9;55.0;4.3;85.0;4.4;75.0;4.0;84.0;70;17;20;53;0;0;0;0;20.9;46.0;836;3.0;2.5
2022-01-31 
16:55;4.4;75;0.4;1014.7;3.7;8.6;3;0.0;0.00;8.0;8.0;18.9;55.0;4.3;85.0;4.3;75.0;3.9;84.0;71;17;20;53;0;0;0;0;21.1;45.0;789;4.3;3.9
2022-01-31 
17:00;4.4;76;0.5;1014.5;6.2;9.8;352;0.0;0.00;8.0;8.0;18.9;55.0;4.2;85.0;4.3;75.0;4.0;84.0;70;17;20;53;0;0;0;0;20.8;46.0;780;4.3;4.0
2022-01-31 
17:05;4.3;76;0.5;1014.8;1.4;6.1;43;0.0;0.00;8.0;8.0;18.9;55.0;4.2;85.0;4.3;76.0;4.0;84.0;71;17;20;53;0;0;0;0;21.2;45.0;809;3.2;2.9
2022-01-31 
17:10;4.3;76;0.4;1014.6;5.2;8.3;359;0.0;0.00;8.0;10.0;18.9;55.0;4.2;85.0;4.2;76.0;3.9;84.0;70;17;20;53;0;0;0;0;21.1;45.0;790;4.4;4.0
2022-01-31 
17:15;4.2;76;0.3;1014.8;2.8;5.6;359;0.0;0.00;9.0;10.0;18.9;55.0;4.1;85.0;4.2;76.0;3.9;84.0;70;17;20;53;0;0;0;0;21.0;46.0;793;6.0;5.4
2022-01-31 
17:20;4.2;76;0.3;1015.0;4.1;7.1;357;0.0;0.00;9.0;7.0;18.9;55.0;4.1;85.0;4.2;76.0;3.9;84.0;71;17;20;53;0;0;0;0;21.4;45.0;799;2.5;2.3
2022-01-31 
17:25;4.2;76;0.3;1015.0;3.5;8.4;344;0.0;0.00;8.0;7.0;18.9;55.0;4.0;85.0;4.2;76.0;3.8;84.0;71;17;20;53;0;0;0;0;21.1;45.5;799;3.8;3.0

Reply via email to