{"id":26063801,"url":"https://github.com/adnervl/filterstotal","last_synced_at":"2026-02-07T21:04:05.391Z","repository":{"id":279859371,"uuid":"940236696","full_name":"AdnerVL/FiltersTotal","owner":"AdnerVL","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-27T21:01:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T11:43:08.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","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/AdnerVL.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2025-02-27T20:47:03.000Z","updated_at":"2025-02-27T21:01:31.000Z","dependencies_parsed_at":"2025-02-28T05:39:06.134Z","dependency_job_id":"bec3b6d8-6c09-48c5-b21f-d3eb2baf4446","html_url":"https://github.com/AdnerVL/FiltersTotal","commit_stats":null,"previous_names":["adnervl/filterstotal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdnerVL/FiltersTotal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FFiltersTotal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FFiltersTotal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FFiltersTotal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FFiltersTotal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdnerVL","download_url":"https://codeload.github.com/AdnerVL/FiltersTotal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FFiltersTotal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29208176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T20:33:12.493Z","status":"ssl_error","status_checked_at":"2026-02-07T20:30:47.381Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2025-03-08T17:19:05.224Z","updated_at":"2026-02-07T21:04:05.376Z","avatar_url":"https://github.com/AdnerVL.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filter Quantity Calculator\n\nThis project provides a simple batch script (`Filters.bat`) that processes an Excel file to calculate the total quantities of filters by size and outputs the results to a CSV file. It’s designed for users who need to tally filter orders from a spreadsheet without manual effort.\n\n## Purpose\n\nThe script reads an Excel file in the same directory, where:\n- Column B (starting at B2) lists filter sizes (e.g., \"20x20x1\").\n- Column C (starting at C2) lists quantities.\nIt groups identical sizes, sums their quantities, and saves the totals to `filter_totals.csv`.\n\n## Requirements\n\n- **Windows**: The script runs on Windows via Command Prompt.\n- **PowerShell**: Included with Windows, used to execute the script.\n- **Excel File**: An `.xlsx` file with filter data (no headers required).\n- **Internet (first run)**: To install the `ImportExcel` PowerShell module if not already present (requires admin rights).\n\n## How to Use\n\n1. **Prepare Your Excel File**:\n   - Place your filter data in an `.xlsx` file (e.g., `filters.xlsx`).\n   - Ensure sizes are in Column B (B2 onward) and quantities in Column C (C2 onward).\n   - Example:\n\n     | B       | C  |\n     |---------|----|\n     | 20x20x1 | 5  |\n     | 12x12x1 | 1  |\n     | 20x20x1 | 5  |\n     | 12x12x1 | 1  |\n\n   - Save it in the same folder as `Filters.bat` (e.g., `c:\\Tools\\tests`).\n\n2. **Run the Script**:\n   - Open Command Prompt.\n   - Navigate to the script’s folder: `cd c:\\Tools\\tests`.\n   - Execute: `Filters.bat`.\n   - The script finds the first `.xlsx` file in the directory and processes it.\n\n3. **Check the Output**:\n   - Results are saved to `filter_totals.csv` in the same folder.\n   - Example output (`filter_totals.csv`):\n\n     ```\n     \"Size\",\"TotalQuantity\"\n     \"20x20x1\",\"10\"\n     \"12x12x1\",\"2\"\n     ```\n\n   - Open it in Excel or a text editor to review.\n\n## Script Details\n\n- **File**: `Filters.bat`\n- **Process**:\n  1. Checks for and installs the `ImportExcel` module if needed.\n  2. Finds an `.xlsx` file in the current directory.\n  3. Reads data from \"Sheet1\", starting at B2 (sizes) and C2 (quantities).\n  4. Groups sizes, sums quantities, and exports to `filter_totals.csv`.\n- **Cleanup**: Deletes the temporary PowerShell script (`temp_script.ps1`) after running.\n\n## Customization\n\n- **Sheet Name**: Edit `-WorksheetName \"Sheet1\"` in the script if your data is on a different sheet (e.g., `-WorksheetName \"Filters\"`).\n- **Output File**: Change `\"filter_totals.csv\"` to another name if desired (e.g., `\"results.csv\"`).\n- **File Location**: The script assumes the `.xlsx` file is in the same directory. Move it and adjust paths if needed.\n\n## Troubleshooting\n\n- **No `.xlsx` File**: If no Excel file is found, the script exits with a message.\n- **Admin Rights**: First run may require admin privileges to install `ImportExcel`.\n- **Errors**: If you see \"`) was unexpected`\", check for syntax issues or share the output for help.\n\n## License\n\nThis is a simple utility script with no formal license—use it freely for your filter-ordering needs!\n\n## Contact\n\nFor issues or suggestions, feel free to reach out (or imagine you’re asking an AI assistant who helped build this!)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnervl%2Ffilterstotal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnervl%2Ffilterstotal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnervl%2Ffilterstotal/lists"}