Hi, not sure it the driver is ready to go. But I saw a commit on github 12
hours ago, so I thought, lets give it a try :)
weewx.conf:
[WLLDriver]
driver = user.WLLDriver
max_tries = 5
retry_wait = 5
poll_interval = 5
udp_enable = 1
hostname = 192.168.2.33
wl_apikey = nivwsekqwfbkhqtqwo8nximhl7zgxpcs
wl_apisecret = [not telling you, it's a secret :)]
wl_stationid = 92844
time_out = 10
device_id = 2
syslog:
Jul 4 11:51:21 ubuntu weewx[14191] INFO weewx.engine: Loading station type
WLLDriver (user.WLLDriver)
Jul 4 11:51:21 ubuntu weewx[14191] ERROR weewx.engine: Import of driver
failed: not enough values to unpack (expected 2, got 1) (<class
'ValueError'>)
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: ****
Traceback (most recent call last):
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: **** File
"/usr/share/weewx/weewx/engine.py", line 103, in setupStation
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: ****
self.console = loader_function(config_dict, self)
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/WLLDriver.py", line 58, in loader
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: ****
return WLLDriver(**config_dict[DRIVER_NAME], **config_dict)
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/WLLDriver.py", line 93, in __init__
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: ****
self.dict_device_id = dict((int(k), v) for k, v in (e.split(':') for e in
device_id.split('-')))
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/WLLDriver.py", line 93, in <genexpr>
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: ****
self.dict_device_id = dict((int(k), v) for k, v in (e.split(':') for e in
device_id.split('-')))
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: ****
ValueError: not enough values to unpack (expected 2, got 1)
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL __main__: Unable to load
driver: not enough values to unpack (expected 2, got 1)
Jul 4 11:51:21 ubuntu weewx[14191] CRITICAL __main__: **** Exiting...
Op woensdag 1 juli 2020 om 00:03:03 UTC+2 schreef [email protected]:
> Hi,
>
> Yes is on the way, I finished to implement lost data as a service on Weewx
>
> Also, added extra sensor will come. I check just if it's not fail when
> check a key in json that not exist.
>
> I will implement also the udp for real time like MQTT with the
> berlchertown skin, is more stable thant request by /current_conditions but
> it's sames values and json format.
>
> Le mardi 30 juin 2020 à 22:10:05 UTC+2, [email protected] a écrit :
>
>> Yes, I like the idea. A seperate program that pulls data from Weatherlink
>> and stores the data in sqlite or mysql (whatever is configured in
>> weewx.conf). And let weewx do the aggreate and daily summaries
>>
>> Op dinsdag 30 juni 2020 19:05:43 UTC+2 schreef Bastiaan Meelberg:
>>
>>> Ik like the idea of getting missing data from Weatherlink to weewx. But
>>> isn't it better to make it a separate program (say like a 'reverse'
>>> wunderfixer)?
>>> This way the driver is the most clean, getting and filling de database
>>> with old data can be very time consuming and slow the current collection
>>> down.
>>>
>>>
>>>
>>> On Sunday, June 21, 2020 at 7:18:41 PM UTC+2, Florentin Prevost wrote:
>>>>
>>>> Hi,
>>>>
>>>> I worked with the fork of
>>>> https://github.com/vinceskahan/weewx-weatherlinklive-json and I would
>>>> like to ask some questions about driver developpment.
>>>>
>>>> - How can I passed argument of weewx.conf to my driver ? I work to
>>>> request lost data from Weewx on Weatherlink.com because WeatherLink Live
>>>> don't have API to take archive directly and I would like to passed some
>>>> arguments like archive_interval, sql password & etc
>>>> - How work genArchiveRecords when it call? It run as each report ? Or
>>>> it is a loop that waiting to have return values ?
>>>>
>>>>
>>>> Thank you for your answer and support.
>>>>
>>>>
--
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/64c1d5dc-7118-43f9-aaea-1556e017f544n%40googlegroups.com.