-
Notifications
You must be signed in to change notification settings - Fork 33
/
help.txt
51 lines (40 loc) · 2.52 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Usage:
$ curl localhost:8000 # current location
$ curl localhost:8000?loc=new_york # surf report in New York
Supported location types:
loc=santa_cruz # city
loc=santa_cruz_ca # city and state
loc=santa_cruz_steamer_lane # surf spot
loc=700_w_cliff_dr_santa_cruz # address
loc=95060 # zip code
Units:
m # metric
imperial # default
Arguments:
location / loc # Specify the location of your forecast
forecast / fc # Number of forecast days. Max = 7, default = 0
hide_wave / hw # Hide the default wave art
show_large_wave / slw # Show the large wave art
show_air_temp / sat # Show the air temperature
show_wind_speed / sws # Show the wind speed
show_wind_direction / swd # Show the wind direction
hide_uv / huv # Hide UV index
hide_height / hh # Hide surf height
hide_direction / hdir # Hide swell direction
hide_period / hp # Hide swell period
hide_location / hl # Hide location
hide_date / hdate # Hide date in forecast
metric / m # Numbers in Metric units. Defaults to Imperial
decimal / dec # Specify decimal points in output
color / c # Choose color of wave art. Ex: color=light_blue
json / j # Output the data in JSON format. Must be the only argument
gpt / g # Activates the GPT surf report. Change the GPT_PROMPT variable in .env to customize responses. Default = off
Color Options:
default, red, green, yellow, blue, purple, teal, light_blue, white, bold_red, bold_green, bold_yellow, bold_blue, bold_purple, bold_teal, bold_white
Examples:
curl localhost:8000
curl localhost:8000?loc=new_york,hide_height,hide_wave,show_large_wave
curl localhost:8000?fc=3,hdate,loc=trestles,c=light_blue
curl localhost:8000?loc=malibu,show_air_temp,show_wind_speed,show_wind_direction
curl localhost:8000?loc=nazare,json
curl localhost:8000?loc=gold_coast,gpt,color=yellow