{"id":48891139,"url":"https://github.com/mgalde/hexcheck","last_synced_at":"2026-04-16T08:03:48.246Z","repository":{"id":201080607,"uuid":"706919889","full_name":"mgalde/HexCheck","owner":"mgalde","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-21T17:23:21.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-21T18:37:54.856Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgalde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-10-18T21:34:49.000Z","updated_at":"2023-10-18T23:53:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa2d2bea-aab2-422d-9d13-0cc8783f10d3","html_url":"https://github.com/mgalde/HexCheck","commit_stats":null,"previous_names":["mgalde/hexcheck"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mgalde/HexCheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalde%2FHexCheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalde%2FHexCheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalde%2FHexCheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalde%2FHexCheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgalde","download_url":"https://codeload.github.com/mgalde/HexCheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalde%2FHexCheck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31876853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"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":"2026-04-16T08:03:43.415Z","updated_at":"2026-04-16T08:03:48.237Z","avatar_url":"https://github.com/mgalde.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HexCheck - Network Visualization Tool\n\n`HexCheck` is a graphical tool built with `tkinter` in Python that provides a visual representation of server statuses using hexagonal tiles.\n\n## Features\n\n1. **Dynamic Server Configuration**: Load server configurations from a file, allowing for easy modification and expansion.\n2. **Ping Check**: Determine if a server is alive using the `ping` command.\n3. **Port Check**: Test if a specific port is open on the server.\n4. **Visual Feedback**:\n   - Hexagon turns **red** if the server is not reachable.\n   - Hexagon turns **green** if the server is alive and the specified port is open.\n   - Hexagon turns **blue** if the server is alive but the specified port is closed.\n5. **Dynamic Hexagon Positioning**: Hexagons are positioned dynamically based on screen width. If there are too many hexagons for one row, they wrap to the next row.\n6. **Interactive UI**:\n   - Right-click context menu with options to toggle fullscreen mode or exit the application.\n   - Periodic automatic updates to refresh server status.\n7. **Modern Font \u0026 Design**: Uses modern fonts available on Windows for a sleek look.\n\n## Code Breakdown\n\n- **Utility Functions**:\n  - `is_host_alive(ip)`: Checks if a host is alive using the `ping` command.\n  - `is_port_open(ip, port, timeout=1)`: Checks if a specific port is open on a given IP.\n  - `get_hexagon_status_color(ip, port)`: Determines the color of a hexagon based on server and port status.\n  \n- **Visualization Functions**:\n  - `draw_hexagon(canvas, x, y, size, fill_color, name)`: Draws a single hexagon on the canvas.\n  - `update_hexagon_color(x, y, size, fill_color, canvas_item)`: Updates the color of an existing hexagon.\n  - `draw_all_hexagons(canvas, servers)`: Draws all hexagons based on the provided server list.\n  - `adjust_canvas_size(canvas, servers)`: Adjusts the canvas size to fit all hexagons.\n\n- **Configuration Management**:\n  - `parse_config(filename)`: Parses a configuration file to obtain a list of servers.\n\n- **UI Event Handlers**:\n  - `update_canvas()`: Periodically updates the status of all servers and refreshes their colors.\n  - `toggle_fullscreen(event=None)`: Toggles the application between fullscreen and windowed mode.\n  - `create_context_menu(event)`: Displays a context menu on right-click.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgalde%2Fhexcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgalde%2Fhexcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgalde%2Fhexcheck/lists"}