Okay, have played with it.
First I needed to create a tmp-directory. Without it, the csv-file cannot
be created.
Started the importer to import one single day: 2020-01-01. It creates an
empty csv-file
maarten@ubuntu:~/weatherlink/tmp$ ls -las
total 8
4 drwxrwxr-x 2 maarten maarten 4096 Jul 7 21:49 .
4 drwxrwxr-x 3 maarten maarten 4096 Jul 7 21:47 ..
0 -rw-rw-r-- 1 maarten maarten 0 Jul 7 21:47 davis1594151264.csv
0 -rw-rw-r-- 1 maarten maarten 0 Jul 7 21:49 davis1594151341.csv
maarten@ubuntu:~/weatherlink/tmp$
with errors
maarten@ubuntu:~/weatherlink$ python3 weewx_weatherlink --date=2020-01-01
Use date: 2020-01-01 00:00:00
1 [1577833200] - [1577919600]: 2020-01-01 00:00:00 - 2020-01-02 00:00:00
Finding stations:
station id: 92884
Name: Welsumerveld
Country: Netherlands
latitude: 52.310936
longitude: 6.0856133
-- WARNING! --
Running WeeWX during a wee_import session can lead to abnormal termination
of the import.
If WeeWX must remain running (e.g., so that live data is not lost) run the
wee_import session on another machine
or to a second database and merge the in-use and second database once the
import is complete.
Is this correct? [y/n] y
Fetching 1577833200 - 1577919600
Fetching 1577833200 - 1577919600
Traceback (most recent call last):
File "weewx_weatherlink", line 361, in <module>
main()
File "weewx_weatherlink", line 340, in main
writer.writerow(wu_data[0].keys())
IndexError: list index out of range
Running a range:
maarten@ubuntu:~/weatherlink$ python3 weewx_weatherlink
--startdate=2020-01-01 --enddate=2020-01-15
Use dates: 2020-01-01 00:00:00 - 2020-01-15 00:00:00
1 [1577833200.0] - [1577919600.0]: 2020-01-01 00:00:00 - 2020-01-02 00:00:00
2 [1577919600.0] - [1578006000.0]: 2020-01-02 00:00:00 - 2020-01-03 00:00:00
3 [1578006000.0] - [1578092400.0]: 2020-01-03 00:00:00 - 2020-01-04 00:00:00
4 [1578092400.0] - [1578178800.0]: 2020-01-04 00:00:00 - 2020-01-05 00:00:00
5 [1578178800.0] - [1578265200.0]: 2020-01-05 00:00:00 - 2020-01-06 00:00:00
6 [1578265200.0] - [1578351600.0]: 2020-01-06 00:00:00 - 2020-01-07 00:00:00
7 [1578351600.0] - [1578438000.0]: 2020-01-07 00:00:00 - 2020-01-08 00:00:00
8 [1578438000.0] - [1578524400.0]: 2020-01-08 00:00:00 - 2020-01-09 00:00:00
9 [1578524400.0] - [1578610800.0]: 2020-01-09 00:00:00 - 2020-01-10 00:00:00
10 [1578610800.0] - [1578697200.0]: 2020-01-10 00:00:00 - 2020-01-11
00:00:00
11 [1578697200.0] - [1578783600.0]: 2020-01-11 00:00:00 - 2020-01-12
00:00:00
12 [1578783600.0] - [1578870000.0]: 2020-01-12 00:00:00 - 2020-01-13
00:00:00
13 [1578870000.0] - [1578956400.0]: 2020-01-13 00:00:00 - 2020-01-14
00:00:00
14 [1578956400.0] - [1579042800.0]: 2020-01-14 00:00:00 - 2020-01-15
00:00:00
15 [1579042800.0] - [1579042800]: 2020-01-15 00:00:00 - 2020-01-15 00:00:00
Finding stations:
station id: 92884
Name: Welsumerveld
Country: Netherlands
latitude: 52.310936
longitude: 6.0856133
-- WARNING! --
Running WeeWX during a wee_import session can lead to abnormal termination
of the import.
If WeeWX must remain running (e.g., so that live data is not lost) run the
wee_import session on another machine
or to a second database and merge the in-use and second database once the
import is complete.
Is this correct? [y/n] y
Fetching 1577833200 - 1577919600
Fetching 1577833200 - 1577919600
Fetching 1577919600 - 1578006000
Fetching 1577919600 - 1578006000
Fetching 1578006000 - 1578092400
Fetching 1578006000 - 1578092400
Fetching 1578092400 - 1578178800
Fetching 1578092400 - 1578178800
Fetching 1578178800 - 1578265200
Fetching 1578178800 - 1578265200
Fetching 1578265200 - 1578351600
Fetching 1578265200 - 1578351600
Fetching 1578351600 - 1578438000
Fetching 1578351600 - 1578438000
Fetching 1578438000 - 1578524400
Fetching 1578438000 - 1578524400
Fetching 1578524400 - 1578610800
Fetching 1578524400 - 1578610800
Fetching 1578610800 - 1578697200
Fetching 1578610800 - 1578697200
Fetching 1578697200 - 1578783600
Fetching 1578697200 - 1578783600
Fetching 1578783600 - 1578870000
Fetching 1578783600 - 1578870000
Fetching 1578870000 - 1578956400
Fetching 1578870000 - 1578956400
Fetching 1578956400 - 1579042800
Fetching 1578956400 - 1579042800
Fetching 1579042800 - 1579042800
Fetching 1579042800 - 1579042800
Traceback (most recent call last):
File "weewx_weatherlink", line 361, in <module>
main()
File "weewx_weatherlink", line 340, in main
writer.writerow(wu_data[0].keys())
IndexError: list index out of range
maarten@ubuntu:~/weatherlink$
Creating another empty csv-file
maarten@ubuntu:~/weatherlink/tmp$ ls -las
total 8
4 drwxrwxr-x 2 maarten maarten 4096 Jul 7 21:56 .
4 drwxrwxr-x 3 maarten maarten 4096 Jul 7 21:47 ..
0 -rw-rw-r-- 1 maarten maarten 0 Jul 7 21:47 davis1594151264.csv
0 -rw-rw-r-- 1 maarten maarten 0 Jul 7 21:49 davis1594151341.csv
0 -rw-rw-r-- 1 maarten maarten 0 Jul 7 21:56 davis1594151771.csv
maarten@ubuntu:~/weatherlink/tmp$
Op dinsdag 7 juli 2020 om 21:33:57 UTC+2 schreef Bastiaan Meelberg:
> Hi Maarten,
>
> If you want you can give the importer a try:
>
> https://github.com/grebleem/weewx_wl_import
>
> Thanks.
>
>
> On Tuesday, July 7, 2020 at 1:09:34 PM UTC+2, Maarten van der Hoeven wrote:
>>
>> Hi Bastiaan,
>>
>> something I can test?
>>
>> Op zondag 5 juli 2020 14:02:38 UTC+2 schreef [email protected]:
>>>
>>> Sorry for that.
>>>
>>> There was a misunderstandings . Let's forget this conversation;)
>>>
>>> -fp
>>>
>>> Le samedi 4 juillet 2020 à 13:36:23 UTC+2, [email protected] a écrit :
>>>
>>>> Yes, agree. I like the weather, I like programming, I like to
>>>> cooperate. It's my current lack of python-knowledge that I want to
>>>> contribute the best I can do right now, and that is testing both of your
>>>> drivers. I dont see it as competition, and may the best win. Far from
>>>> that.
>>>> In the end, it's my small contribution to the community in testing two
>>>> drivers, and make them both better working. In hoping that the user pick
>>>> the driver it feels most comfortably with, or not.
>>>>
>>>> Op zaterdag 4 juli 2020 12:52:09 UTC+2 schreef Bastiaan Meelberg:
>>>>
>>>>> I just program what I need, because I like programming.
>>>>>
>>>>> Use my program (you all-ready did I see in you're driver ;-), or don't
>>>>> use it. That is the good think of open source.
>>>>>
>>>>> Your importer is doing the calculation e.g. Fahrenheit to Celsius I
>>>>> don't like that, weewx is way better in making the conversions.
>>>>> Also I just want to import a date range and not have to figure out my
>>>>> station_id. So I decided to make my own.
>>>>>
>>>>> But feel free to make a better driver/importer.
>>>>>
>>>>>
>>>>> On Saturday, July 4, 2020 at 12:38:54 PM UTC+2, Florentin Prevost
>>>>> wrote:
>>>>>>
>>>>>> Like we work on the same functions for Wll driver. Why not to work
>>>>>> together to developp the driver ? Each one developp the same code and it
>>>>>> would a shame to work 2 times for the same code ...
>>>>>
>>>>>
--
You received this message because you are subscribed to the Google Groups
"weewx-development" 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-development/0d4d68ee-2fe1-4282-99ae-245473b21a9cn%40googlegroups.com.