# 📅 How to Update the Vaccination Bus Schedule ## Quick Update Guide To update the vaccination bus schedule **without touching any code**, simply edit the `schedule-data.js` file. ### 📁 File Location ``` schedule-data.js ``` ### 🎯 **CMS-Friendly Solution** This system uses a `.js` file instead of `.json` to work with CMS systems that don't allow JSON files. No MIME type issues! ### 🔧 How to Update 1. **Open** `schedule-data.js` in any text editor 2. **Edit** the schedule entries in the `schedule: [` array 3. **Save** the file 4. **Refresh** the webpage - changes appear immediately! ### 📝 Schedule Entry Format Each schedule entry has this structure: ```javascript {date: "2025-09-01", heading: "Måndagskarta - Bjärred Coop", url: "https://www.google.com/maps?hl=en&q=Coop%20Bjarred%2C%20Bjarred%2C%20Sweden&output=embed"} ``` ### 🚫 No Service Days For days with no vaccination service: ```javascript {date: "2025-09-02", heading: "Tisdagskarta - Ingen vaccination", url: "N/A"} ``` ### 🗺️ Google Maps URLs To get a new Google Maps embed URL: 1. Go to [Google Maps](https://maps.google.com) 2. Search for the location 3. Click "Share" → "Embed a map" 4. Copy the iframe src URL 5. Use that URL in the `url` field ### 📋 Example Updates #### Change a Location ```json // Before { "date": "2025-09-01", "heading": "Måndagskarta - Bjärred Coop", "url": "https://www.google.com/maps?hl=en&q=Coop%20Bjarred%2C%20Bjarred%2C%20Sweden&output=embed" } // After { "date": "2025-09-01", "heading": "Måndagskarta - Ny Butik", "url": "https://www.google.com/maps?hl=en&q=Ny%20Butik%2C%20Sweden&output=embed" } ``` #### Add a New Date ```json { "date": "2025-10-13", "heading": "Måndagskarta - Ny Plats", "url": "https://www.google.com/maps?hl=en&q=Ny%20Plats%2C%20Sweden&output=embed" } ``` ### ⚠️ Important Notes 1. **Date Format**: Always use `YYYY-MM-DD` format (e.g., "2025-09-01") 2. **Heading Format**: Follow the pattern `"Daykarta - Location"` (e.g., "Måndagskarta - Bjärred Coop") 3. **No Service**: Use `"url": "N/A"` and `"heading": "... - Ingen vaccination"` 4. **JSON Syntax**: Make sure to use proper JSON syntax (quotes, commas, brackets) 5. **File Encoding**: Save as UTF-8 to support Swedish characters (å, ä, ö) ### 🔄 Automatic Updates - Changes take effect **immediately** when you refresh the page - No server restart needed - No code changes required - The system automatically loads the new schedule data ### 🛡️ Backup The system includes a **fallback schedule** built into the code, so if the JSON file has errors, the system will still work with the original schedule. ### 📞 Support If you need help updating the schedule, contact the system administrator. --- **Last Updated**: 2025-01-09 **Version**: 1.0