Mathieu Posté(e) 22 novembre 2013 Partager Posté(e) 22 novembre 2013 Bonjour, Actuellement possesseur d'une WS2350, je viens d'acheter une WS2801 sur Vente Privée. En attendant de la recevoir, je souhaite travailler sur le développement de mon outil personnel de mise en ligne de mes données. Pour celà, je demande au possesseur de WS2801 d'avoir la gentillesse de bien vouloir m'envoyer leur fichier history.dat pour que je travaille sur la structure de ce fichier. Si toutefois vous avez des informations à ce propos, je suis preneur. Merci, Mathieu Lien à poster Partager sur d’autres sites More sharing options...
lobarbot Posté(e) 23 novembre 2013 Partager Posté(e) 23 novembre 2013 Bonjour, Tu trouveras des applications pour tes fichiers sur : www.meteo-gujan.org/Visiteurs notamment EditHistory. Lien à poster Partager sur d’autres sites More sharing options...
Mathieu Posté(e) 24 novembre 2013 Auteur Partager Posté(e) 24 novembre 2013 Bonjour, Merci pour votre message. Au fil de mes recherches, je suis tombé sur ça : HeavyWeather History File Format--------------------------------Last Updated 2005/7/8Compiled by Ben UdallBy default, weather history is stored in the history.dat file in theHeavyWeather folder. HeavyWeather and HeavyWeatherPro use two differentformats, both of which are presented below. Initial format informationfor HeavyWeatherPro was taken from Cyril Cavadore's program(http://www.astrosurf.com/cavadore/meteo/stations_meteo/lacrosse/)*******************HeavyWeather V2.0 betaLa Crosse WS-2310 and WS-2315 weather stationsEach row of data is stored in 36 byte chunks starting from the beginning ofthe file (no header).RowOffset Type Name Unit------ --------- ---------------- -----00 ULong [4] unknown - (Value is always 1)04 ULong [4] Timestamp seconds from 1/1/1900 00:00:00 (GMT)08 Float [4] Abs Pressure hectopascals (millibars)12 Float [4] Wind Speed meters/second16 ULong [4] Wind Direction see below20 Float [4] Total Rainfall millimeters24 Float [4] Indoor Temp Celsius28 Float [4] Outdoor Temp Celsius32 UWord [2] Indoor Humidity %34 UWord [2] Outdoor Humidity %At the end of the file is an additional 28 bytes providing information aboutthe dataset as a whole.Offset Type Description------ --------- ----------------00 ULong [4] unknown 04 Ulong [4] unknown (0)08 Float [4] unknown (5.698)12 ULong [4] unknown (0)16 ULong [4] Number of rows20 ULong [4] Timestamp of the first row of data24 ULong [4] Timestamp of the last row of data*******************HeavyWeatherPro V1.1La Crosse WS-3610 weather stationEach row of data is stored in 56 byte chunks starting from the beginning ofthe file (no header).ROWOFFSET Type Name Unit------ --------- ---------------- -----00 Double [8] Timestamp days from 12/30/1899 00:00:00 (GMT) 08 Float [4] Abs Pressure hectopascals (millibars)12 Float [4] Relative Pressure hectopascals (millibars)16 Float [4] Wind Speed meters/second20 ULong [4] Wind Direction see below24 Float [4] Wind Gust meters/second28 Float [4] Total Rainfall millimeters32 Float [4] New Rainfall millimeters36 Float [4] Indoor Temp celsius40 Float [4] Outdoor Temp celsius44 Float [4] Indoor Humidity %48 Float [4] Outdoor Humidity %52 ULong [4] unknown - (Value is always 0)Since the timestamp is a double, the fractional part represents fractions ofa day. This is probably the same type as the Delphi TdateTime type. Moreinformation about this type can be found here:http://www.aimtec.com.au/articles/ItsAboutTime/Default.htm*******************Wind DirectionWind direction is encoded as an integer between 0 and 15. To get thewind direction in degrees, multiply the value by 22.5. To get compassdirections (moving clockwise) 0 is North, 1 is North-Northeast, 2 isNortheast, etc... 0 N 1 NNE 2 NE 3 ENE 4 E 5 ESE 6 SE 7 SSE 8 S 9 SSW10 SW11 WSW12 W13 WNW14 NW15 NNWJe ne sais pas si c'est toujours d'actualité. Cordialement, Mathieu Lien à poster Partager sur d’autres sites More sharing options...
lobarbot Posté(e) 24 novembre 2013 Partager Posté(e) 24 novembre 2013 Le format des history.dat des 36** et des 28** sont identiques. Si tu as essayé EditHistory tu auras des fichiers en csv et en plus un éditeur de fichiers. Mais, si comme moi, tu t'amuses à programmer : bon courage . Lien à poster Partager sur d’autres sites More sharing options...
Messages recommandés
Créer un compte ou se connecter pour commenter
Vous devez être membre afin de pouvoir déposer un commentaire
Créer un compte
Créez un compte sur notre communauté. C’est facile !
Créer un nouveau compteSe connecter
Vous avez déjà un compte ? Connectez-vous ici.
Connectez-vous maintenant