{"id":49575129,"url":"https://github.com/rollecode/open-webui-time-awareness","last_synced_at":"2026-05-03T16:10:53.143Z","repository":{"id":306274483,"uuid":"1020971149","full_name":"rollecode/open-webui-time-awareness","owner":"rollecode","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-24T14:48:37.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-02T13:33:31.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rollecode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-16T17:13:01.000Z","updated_at":"2025-07-24T14:48:40.000Z","dependencies_parsed_at":"2025-07-24T19:30:30.019Z","dependency_job_id":"2f63ce58-16f4-416d-81d8-bb782a7dda7a","html_url":"https://github.com/rollecode/open-webui-time-awareness","commit_stats":null,"previous_names":["ronilaukkarinen/open-webui-time-awareness","rollecode/open-webui-time-awareness"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rollecode/open-webui-time-awareness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fopen-webui-time-awareness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fopen-webui-time-awareness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fopen-webui-time-awareness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fopen-webui-time-awareness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rollecode","download_url":"https://codeload.github.com/rollecode/open-webui-time-awareness/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fopen-webui-time-awareness/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-03T16:10:52.716Z","updated_at":"2026-05-03T16:10:53.137Z","avatar_url":"https://github.com/rollecode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🕙 Open WebUI Time Awareness function\n\n### An [Open WebUI](https://github.com/open-webui/open-webui) filter that automatically adds time context to user messages, enabling AI assistants to be aware of the current time and date in conversations.\n\n![Open WebUI](https://img.shields.io/badge/Open%20WebUI-222222?style=for-the-badge\u0026logo=data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGhlaWdodD0iMWVtIiBzdHlsZT0iZmxleDpub25lO2xpbmUtaGVpZ2h0OjEiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNy42OTcgMTJjMCA0Ljk3LTMuOTYyIDktOC44NDkgOUMzLjk2MiAyMSAwIDE2Ljk3IDAgMTJzMy45NjItOSA4Ljg0OC05YzQuODg3IDAgOC44NDkgNC4wMyA4Ljg0OSA5em0tMy42MzYgMGMwIDIuOTI4LTIuMzM0IDUuMzAxLTUuMjEzIDUuMzAxLTIuODc4IDAtNS4yMTItMi4zNzMtNS4yMTItNS4zMDFTNS45NyA2LjY5OSA4Ljg0OCA2LjY5OWMyLjg4IDAgNS4yMTMgMi4zNzMgNS4yMTMgNS4zMDF6Ij48L3BhdGg+PHBhdGggZD0iTTI0IDNoLTMuMzk0djE4SDI0VjN6Ij48L3BhdGg+PC9zdmc+Cg==)\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54) ![Version](https://img.shields.io/badge/version-0.4.0-blue?style=for-the-badge)\n\n## ✨ Features\n\n- **Automatic time injection**: Seamlessly adds current time context to user messages\n- **Timezone awareness**: Supports user-specific and system timezone configuration\n- **Image generation friendly**: Automatically detects and skips image generation requests\n- **Multimodal support**: Handles text and image content properly\n- **ComfyUI integration**: Supports ComfyUI workflow detection\n- **User customization**: Configurable through user valves\n- **Privacy-focused**: No external API calls, all processing happens locally\n\n## 🧠 How it works\n\nThe filter automatically injects time context into user messages, allowing AI assistants to:\n- Understand when messages are sent\n- Provide time-relevant responses\n- Format dates and times appropriately\n- Consider context like \"today\", \"yesterday\", \"this week\", etc.\n\n## 📦 Installation\n\n1. Add `time-awareness.py` to your Open WebUI Functions\n2. Ensure dependencies are installed:\n   ```bash\n   pip install beautifulsoup4 lxml\n   ```\n\n## ⚙️ Configuration\n\n### System Valves\n- **Timezone**: Default system timezone (e.g., \"UTC\", \"Europe/Helsinki\")\n- **Priority**: Filter execution priority (default: -10)\n\n### User Valves\n- **Timezone**: Personal timezone override\n- **Enabled**: Toggle to enable/disable the filter per user\n- **Disable for Image Generation**: Skip time injection for image generation requests (default: true)\n\n## 🔧 Dependencies\n\n- `beautifulsoup4` - For parsing HTML/XML content\n- `lxml` - XML parser for BeautifulSoup (install with `pip install lxml`)\n\n## 📝 Example\n\nWhen a user sends: \"What's the weather like today?\"\n\nThe filter automatically adds time context:\n```xml\n\u003cdetails type=\"filters_context\"\u003e\n\u003csummary\u003eFilters context\u003c/summary\u003e\n\u003ccontext id=\"time_awareness\"\u003e\n\u003ctime timezone=\"Europe/Helsinki\" format=\"%a %d %b %Y, %H:%M:%S\"\u003e\n\u003c!-- System timezone --\u003eMon 16 Jul 2025, 20:15:30\n\u003c/time\u003e\n\u003c/context\u003e\n\u003c/details\u003e\n```\n\n## 🐛 Troubleshooting\n\n### Common Issues\n\n1. **BeautifulSoup XML parser error**: Install lxml with `pip install lxml`\n2. **Timezone not recognized**: Check timezone is in `zoneinfo.available_timezones()`\n3. **Multimodal content error**: Update to latest version with multimodal support\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n\n## 🙏 Acknowledgments\n\nInspired by the need for time-aware AI conversations in Open WebUI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollecode%2Fopen-webui-time-awareness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollecode%2Fopen-webui-time-awareness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollecode%2Fopen-webui-time-awareness/lists"}