skiplan_client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.gitignore +26 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +79 -0
- data/Rakefile +1 -0
- data/data/lumi_response.xml +1485 -0
- data/lib/skiplan_client/version.rb +3 -0
- data/lib/skiplan_client/weather_object.rb +79 -0
- data/lib/skiplan_client.rb +32 -0
- data/skiplan_client.gemspec +27 -0
- data/test/skiplan_client/skiplan_client_test.rb +39 -0
- data/test/skiplan_client/weather_object_test.rb +25 -0
- metadata +142 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NjYzZDVjMzRkNGNmN2VjNzNjZDNiYTU1NTE5MDkzNGM1MzViNTQ4Zg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDIyNGYzMDFhY2ExNjljYzY3Y2ZhM2EwYzNhMTNhYjZjZTlmOTg5Mg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NzgzOTczM2QzOWQ5MDdmOTMwMThlMWM5MWQxNGE0ZGQ5MGU2NzE1YzMwMmM3
|
10
|
+
MmVlYjhjM2QxZGI3NmJhOWViOWQzNDgzOTMxMjUwNDdmYTllZDc1ODI2ZjZi
|
11
|
+
NzlmYTk5MmE3ZTQ5OTNmZTdlYTZmMzM3NTQ2ZmI1ODM1ZTQxZWI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NWViNGY5NDY2N2VjOGE5ZDZmNjUxN2FmODIzZjllYWUzNDQyMjc2MDNlMGQ2
|
14
|
+
MDEzZDE1MzIwYzE2OTAzNGM2NTJkNzc2ZGE0M2M0MmIzYjM0NTgxNTQ1OTFi
|
15
|
+
ZjM2MWQ4MWZiZjA3ODgyZDhiNGJjMzE1ZTQ1YjQxMDQzZjNmYjQ=
|
data/.gitignore
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
.idea/.name
|
19
|
+
.idea/.rakeTasks
|
20
|
+
.idea/encodings.xml
|
21
|
+
.idea/misc.xml
|
22
|
+
.idea/modules.xml
|
23
|
+
.idea/scopes/scope_settings.xml
|
24
|
+
.idea/skiplan_client.iml
|
25
|
+
.idea/vcs.xml
|
26
|
+
.idea/workspace.xml
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 jeanbaptistevilain
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# SkiplanClient
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'skiplan_client'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install skiplan_client
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Get an XML file :
|
22
|
+
|
23
|
+
parameter :
|
24
|
+
- $country : Country of the ski resort
|
25
|
+
- $region : Region of the ski resort
|
26
|
+
- $station : name of the ski resort
|
27
|
+
- $v : version number
|
28
|
+
|
29
|
+
example : http://www.skiplan.com/php/genererXml.php?pays=france®ion=alpes&station=tignes&v=1
|
30
|
+
|
31
|
+
Element you can get : (current version)
|
32
|
+
|
33
|
+
- auj_ciel_id_matin # return an id describing the weather during the morning of the current day
|
34
|
+
- auj_ciel_id_apm # return an id describing the weather during the afternoon of the current day
|
35
|
+
- dem_ciel_id_matin # return an id describing the weather during the morning of the next day
|
36
|
+
- dem_ciel_id_apm # return an id describing the weather during the afternoon of the next day
|
37
|
+
|
38
|
+
______________________ Next Version ________________________________________________________
|
39
|
+
|
40
|
+
- name # Nom de station associée aux données
|
41
|
+
- lang, # Langue usuelle de la station
|
42
|
+
- dateheur, # jj/mm/aaaa hh:mm
|
43
|
+
- zonename, # nom de la zone
|
44
|
+
- zonealtitude, # Altitude de la zone d'observation
|
45
|
+
- datemaj, # Date et heure de dernière modification des observations météo # H24 jj/mm/aaaaa hh:mm
|
46
|
+
- reference, # Nom de la zone d’observation principale (météo du jour) lorsque la zone décrit une prévision à J+n
|
47
|
+
- rsqreel, # indique s'il existe un réel risque d'avalanche (valeur 1) ou non (valeur 0)
|
48
|
+
- valrisque, # risque d'avalanche entre 0 et 5
|
49
|
+
- librisque, # libellé risque d'avalanche, non spécifié si 0
|
50
|
+
- temperaturemtn, # température le matin pour la zone d'observation associée
|
51
|
+
- temperatureapm, # temperature de l'après midi
|
52
|
+
- temperaturerst, # temperature ressentie
|
53
|
+
- neige, # hauteur de neige fraîche de la zone d'observation associée
|
54
|
+
- cumul, # hauteur de neige totale
|
55
|
+
- neigehorspiste, # hauteur de neige totale hors piste
|
56
|
+
- libqualite, # libellé de la qualité de neige
|
57
|
+
- idqualite, # id qualité de neige (100 si non spécifié)
|
58
|
+
- idqualitehorspiste, # id qualité de la neige hors piste (100 si non spécifié)
|
59
|
+
- datelastsnow, # date de la dernière chute de neige, au format H24 : jj/mm/aaaa hh:mm
|
60
|
+
- vitesse, # vitesse du vent
|
61
|
+
- direction, # direction du vent
|
62
|
+
- rafales, # vitesse maximale du vent en rafale
|
63
|
+
- visibilite, # pourcentage de visibilité de la zone d'observation
|
64
|
+
- id_ciel_mtn, # identifiant de l'état du ciel le matin
|
65
|
+
- id_ciel_apm, # identifiant de l'état du ciel l'après midi'
|
66
|
+
- indice_uv, #’intensité de rayonnement UV pour la zone. Valeur entre 0 et 10
|
67
|
+
- risque_orage, # indice risque d'orage entre 0 et 3
|
68
|
+
- commentaire, # conseil du jour
|
69
|
+
- meteo_jour, # Bulletin météo du jour
|
70
|
+
- meteo_lendemain, # Prévision du lendemain
|
71
|
+
- meteo_semaine # Tendances de la semaine
|
72
|
+
|
73
|
+
## Contributing
|
74
|
+
|
75
|
+
1. Fork it
|
76
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
77
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
78
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
79
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|