I'd love to do that, need littile help.

How do I retrieve my station_id? I can use the V2 api tho retrieve it, but 
I need a api-signature to get that information. And to calculate the 
api-signuature, I need my station-id. 

Chicken and egg

This is the string (example) to calculate the api-signature (SHA256). You 
see there's the station-id in it, which I do not know.

api-key987654321station-id1052t1558729481 

Op dinsdag 30 juni 2020 om 08:11:10 UTC+2 schreef flor...@pre-vost.fr:

> Thank you ! 
>
> I fix the issue for extra sensor when you request directly on your wll 
> module.
>
> Can you share right now the answer of API v2 of Weatherlink.com like this 
> :  
> https://weatherlink.github.io/v2-api/authentication#walkthrough-examples 
>
> It help me full because I think that the structure is not the same that 
> the wll module :)  
>
> -fp
> Le dimanche 28 juin 2020 à 12:15:37 UTC+2, hoev...@gmail.com a écrit :
>
>> Sure!
>>
>> {"data":{"did":"001D0A71154A","ts":1593339301,"conditions":[{"lsid":321275,"data_structure_type":1,"txid":2,"temp":
>>  
>> 67.6,"hum":59.0,"dew_point": 52.8,"wet_bulb": 57.3,"heat_index": 
>> 67.3,"wind_chill": 64.1,"thw_index": 63.8,"thsw_index": 
>> 71.5,"wind_speed_last":11.00,"wind_dir_last":203,"wind_speed_avg_last_1_min":11.56,"wind_dir_scalar_avg_last_1_min":215,"wind_speed_avg_last_2_min":11.81,"wind_dir_scalar_avg_last_2_min":217,"wind_speed_hi_last_2_min":18.00,"wind_dir_at_hi_speed_last_2_min":225,"wind_speed_avg_last_10_min":12.75,"wind_dir_scalar_avg_last_10_min":219,"wind_speed_hi_last_10_min":20.00,"wind_dir_at_hi_speed_last_10_min":225,"rain_size":2,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0,"rainfall_last_24_hr":20,"rain_storm":24,"rain_storm_start_at":1593210300,"solar_rad":207,"uv_index":2.1,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":175,"rainfall_year":175,"rain_storm_last":6,"rain_storm_last_start_at":1592760421,"rain_storm_last_end_at":1592866861},{"lsid":321279,"data_structure_type":1,"txid":3,"temp":
>>  
>> 72.0,"hum":null,"dew_point":null,"wet_bulb":null,"heat_index":null,"wind_chill":null,"thw_index":null,"thsw_index":null,"wind_speed_last":null,"wind_dir_last":null,"wind_speed_avg_last_1_min":null,"wind_dir_scalar_avg_last_1_min":null,"wind_speed_avg_last_2_min":null,"wind_dir_scalar_avg_last_2_min":null,"wind_speed_hi_last_2_min":null,"wind_dir_at_hi_speed_last_2_min":null,"wind_speed_avg_last_10_min":null,"wind_dir_scalar_avg_last_10_min":null,"wind_speed_hi_last_10_min":null,"wind_dir_at_hi_speed_last_10_min":null,"rain_size":1,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0,"rainfall_last_24_hr":0,"rain_storm":null,"rain_storm_start_at":null,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":0,"rainfall_year":0,"rain_storm_last":null,"rain_storm_last_start_at":null,"rain_storm_last_end_at":null},{"lsid":321271,"data_structure_type":4,"temp_in":
>>  
>> 76.4,"hum_in":47.0,"dew_point_in": 54.7,"heat_index_in": 
>> 76.1},{"lsid":321270,"data_structure_type":3,"bar_sea_level":29.889,"bar_trend":
>>  
>> 0.031,"bar_absolute":29.876}]},"error":null}
>>
>> ISS on ID=2, extra temp sensor on ID=3
>>
>>
>>
>> Op zondag 28 juni 2020 12:13:08 UTC+2 schreef flor...@pre-vost.fr:
>>
>>> Hi Maarten,
>>>
>>> To help Bastiaan and me to WLL Driver, can you share the answer of your 
>>> request of http://1.2.3.4/v1/current_conditions (change 1.2.3.4 by your 
>>> internal IP) ?
>>> You've another sensor with other ID and it will be helpfull to have this 
>>> data to implement it on driver,
>>>
>>> Thank you ! 
>>>
>>> Le samedi 27 juin 2020 à 10:53:21 UTC+2, flor...@pre-vost.fr a écrit :
>>>
>>>> Hi,
>>>>
>>>> Baastian, yes of course, I think it a good idea to make a request using 
>>>> weewx object to read the daily rain to the database and make a comparison 
>>>> with the rainfall daily by the WLL but I need the help of @Tom Keffer for 
>>>> this.
>>>>
>>>> For UnitUS, I know that if it possible but for readability, I decided 
>>>> to make a conversion before yield the packet to the genlooppackets(). 
>>>> Also, 
>>>> when i need to add record manual by using the method addRecords, I need to 
>>>> put on the packet the right unit set in weewx.conf. If you've another 
>>>> suggest, let me know :) 
>>>>
>>>> Maarten, I will fix this issue in few days, I know how can I do this by 
>>>> search any key in each sensor :) 
>>>>
>>>> -fp
>>>>
>>>> Le samedi 27 juin 2020 à 10:40:09 UTC+2, hoev...@gmail.com a écrit :
>>>>
>>>>> Hello Bastiaan,
>>>>>
>>>>> The WLL is a wonderful piece of equipment. Now I can run production 
>>>>> with WeeWX, and start a test-enviroment in a virtual machine, while 
>>>>> talking 
>>>>> to the same WLL.
>>>>>
>>>>> I've installed your driver. I have running my ISS on ID 2 (and have an 
>>>>> external temp sensor running on sensor 3).
>>>>>
>>>>> When ISS set to ID=2, I only seems to see internal sensor data, like:
>>>>>
>>>>> LOOP:   2020-06-27 10:37:51 CEST (1593247071) altimeter: 
>>>>> 1008.6586993806619, barometer: 1009.0082158009718, dateTime: 1593247071, 
>>>>> inDewpoint: 17.27777777777778, inHumidity: 55.1, inTemp: 
>>>>> 27.055555555555557, maxSolarRad: None, pressure: 1008.5679853403257, 
>>>>> rainRate: 0.0, usUnits: 17
>>>>> {'data': {'broadcast_port': 22222, 'duration': 3600}, 'error': None}
>>>>> LOOP:   2020-06-27 10:37:51 CEST (1593247071) dateTime: 1593247071, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:37:53 CEST (1593247073) dateTime: 1593247073, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:37:56 CEST (1593247076) dateTime: 1593247076, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:37:58 CEST (1593247078) dateTime: 1593247078, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:38:01 CEST (1593247081) dateTime: 1593247081, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:38:03 CEST (1593247083) dateTime: 1593247083, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:38:06 CEST (1593247086) dateTime: 1593247086, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:38:06 CEST (1593247086) altimeter: 
>>>>> 1008.6925672055719, barometer: 1009.04207968256, dateTime: 1593247086, 
>>>>> inDewpoint: 17.27777777777778, inHumidity: 55.1, inTemp: 
>>>>> 27.055555555555557, maxSolarRad: None, pressure: 1008.6018492219138, 
>>>>> rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:38:08 CEST (1593247088) dateTime: 1593247088, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>>
>>>>>
>>>>>
>>>>> When set ISS to ID=1, I see the same
>>>>>
>>>>> LOOP:   2020-06-27 10:38:56 CEST (1593247136) altimeter: 
>>>>> 1008.7264350305117, barometer: 1009.075943564148, dateTime: 1593247136, 
>>>>> inDewpoint: 17.22222222222222, inHumidity: 54.9, inTemp: 
>>>>> 27.055555555555557, maxSolarRad: None, pressure: 1008.635713103502, 
>>>>> rainRate: 0.0, usUnits: 17
>>>>> {'data': {'broadcast_port': 22222, 'duration': 3600}, 'error': None}
>>>>> LOOP:   2020-06-27 10:38:56 CEST (1593247136) dateTime: 1593247136, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:38:58 CEST (1593247138) dateTime: 1593247138, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:01 CEST (1593247141) dateTime: 1593247141, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:03 CEST (1593247143) dateTime: 1593247143, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:06 CEST (1593247146) dateTime: 1593247146, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:08 CEST (1593247148) dateTime: 1593247148, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:11 CEST (1593247151) dateTime: 1593247151, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:11 CEST (1593247151) altimeter: 
>>>>> 1008.6586993806619, barometer: 1009.0082158009718, dateTime: 1593247151, 
>>>>> inDewpoint: 17.27777777777778, inHumidity: 55.1, inTemp: 
>>>>> 27.055555555555557, maxSolarRad: None, pressure: 1008.5679853403257, 
>>>>> rainRate: 0.0, usUnits: 17
>>>>> LOOP:   2020-06-27 10:39:13 CEST (1593247153) dateTime: 1593247153, 
>>>>> maxSolarRad: None, rainRate: 0.0, usUnits: 17
>>>>>
>>>>> Op zaterdag 27 juni 2020 om 10:17:55 UTC+2 schreef Bastiaan Meelberg:
>>>>>
>>>>>> Python is pretty new to me, I was unaware of the use of the _packet 
>>>>>> underscore method. I will update my code. Thanks for the tip.
>>>>>>
>>>>>> Have a look at the rain calculations, I found out yesterday, during a 
>>>>>> rain shower, setting  the self.rain_previous_period to zero is not a 
>>>>>> good idea. If weewx is reloading the diver (and it does) it will add the 
>>>>>> daily rain as a whole new rainfall. I will update my repo during the day.
>>>>>>
>>>>>> Also at midnight WLL will reset the rain_daily, so at that moment the 
>>>>>> rain_previous must be reset.
>>>>>>
>>>>>> I also don't think you need to do all the METRIC and METRICWX 
>>>>>> conversions. Weewx will do that for you, if you set the 'usUnits': 
>>>>>> weewx.US  in the _packet. The LOOP will be generated and weewx is 
>>>>>> adding the record using the set database metrics.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Friday, June 26, 2020 at 6:56:18 PM UTC+2, flor...@pre-vost.fr 
>>>>>> wrote:
>>>>>>>
>>>>>>> Hi everyone and thank you for your support ! I'm very glade to know 
>>>>>>> that people want to make this driver because there are not a lot.
>>>>>>>
>>>>>>> This is my repo :  https://github.com/Drealine/WLLDriver 
>>>>>>>
>>>>>>> @Bastiaan it's very nice ! Just, why you use update packet or not 
>>>>>>> simply do a for _packet in blabla(): It's a udp protocol ?
>>>>>>>
>>>>>>> With my driver, you can retrive lost data by using API v2 of 
>>>>>>> Weatherlink. Depend to your subscription.
>>>>>>>
>>>>>>> Glad to work with you, and if you want, it will be more often that 
>>>>>>> split some git to one. 
>>>>>>>
>>>>>>> Regards, -fp 
>>>>>>>
>>>>>>> Le vendredi 26 juin 2020 à 18:35:45 UTC+2, Bastiaan Meelberg a 
>>>>>>> écrit :
>>>>>>>
>>>>>>>> Hi, 
>>>>>>>>
>>>>>>>> I’m also working on a wll driver, including The 2,5 UDP packages. 
>>>>>>>> It is running now for a few days with good results (no rain check 
>>>>>>>> yet). 
>>>>>>>> The integration with the online fetch sounds interesting! 
>>>>>>>> This is my git fork: 
>>>>>>>> https://github.com/grebleem/WeatherLinkliveUDP 
>>>>>>>>
>>>>>>>> It is feeding my site: https://meteo-otterlo.nl 
>>>>>>>>
>>>>>>>> Cheers, Bastiaan 
>>>>>>>>
>>>>>>>

-- 
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 weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/0ea154c3-a146-4a4b-8b30-329ecb867625n%40googlegroups.com.

Reply via email to