{"id":20324937,"url":"https://github.com/mainsail-crew/sonar","last_synced_at":"2025-10-08T09:54:01.480Z","repository":{"id":40559776,"uuid":"468813063","full_name":"mainsail-crew/sonar","owner":"mainsail-crew","description":"Sonar is a small Keepalive daemon for MainsailOS.","archived":false,"fork":false,"pushed_at":"2025-04-07T20:55:44.000Z","size":127,"stargazers_count":94,"open_issues_count":5,"forks_count":19,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-10-03T05:02:57.045Z","etag":null,"topics":["mainsailos","raspberry-pi","wifi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mainsail-crew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2022-03-11T15:58:21.000Z","updated_at":"2025-08-11T21:24:15.000Z","dependencies_parsed_at":"2025-05-19T16:10:50.813Z","dependency_job_id":"ec32200c-6a24-443c-95fc-d56521f9c87b","html_url":"https://github.com/mainsail-crew/sonar","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mainsail-crew/sonar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainsail-crew%2Fsonar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainsail-crew%2Fsonar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainsail-crew%2Fsonar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainsail-crew%2Fsonar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainsail-crew","download_url":"https://codeload.github.com/mainsail-crew/sonar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainsail-crew%2Fsonar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278561274,"owners_count":26006954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["mainsailos","raspberry-pi","wifi"],"created_at":"2024-11-14T19:38:14.018Z","updated_at":"2025-10-08T09:54:01.453Z","avatar_url":"https://github.com/mainsail-crew.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonar\n\nA small Keepalive daemon for MainsailOS (or any other Raspberry Pi OS based\nImage).\n\n---\n\n## Install\n\n    git clone https://github.com/mainsail-crew/sonar.git\n    cd ~/sonar\n    make config\n    sudo make install\n\n## Uninstall\n\n    cd ~/sonar\n    make uninstall\n\n## Updating via moonraker update manager\n\nSimply add\n\n    [update_manager sonar]\n    type: git_repo\n    path: ~/sonar\n    origin: https://github.com/mainsail-crew/sonar.git\n    primary_branch: main\n    managed_services: sonar\n    install_script: tools/install.sh\n\nto your moonraker.conf\n\n## Configuration\n\nYou can configure its behavior using a file in\n\"~/printer_data/config/sonar.conf\". But you don't have to. Defaults are\nhardcoded and Sonar will run without any configuration.\n\n_**Hint: The Sonar's configuration file syntax is based on [TOML](https://toml.io/en/)\nother than in TOML colons are also valid (and prettier). Therefore, a leading\nsection descriptor is crucial!**_\n\n    [sonar]\n\n### Options\n\n    enable: true\n\nIf set to \"false\" service will exit on startup, use this option to disable Sonar\nservice. It will restart on reboot but exiting as long you don't change it to\n\"true\".\n\n    debug_log: false\n\nIf set to \"true\" service will log every attempt to reach its target.\n**_NOTE: That will highly increase log size, this is intended for debugging\npurposes only._**\n\n    persistent_log: false\n\nThis option allows you to store a persistent log file \"/var/log/sonar.log\".\nOtherwise, it will be only readable by `journalctl -u sonar` and it's _not_\npersistent!\n\n    target: auto\n\nYour target defines which of your network devices should be the target of used\n`ping` command. You can use either IP Address or a URL. `auto` will ping your\ndefault gateway (router).\n**_INFO: Avoid using prefixes like https:// or http://_**\n\n    count: 3\n\nNumber of ping attempts.\n\n    interval: 60\n\nSets interval in seconds, how long it should wait for next connection check.\n\n    restart_threshold: 10\n\nDelay in seconds before attempting to restart the WiFi connection after a\nconnection loss.\n\n---\n\nThat's it. It isn't the best method to keep your WiFi up and running, but it is\nthe easiest solution without changing firmware files or similar.\n\nI hope you will find sonar useful, and it blows away your connection lost :)\n\n### Contributing\n\nSee [How to contribute?](https://github.com/mainsail-crew/sonar/blob/main/.github/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainsail-crew%2Fsonar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainsail-crew%2Fsonar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainsail-crew%2Fsonar/lists"}