Command Line Interface
WeatherLog has command line arguments to allow the application to be used without opening the graphical interface.
add date temperature precipitation wind humidity air_pressure cloud_cover notes
Adds a row of data. All the fields are required, with the exceptions of the notes. Also, units should not be included but the wind direction and precipitation type should.Example:
python weatherlog.py add 12/14/2013 10 None "3.20 NNW" 65 "1013.40 Steady" "Mostly Cloudy" "This is an example"
remove index
Removes the row of data at index.Example:
python weatherlog.py remove 1
clear
Clears the data in the current profile.Example:
python weatherlog.py clear
clear_all
Deletes all the data.Example:
python weatherlog.py clear_all
switch_profile profile
Switches to profile profile.Example:
python weatherlog.py switch_profile "test profile"
add_profile profile
Adds a new profile profile.Example:
python weatherlog.py add_profile "test profile"
remove_profile profile
Removes profile profile.Example:
python weatherlog.py remove_profile "test profile"
options
Allows the user to change the options. Shows a list of the options, along with the possible values and the current settings.Example:
python weatherlog.py options
reset_options
Resets the options to the default values.Example:
python weatherlog.py reset_options
help
Shows the help page in the user's web browser.Example:
python weatherlog.py help
window_size width height
Sets the size of the window for the next time the application is opened.Example:
python weatherlog.py window_size 900 400