Thank you, you understood me correctly.
In the meantime, I ended up understanding.
thanks again
PC
Le 22-10-21 à 08:26, gjr80 a écrit :
Hi,
Perhaps it is the language barrier but I am not quite sure what you
are asking. As I understand it you have some CSV format data you wish
to import using wee_import. Your data has a field named Date that
contains date-time information for each row.
If that is the case you need to set raw_datetime_format to match the
format used in your Date field. The default format is %Y-%m-%d
%H:%M:%S but you should change this to suit the format of your data.
For example, if your Date field contains date-time data of the form
21:55:00 22 10 2021 you would set raw_datetime_format = %H:%M:%S %d %m
%Y. If the format was 21:55:00 22 Oct 21 you might use
raw_datetime_format = %H:%M:%S %d %B %y. It all depends on your data.
The available format codes and their meaning are listed under
strftime() and strptime() Format Codes
<https://docs.python.org/3.8/library/datetime.html#strftime-and-strptime-format-codes>.
One other thing you will need to do is set the mapping of your Date
field to the WeeWX dateTime field. You do this by including
a/modifying the dateTime setting under [[FieldMap]] in your CSV import
config file. In your case something like the following should work
(untested):
--
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 on the web visit
https://groups.google.com/d/msgid/weewx-user/c6eb8194-d3e4-cfc0-9dad-a322c808cd30%40gmail.com.