Super!!

ReNaSS donne également les séismes dus aux tirs de carrières, ce qui n'est
pas intéressant
Ces tirs sont vus à une profondeur de 0m alors que les "vrais" séismes sont
plus profonds
Pour ne pas les voir il faut remplacer dans l'url :
mindepth=-1 par mindepth=1
Tout séisme à 0m de profondeur ne seront donc pas remonté

Didier

Le lun. 8 févr. 2021 à 22:57, [email protected] <[email protected]>
a écrit :

>
> Arf la faute   j'avais oublié les S majuscules  ^^
> Concernant l'insertion des lignes  :
> sur le  fichier belchertown "non modifié d'origine"  :
>
> ligne 1065
>  elif self.generator.skin_dict["Extras"]["earthquake_server"] == "ReNaSS":
> earthquake_url = ( "
> https://renass.unistra.fr/fdsnws/event/1/query?latitude=%s&longitude=%s&maxradius=5&orderby=time&format=json&limit=1&mindepth=-1";
> % (latitude, longitude) )
>
> ligne  1141
> elif self.generator.skin_dict["Extras"]["earthquake_server"] == "ReNaSS":
> eqtime = eqdata["features"][0]["properties"]["time"] # convert time to UNIX
> format eqtime = datetime.datetime.strptime(eqtime, "%Y-%m-%dT%H:%M:%S.%fZ")
> eqtime = int( (eqtime - datetime.datetime(1970, 1, 1)).total_seconds() )
> equrl = eqdata["features"][0]["properties"]["url"] eqplace =
> eqdata["features"][0]["properties"]["description"] eqmag = locale.format(
> "%g", float(eqdata["features"][0]["properties"]["mag"]) )
>
> Merci  bcp  ....
>
> Stephane
>
> Vous pouvez regarder le resultat ici :
>
> https://meteo-pontscorff.fr/data-weewx/WMR200/belchertown/
> https://meteo-pontscorff.fr/data-weewx/FROGGIT/belchertown/
>
> A bientôt
> Stéphane
>
> Le lundi 8 février 2021 à 22:04:16 UTC+1, [email protected] a écrit :
>
>> Ho Stephane
>>
>> Attention aux majuscules
>> Il faut écrire dans le sein.conf ou weewx.conf
>> ReNaSS
>> Avec 2 S en majuscules comme écrit dans le .py
>>
>> Dans le .py l’ajout se fait à 2 endroits
>>
>> Didier
>>
>>
>> Le lun. 8 févr. 2021 à 21:54, [email protected] <[email protected]>
>> a écrit :
>>
>>> hello
>>>  I dont  know how to merge you simple code in "belchertonw.py" file. (
>>> line  1069)
>>> I modify "skin.conf"  like this  (line 84) :
>>>
>>> earthquake_stale = 3600
>>> earthsquale_server = ReNass
>>>
>>> I try several thinks but always I ve mistakes when  I  use this comand
>>> wee_reports
>>> I find your belchertown.py file in your  git  here
>>> https://github.com/ddperso/weewx-belchertown
>>> I try also but doesn t  work well...
>>>
>>> If you can help  me  Best regards
>>> Thansk a lot  ;)
>>>
>>> Stephane
>>>
>>>
>>> //////// In french
>>> Bonsoir
>>> je viens d'essayer d'intégrer votre bout de code dans le fichier
>>> belchertown.py.
>>> je pense qu'il faut intégrer votre code aux alentours des lignes 1069
>>> J'ai modifié le fichier skin.conf (ligne 84)
>>> Je génère les rapports via wee_report s et j'ai des stacks d'erreurs (
>>> que je peux regénérer)
>>> J'ai des erreurs et je ne comprends vraiment pas
>>>
>>> J'ai tenté également votre fichier pris sur  votre dépot et j'ai les
>>> meme soucis .
>>>
>>> Si vous pouvez m'aider  ;)
>>>
>>> Merci  bcp
>>>
>>> Stephane
>>>
>>> Le mercredi 3 février 2021 à 12:33:41 UTC+1, [email protected] a
>>> écrit :
>>>
>>>> I have made modifications in Belchertown skin
>>>> see Issue https://github.com/poblabs/weewx-belchertown/issues/561
>>>> Le mardi 2 février 2021 à 10:38:25 UTC+1, [email protected] a
>>>> écrit :
>>>>
>>>>> Hi
>>>>>
>>>>> Today in Belchertown skin, we can display USGS and GEONET earthquakes.
>>>>> I would like to add RENASS network.
>>>>>
>>>>> Renass can be reached by a url and gives a json answer, exemple:
>>>>>
>>>>> https://renass.unistra.fr/fdsnws/event/1/query?latitude=46.6&longitude=1.9&maxradius=9&minmagnitude=1&orderby=time&starttime=2021-01-18&format=json
>>>>>
>>>>> and result is :
>>>>> { "bbox": [ -3.621, 41.399, 9.87, 49.682 ], "features": [ {
>>>>> "geometry": { "coordinates": [ 6.953, 44.888, -10 ], "type": "Point" },
>>>>> "id": "6018e3eb6dc5b1490661b451", "properties": { "description":
>>>>> "S\u00e9isme de magnitude 1.3 \u00e0 31km de Pinerolo", "evaluationMode":
>>>>> "manual", "mag": 1.3, "magType": "MLv", "place": "FRANCE", "time":
>>>>> "2021-02-02T05:30:08.834000Z", "type": "earthquake", "url": "
>>>>> https://renass.unistra.fr/evenements/6018e3eb6dc5b1490661b451"; },
>>>>> "type": "Feature" }, { "geometry": { "coordinates": [ 4.436, 47.195, 0 ],
>>>>> "type": "Point" }, "id": "6018079d2d270784e6057f05",
>>>>> .......
>>>>>
>>>>>
>>>>>   As I am not a strong programmer, is somebody can add this option?
>>>>>
>>>>> Many thanks for your help
>>>>> Didier
>>>>>
>>>> --
>>> 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/faa12844-92cd-423b-8454-795044f99ccbn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/faa12844-92cd-423b-8454-795044f99ccbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> Quel temps fait-il à Auffargis <https://meteo-auffargis.decoodt.eu> ?
>>
> --
> 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/74d087c9-49cf-4d9e-9740-6ba71b8d8b31n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/74d087c9-49cf-4d9e-9740-6ba71b8d8b31n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Quel temps fait-il à Auffargis <https://meteo-auffargis.decoodt.eu> ?

-- 
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/CAAvt3%3DS2T6A71W8u6m_OWU2%2B11ao18vZuxcGrOgLB%3DPvV5So9w%40mail.gmail.com.

Reply via email to