Skip to content

Configuration

Trevor M edited this page Nov 10, 2020 · 3 revisions

Things you must change before running:

  • sonde_predict.sh
    • LAUNCH_LAT - The latitude of the launch site you want to run predictions on
    • LAUNCH_LONG - The latitude of the launch site you want to run predictions on
  • index.html
    • autolocation_enable - Enable or disable auto location mapping and panning. Defaults to true, but will only work on a secure (https) origin.
    • autolocate_zoom - Zoom level for when user location is found. Defaults to 8 for a decently local view.

Things your really should think about changing:

  • sonde_predict.sh
    • LAUNCH_SITE_STR - String (usually the callsign) of the launch site. Used at the top header of the webpage. (Ex. KDVN for the NWS Quad Cities)
    • LAUNCH_START_TIME - Time at which launches start per day. Must be in UTC. Default is 00:000Z for NWS's 2x daily launches (00Z and 12Z).
    • LAUNCH_STEP - Time in hours between launches starting at LAUNCH_START_TIME. Default is 12 for NWS's 2x daily launches (00Z and 12Z).
    • HOUR_RANGE - The amount of time to run predictions for. Determines how many predictions are made and how much of the GFS model is downloaded.
    • EMAIL_NOTIFY - Enable or disable email notifications for sonde landings within a specified range.
  • geoLocateCoords.py
    • home_latlon - Set your lat and lon for notifications. Email is only sent if predictions are within notify_range of this point.
    • notify_range - Range in your units for predicted landings to be emailed to you. Number only, no units.
  • gmailHandler.py (Only need to change if enabling email notifications)
    • addr_to - Email for alerts to be sent to.
    • addr_from - Email of account that is sending the email.
    • smtp_user - Same email as addr_from.
    • smtp_pass - Password of gmail sender account.

Things to note:

  • sonde_predict.sh
    • LATLON_DELTA - Range in degrees that the prediction uses as a "fudge factor". Default is 10. Strongly recommended to leave alone!!
  • index.html
    • map_centre_zoom - The level of zoom the map defaults to. 8 seems to be good to view most of your home state
  • geoLocateCoords.py
    • useImperial - Set to true for imperial units, false for metric units.
Clone this wiki locally