- Notifications
You must be signed in to change notification settings - Fork0
When you want to follow the snow, today.
License
jtarchie/followthesnow
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is the app that builds the static site for Follow the Snow. It goes througha list of ski resorts and locations to get the snow report (inches fallen).
Building the site will take awhile. The OpenWeather API is used to getinformation about current and upcoming snow conditions. They rate limit prettyheavily, so asleep is put in between every API call.
This will manually build the site.
bundle installrake build# or rake fastruby -run -ehttpd docs/ -p8000Then commit the changed pages, which will be deployed as a static site viaGithub Pages and Cloudflare.
The page is build every morning from 6am MST, so that latest snow totals for theday are available. This is usingGithub Actionsto do so.
Everything is tested because it should be.
bundle installbundleexec rspecAll the resorts are in CSV files inresorts/ by country. They are scraped viarake scrape from respective Wikipedia pages.
Exploring getting information from website via scraping. Haven't done it becauseit would cost money.
document.body.querySelectorAll("nav,header,footer,form,button,iframe,script,[role]",).forEach((node)=>node.remove());document.body.textContent.trim().replace(/\s+/g," ");
Using this content into an ChatGPT prompt:
Please identify the current conditions reported at the resort. Include detailsof snow depth, if the resort is open, etc. Please put it in a JSON format,where the keys are simple to infer camel case keys.
About
When you want to follow the snow, today.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.