Youhou it works great THANK you Glenn
I work with scientific researchers here, they need those datas.


2017-10-09 12:24 GMT+02:00 Glenn McKechnie <[email protected]>:

> Hi,
>
> Open /usr/share/weewx/user/csv.py with a text editor and add the
> following -  import syslog - after the - import time - line.
> Save the file and restart weewx --- /etc/init.d/weewx restart
>
> An snippet follows with that addition made (ie:-  the last line.)
>
> # $Id: csv.py 1748 2017-10-06 01:45:25Z mwall $
> # Copyright 2015 Matthew Wall
>
> import os
> import os.path
> import time
> import syslog
> Cheers
>  Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>
>
> On 9 October 2017 at 20:24, Jacques-Olivier Farcy
> <[email protected]> wrote:
> > Hello Mario,
> >
> > I have an error after testing this new version :
> > (I uninstalled the 0.4, and installed 0.7)
> > ...
> > Oct  9 11:18:56 raspberrypi weewx[1650]: engine: Loading service
> > user.csv.CSV
> > Oct  9 11:18:56 raspberrypi weewx[1650]: engine: Caught unrecoverable
> > exception in engine:
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****  global name 'syslog'
> is
> > not defined
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****  Traceback (most recent
> > call last):
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****    File
> > "/usr/share/weewx/weewx/engine.py", line 865, in main
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****      engine =
> > engine_class(config_dict)
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****    File
> > "/usr/share/weewx/weewx/engine.py", line 77, in __init__
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****
> > self.loadServices(config_dict)
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****    File
> > "/usr/share/weewx/weewx/engine.py", line 141, in loadServices
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****
> > self.service_obj.append(weeutil.weeutil._get_object(svc)(self,
> config_dict))
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****    File
> > "/usr/share/weewx/user/csv.py", line 29, in __init__
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****      loginf("service
> > version is %s" % VERSION)
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****    File
> > "/usr/share/weewx/user/csv.py", line 21, in loginf
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****
> > logmsg(syslog.LOG_INFO, msg)
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****  NameError: global name
> > 'syslog' is not defined
> > Oct  9 11:18:56 raspberrypi weewx[1650]:     ****  Exiting.
> >
> > 2017-10-06 4:17 GMT+02:00 mwall <[email protected]>:
> >>
> >> On Thursday, October 5, 2017 at 2:04:28 PM UTC-4, Jacques-Olivier Farcy
> >> wrote:
> >>>
> >>> Well i've done that several times.
> >>>
> >>> I also changed the code to have file named data-year-month.csv and it
> >>> works.
> >>>
> >>> But no headers in the file.
> >>
> >>
> >> there was a bug in the logic for emitting a header.
> >>
> >> please use weewx-csv v0.7
> >>
> >> v0.7 also includes the 'append_datestamp' option (enabled by default)
> that
> >> puts YYYY-mm in the filename.
> >>
> >> m
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "weewx-user" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/weewx-user/KxNNsAhm274/unsubscribe.
> >> To unsubscribe from this group and all its topics, 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.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/KxNNsAhm274/unsubscribe.
> To unsubscribe from this group and all its topics, 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