405 Tackle & Fly keystone logo
405 Tackle & Fly5115 PA-405, Milton, Pennsylvania · Fly fishing, fly tying & conventional tackle
405tackleandfly.com

Technical overview · Site features

Building 405 Tackle & Fly

A custom WordPress build that treats a small-town fly shop like a live instrument panel for Central PA water: a sky that matches the real weather, sun and moon over Milton; 17 live USGS river gauges translated into plain-English fishing ratings; hatch intelligence by stream and date; and an app-style phone experience. All of it can be edited by the owners without touching code.

Screenshot of the 405 Tackle and Fly homepage hero with a midday sky, live info bar, and stat cards for air temperature, wind, West Branch flow and sunset
The homepage hero, rendered by the live-sky engine (midday, clear)
17live USGS river & stream gauges
15 minserver refresh cycle, with last-good fallback
29registered shortcodes
10custom REST endpoints
171owner-editable text, photo & setting fields
21hatches in the Central PA hatch database
4live data sources: USGS, NWS, sun & moon math, shop hours
7,400+lines of custom plugin code
LIVE · RIGHT NOW

On the water today

These cards are pulling straight from the U.S. Geological Survey as you read this, then running through the same rating rules the 405 site uses. Flow gauges are rated by cubic feet per second; gauges that only report height (like upper Fishing Creek) are rated by feet.

Loading live readings from USGS…

MODULE 01 · SIGNATURE FEATURE

A sky that matches the real sky over Milton

The homepage hero is drawn live in the browser. The sun sits where it actually is in the sky right now, the moon shows tonight's real phase, and the clouds, rain, snow, fog and wind follow the latest National Weather Service observation for Milton. These are real screenshots from the live site:

Homepage hero before sunrise: violet sky, setting moon, soft clouds
6:55 AM, partly cloudy: violet pre-dawn light with the real moon phase setting in the west.
  1. 1 · Sun positionSunrise, sunset and twilight are calculated for Milton's latitude and longitude every day. The sky gradient moves through night, blue hour, golden hour and full day as the sun climbs.
  2. 2 · Moon phaseThe moon's age is computed from a known new moon and the 29.53-day lunar cycle, then drawn with the correct lit fraction.
  3. 3 · NWS weatherThe latest observation from the nearest National Weather Service station sets cloud cover, rain, snow, fog, storms and wind drift (cached 10 minutes).
  4. 4 · River readingThe headline West Branch flow and its fishing rating ride along in the hero's stat cards.
  5. 5 · Respectful motionVisitors who ask their device for reduced motion get a still sky, and everything degrades to a static scene without JavaScript.

Try it: sky simulator

Sun elevation: –Sunrise – · Sunset –Moon tonight: –Sky: –

This demo uses the same sun and moon math as the live site, for today's date in Milton. The production hero adds layered hills and pines, wind-driven clouds, puddle splashes and an Easter-egg trout.

INTERACTIVE · 3 BENCHES

See the logic at work

Three small working models of systems that run on the 405 site: the fishing-rating engine, the open/closed engine behind the info bar, and the app-style phone experience.

Bench 1 · Rating engine

River rating & 7-day hydrograph

Pick a gauge to load its last 7 days from USGS, drawn against that water's "good flows" band. Drag the slider to see how the site would rate any flow.

––
Good flows bandAbove idealHigh & off-colorLast 7 days (USGS)
Bench 2 · Hours engine

Open-now status

The info bar reads the shop's weekly hours and holiday overrides, then works out a friendly status. Pick a day and time:

–
Bench 3 · Mobile

Built like an app

Phone view: live info bar, keystone logo with business name, hero, and the bottom tab bar with Home, Fly, Conventional, Water and Contact
Bottom tab bar + live info bar
Phone view of the custom Fly Box menu: page list with icons and one-line descriptions, open status, and call and directions buttons
"The Fly Box" menu
SYSTEM MODULES

What's under the hood

The build is a custom WordPress plugin made for 405, layered on the Colibri page builder. Each card is a feature that runs on the live site today.

01 Live Sky Hero

CanvasNWS APISolar & lunar math

Real sun, real moon

LIVE

The sky colour, sun position, twilight and moon phase are computed for Milton's coordinates and today's date, server-side for the first paint and then animated in the browser.

date_sun_info()Synodic month
[hatchflow_live_hero]

Weather-driven scene

LIVE

The nearest NWS station's latest observation drives clouds, rain, snow, fog, thunderstorms and wind drift. A preview mode lets the owners and us test any time and weather.

api.weather.gov10-min cache
/?hftime=21:30&hfsky=snow

Hero stat cards

CORE

Air temperature, wind, the headline West Branch flow with its fishing rating, and the next sunrise or sunset, all editable labels.

RESTTransients
GET /wp-json/stream-levels/v1/now

02 Live Info Bar & Hours Engine

Holiday overridesSchema.org

Always-on info bar

LIVE

Every page opens with the town, open/closed status, local time, air temperature and conditions, wind, and the West Branch reading with its rating.

Sticky headeraria-live
[shop_status]

Hours & holidays

CORE

Weekly hours plus date-specific holiday hours or closures. The status, hours table, holiday banner and Google business data all update from one settings screen.

Shop info & hours
[shop_hours] [shop_holiday_notice]

Contact shortcuts

CORE

Address, phone and email blocks, a visit card with map and directions, and a "come see us" band whose heading changes per page.

tel: linksMaps
[hatchflow_visit] [hatchflow_visit_cta]

03 River Data Engine

USGS Water DataWP-CronFallbacks

17 gauges, kept warm

LIVE

A 15-minute background job refreshes every gauge, so pages never wait on USGS. If USGS stumbles, the last good reading is shown with its time rather than an error.

hf_15min scheduleLast-good cache
GET /wp-json/stream-levels/v1/data/01555000?period=P7D

River cards & sparklines

CORE

Each card shows the flow or height, trend arrow, 7-day sparkline and update time. Gauges on the same creek sit side by side, and each page chooses its own gauges by checkbox.

SVGSwipe on phones
[hatchflow_river_cards sites="01553500,01551500"]

Great Lakes group

CORE

Walnut Creek, Conneaut Creek and the Salmon River live in their own "Great Lakes steelhead" section, kept out of the local lists and the map's opening view.

GroupingMap framing
gauges_water2 = 04213152,04213000,04250200

Gauge watch list

CORE

Offline gauges (like Elk Creek in Erie) are checked once a day. When USGS brings one back, the site adds it, places it in the right list and leaves a Dashboard note.

Self-healingAdmin notice
Watch: 04213080 → Great Lakes steelhead

Accessible data views

CORE

Beyond the cards: a plain conditions table that needs no JavaScript, a hydrograph with a scrubber, a comparison view and a ticker.

TablesNo-JS friendly
[stream_conditions_table sites="all"]

Owner-managed gauges

CORE

Adding a river means typing its USGS number in Rivers & gauges, with its fishing ranges, target species and gear tips for each water level.

Station managerREST
POST /wp-json/stream-levels/v1/stations

04 Fishing Rating Engine

Plain EnglishPer-water thresholds

Flow ratings

CORE

Every gauge has its own "good flows" range and blow-out point, set by the shop. The site turns raw cfs into Low & clear, Good flows, Above ideal or High & off-color.

Low & clearGood flowsAbove idealHigh & off-color

Height-only gauges

CORE

Some USGS gauges report water height but not flow. Those are rated by feet instead, with levels calibrated against a year of readings from the nearest flow gauge.

Upper Fishing CreekLower Muncy Creek
01538720: good 3.0–3.65 ft · high ≥ 3.9 ft

Flood watch & wading

CORE

Big-river gauges use National Weather Service flood stages, and each gauge carries safe-wading and caution heights, with gear tips for low, good and high water.

High water – flood watch
[hatchflow_flow_guide]

05 Interactive Map

LeafletArcGIS topo tiles

Live flow pins

LIVE

Every gauge appears as a pill showing its current reading and a colour-coded dot. Each pin's pointer was measured to land within half a pixel of the official USGS coordinates.

Pixel-checked
[stream_map sites="all" zoom="9"]

Search, filters, layers

CORE

Search by river, county or species; filter to good, low or high water; switch between topo, satellite, streets, relief and a dark map.

TopoSatelliteDark

Local-first framing

CORE

The map opens on the Milton-area rivers. Far-away Great Lakes gauges stay one "Fit All" tap away instead of shrinking everything into a corner.

fitBounds hook

06 Hatch Intelligence

21 hatchesLimestone & freestone

Match the hatch

CORE

Pick a stream and a date to see what is hatching, with hook sizes, time of day, flies to bring and local notes, plus that stream's live flow rating.

Water-type aware
[match_the_hatch default_stream="01555000"]

Season at a glance

CORE

The full Central PA hatch chart as an accessible table, from midges and Hendricksons to the Green Drake, tricos and fall BWOs.

Accessible table
[hatch_chart water="all"]

Shop-edited hatch list

CORE

The owners add, edit and reorder hatches, dates, hook sizes and fly lists on one admin screen. Changes appear on the site right away.

Hatch chart editor

07 Species Guide & Illustration Set

8 custom illustrationsSVG → WebP
Parachute Adams dry fly illustration
Parachute Adams
Elk Hair Caddis illustration
Elk Hair Caddis
Bead-head Pheasant Tail nymph illustration
Pheasant Tail Nymph
Olive Woolly Bugger streamer illustration
Woolly Bugger
Perch-pattern crankbait illustration
Crankbait
Topwater popper illustration
Popper
Inline spinner illustration
Inline spinner
Jig and curly-tail grub illustration
Jig & grub

Drawn in code, tied right

CORE

Each fly and lure is generated as layered SVG, with individual hackle and marabou fibres, real dry-fly hook geometry, split-ring trebles and a point-up jig hook, then exported to WebP.

SVGWebPRetina

Species guide

CORE

Smallmouth, largemouth, panfish, musky, walleye and trout on spinners: where, when and how, each card illustrated. The owners can add or remove species from the dashboard.

[hatchflow_species]

Cache-proof images

CORE

Illustration and page-builder photo addresses carry a version stamp, so a replaced image shows up for every visitor right away instead of an old saved copy.

lure-crankbait.webp?v=1796133717

08 Mobile App Experience

Mobile-firstWeb app manifest

Bottom tab bar

CORE

Home, Fly, Conventional, Water and Contact sit under the thumb on every page, like a native app, with editable labels and 44-pixel touch targets.

44px targetsSafe areas

"The Fly Box" menu

CORE

The custom mobile menu with icons, one-line descriptions, live open status and big Call and Directions buttons.

Focus-trapped dialogEsc to close

Compact header & swipe rows

CORE

A keystone logo with the business name, a compact live info bar, and swipeable river cards and photo strips. It was checked at 360, 390 and 1280 pixels for zero sideways scrolling.

scroll-snap
GET /wp-json/stream-levels/v1/manifest

09 Photography & Showcase

Real shop photosLazy-loaded
Angler fly fishing a waterfall plunge pool on a Pennsylvania mountain stream Fly tying bench with vises and thread at 405 Tackle and Fly Soft plastic lures, scented baits and rods at 405 Tackle and Fly

Showcase photo band

CORE

A full-width feature photo with a caption, placed between page sections. The owners pick the photo, page and position from a dropdown.

[hatchflow_showcase]

"Inside the shop" strips

CORE

Rows of shop photos that swipe on phones. Each photo has its own caption, order and page.

[hatchflow_shop_photos page="137"]

Community band

CORE

Rewards sign-up, Square gift cards and a suggestion box that feeds the Forminator form.

[hatchflow_community] [hatchflow_feedback]

10 Owner Control Panel

No-code171 fields6 admin screens

"Edit Website" menu

CORE

One plain-English menu: Start here, Shop info & hours, Page text & pictures, Labels & small text, Hatch chart, and Rivers & gauges. It's mirrored on the Dashboard and the admin bar.

Dashboard widgetAdmin bar

Every word is editable

CORE

171 fields across 21 sections, including 5 reorderable lists, cover every heading, photo and button. A label catalogue picks up even the small text, so nothing is stuck in code.

Image pickerCheckbox gauge lists

Safe switches

CORE

Email signups sit behind one on/off switch (off for launch), and the Square gift card link, holiday hours and page placements are all simple settings.

Feature flags

11 Accessibility

WCAG 2.2 AA target

Built in, not bolted on

CORE

One H1 per page, labelled landmarks, visible focus, 44-pixel touch targets, reduced-motion support and live regions for changing readings.

Semantic HTMLaria-live

Readable data

CORE

Every chart has a text equivalent and every rating is written in words, not just colours, with an accessible table version of the river data.

Colour + text

Visitor controls

CORE

An on-page accessibility button offers contrast and text options, backed by a published Accessibility Statement.

12 Search & AI Discoverability

Yoast SEOJSON-LDllms.txt

Local SEO defaults

CORE

Every page ships with a search title and description written for local search. Anything the owners type into Yoast takes priority.

wpseo_titlewpseo_metadesc

Store schema

CORE

SportingGoodsStore structured data with the address, map location, weekly and holiday hours, phone and social profiles, all generated from the shop settings.

"@type": "SportingGoodsStore"

Live /llms.txt

LIVE

A plain-text guide for AI assistants, built on request from live data: hours, upcoming holiday hours, page summaries and every gauge's current reading and rating.

https://405tackleandfly.com/llms.txt
ARCHITECTURE

How the data flows

Four live sources feed one cached engine inside WordPress. Every page reads from that cache, so the site stays fast even when a government API is slow.

405 Tackle & Fly data flow USGS gauges, National Weather Service observations, sun and moon calculations, and the shop's hours feed the site's data engine, which caches readings every 15 minutes with a last-good fallback and serves the hero, info bar, river cards, map, hatch tool, structured data and llms.txt. USGS Water DataNational Weather ServiceSun & moon mathShop info & hours 17 gauges · flow, height, templatest observation · 10-min cacheMilton lat/long · lunar cycleweekly + holiday overrides Site data engine 15-min WP-Cron refresh · transientslast-good fallback · rating rules10 REST endpoints · 29 shortcodesgauge watch list · daily check Live sky heroInfo bar & open statusRiver cards & sparklinesMap pins & filtersMatch the hatch ratingsStore schema & Yoast/llms.txt for AI assistants
FROM THE LIVE SITE

Screens

REFERENCE

Shortcode cheatsheet

All 29 registered shortcodes. Colibri lays out the pages; these drop the custom features in anywhere.

On a phone, swipe the table sideways.

29 shortcodes
ShortcodeWhat it doesKey attributes
Live sky & shop
[hatchflow_live_hero]Live sky hero with weather, sun, moon and river stats.–
[shop_status]Open/closed status line.–
[shop_hours]Weekly hours.–
[hatchflow_hours]Hours table with today highlighted.–
[shop_holiday_notice]Banner for upcoming holiday hours or closures.–
[shop_address]Street address block.–
[shop_phone]Tap-to-call phone link.–
[shop_email]Email link.–
[hatchflow_visit]Visit card: address, map, hours, call and directions.heading
[hatchflow_visit_cta]"Come see us" band with a per-page heading and line.–
Rivers & streams
[hatchflow_river_cards]River cards with rating, trend and sparkline; each page's gauges are picked by checkbox.sites limit cta fixed
[hatchflow_flow_guide]How to read the gauges and ratings.–
[stream_map]Interactive map with live pins, search, filters and layers.sites height zoom
[stream_gauge]Single gauge with an animated river cross-section.site style animated
[stream_hydrograph]Flow chart with a time scrubber.site period scrubber
[stream_dashboard]Dashboard of gauges.sites style
[stream_comparison]Side-by-side comparison of gauges.sites
[stream_conditions_table]Plain, accessible conditions table (no JavaScript needed).sites
[stream_ticker]Scrolling readings ticker.sites
[stream_banner]Single-gauge banner.site
Fishing
[match_the_hatch]Stream-and-date hatch finder with the live rating.default_stream heading
[hatch_chart]Season hatch chart as an accessible table.water
[hatchflow_species]Species guide cards with illustrations.–
Pages, photos & community
[hatchflow_page_intro]Page intro text with jump links.page
[hatchflow_anchor]Jump-link target inside a page.id
[hatchflow_showcase]Full-width showcase photo band with caption.–
[hatchflow_shop_photos]"Inside the shop" photo strip for a page.page
[hatchflow_community]Suggestions, rewards and gift cards band.–
[hatchflow_feedback]Intro copy beside the Forminator feedback form.form
↑ TOP