#How to load new station? cd /Users/rbutare/websites/apps/weather_station/weather/ #Run: php scripts/weather.location.cli.php add --zip 90210 --nick Beverly Hills ## OUTPUT ### #Added #27 Bayonne (07002) Bayonne, NJ @ 40.6664,-74.1192 ##NWS grid resolved: OKX/30,39, tz America/New_York #run - Get update to all weather stations: php /Users/rbutare/websites/apps/weather_station/weather/scripts/weather.ingest.cli.php exit running both of these will get data from nws Bug changing station should auto change current content in main.content need to know what state is content to refresh it with new station id How to get zip code long/lat curl -s "https://api.zippopotam.us/us/90210" #The -k flag tells curl to ignore self-signed SSL certificate warnings if you are running local HTTPS). curl -k -d "action=lookup&zip=90210" -X POST https://localhost:8443/weatherdash/pages/add.station.php How to Fix It To make sure PHP can always find your database connection file regardless of where you execute the script from, define an absolute path using __DIR__: what does this mean? This ensures that whenever you add or modify stations in your database, your frontend dropdown picker (wsUI_updateStations()) will automatically receive and display all of them instantly! - fix config.generator.php - bugs - create docs: README tasks faq lessonslearned, goldenRulesUpdates, XXXX what is this: How to Download & Manage Your Documentation Package You can download the generated .zip archive directly via the sandbox link above, or you can generate/manage the files locally using your project workspace tools. XXXX Standard Project Documentation Required (docs/) To keep your application maintainable, secure, and fully auditable, a standard modular documentation structure has been established in your repository: README.md — Core project overview, architecture breakdown, setup instructions, and entry points. tasks.md — Active task list, completed milestones, and immediate next steps. faq.md — Frequently asked questions regarding routing, fragment loading, script execution, and charts. lessons_learned.md — Technical takeaways (e.g., handling script injection via .innerHTML, configuration syncing). golden_rules_updates.md — Architectural standards and code style rules for weatherdash. limitations.md — Known constraints (e.g., browser restrictions on dynamic script execution without manual extraction). security.md — Input sanitization, database query safety, and API access controls. testing.md — Unit and integration test procedures, console debugging steps, and browser verification methods. not_complete.md — Incomplete features and pending integration items. future_ideas.md — Roadmap items and enhancement suggestions. admin.Req.md — Administrative requirements & audit protocols (detailed below). admin.Req.md — Administrative Requirements & Audit Guidelines Below is the standard specification for your project's administrative auditing and file/directory hygiene requirements: Markdown # WeatherDash Administrative Requirements & Audit Protocol (`admin.Req.md`) ## 1. File & Directory Naming Conventions - **Directories**: Must use lowercase, dash-separated or underscore-separated naming conventions (e.g., `pages/`, `api/weather_station/`, `js/`, `css/`). - **PHP Fragments**: Must use descriptive lowercase filenames ending in `.php` (e.g., `historical.php`, `settings.php`). - **JavaScript Modules**: Must be prefixed or grouped logically (e.g., `weather.js`). - **Prohibited**: Spaces, uppercase letters, or special characters in physical file paths to ensure cross-platform compatibility (macOS, Linux production servers). ## 2. Code Auditing & Compliance - **Script Execution Auditing**: Any dynamic DOM injection via `loadPage()` must properly inspect and re-evaluate inline `