Skip to content

A python script to scrape NDBC NOAA data for wave data then sends a SMS text using the Twilio API.

License

Notifications You must be signed in to change notification settings

CloudsWeight/wavemaps

Repository files navigation

image image

Example matplotlib graph: https://replit.com/@throwthought/GroupRep#main.py

deprecated

  • unfortunately this code uses old end points and will need to be updated

ndbcbuoy.py

A python package to scrape NDBC NOAA data, display recent wave heights, or send a text based on user preferences. ie.) If the waves are over 3 feet you can configure the program to send a text message with the wave height/period.

  • BuoyData() : instantiate a buoy number
  • BuoyData.send_sms(): send a SMS based off user height preference
  • BuoyData.set_buoy(buoy#): change the buoy URL
  • BuoyData.display_wave_data(): matplotlib chart of recent swell data

wavemaps.py

Simple prompt to test ndbcbuoy.BuoyData functionality

Twilio

Usage

  • If you have git installed, run [ git clone https://github.com/CloudsWeight/wavemaps ]
  • Edit"send_text.py" with your auth_token and account_sid values.
  • Then cd into Wave-Maps and run main.py file from the command line [ python3 run.py ]

Concepts

Using data structured like this: https://www.ndbc.noaa.gov/data/realtime2/46224.txt

  • Pull down data from a .txt
  • Clean data using a dictionary and pandas DataFrame
  • Run tests on clean data
  • Display clean data
  • Send a text message if the data passes our tests.

In The Works

Working to display swell height and period inormation in an interactive chart with Django and Highcharts.

About

A python script to scrape NDBC NOAA data for wave data then sends a SMS text using the Twilio API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages