{"id":13721674,"url":"https://github.com/miqueet/helium_miner_scripts","last_synced_at":"2025-05-07T14:30:38.803Z","repository":{"id":46717869,"uuid":"281685967","full_name":"miqueet/helium_miner_scripts","owner":"miqueet","description":"This repo was made out of the need to auto update DIY helium miners","archived":false,"fork":false,"pushed_at":"2021-09-28T19:02:08.000Z","size":139,"stargazers_count":46,"open_issues_count":0,"forks_count":32,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-30T16:06:41.349Z","etag":null,"topics":["cron","curl","docker","helium","jq","linux","miner"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/miqueet.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}},"created_at":"2020-07-22T13:31:48.000Z","updated_at":"2024-10-09T07:43:51.000Z","dependencies_parsed_at":"2022-07-26T13:32:32.756Z","dependency_job_id":null,"html_url":"https://github.com/miqueet/helium_miner_scripts","commit_stats":null,"previous_names":["miqueet/helium_miner_scripts","wheaties466/helium_miner_scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miqueet%2Fhelium_miner_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miqueet%2Fhelium_miner_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miqueet%2Fhelium_miner_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miqueet%2Fhelium_miner_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miqueet","download_url":"https://codeload.github.com/miqueet/helium_miner_scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788521,"owners_count":21804285,"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","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":["cron","curl","docker","helium","jq","linux","miner"],"created_at":"2024-08-03T01:01:20.036Z","updated_at":"2025-05-07T14:30:38.438Z","avatar_url":"https://github.com/miqueet.png","language":"Shell","funding_links":[],"categories":["Software"],"sub_categories":["DIY Hotspots"],"readme":"# Helium miner update script\nThis script will automatically detect if that latest docker image is running and if this is not the case it will update to the latest docker image.\n\n# For the Validator scripts, see the /Validator directory\n\n# If this guide/script helped you please consider donating HNT the following address\n```\n13UcQB9B867b6Fp6cwtKgzxfwrr61sbxMpPsXChqPYRr9iFoTar\n```\n\n## Setup\n\n```\n$ git clone https://github.com/Wheaties466/helium_miner_scripts\n$ cd helium_miner_scripts/\n```\nThen run any of the scripts.\n\n## Updating the repo/script to get the lastest version of the script\n\n```\n$ cd helium_miner_scripts/\n$ git pull\n```\nafter you're in the same directory as the script and do a git pull. It will let you know if it is up to date or not. \n\n# Dependencies\nFollowing dependencies shall be met:\n\n- Curl\n- jq\n```\n$ sudo apt install curl jq -y\n```\nMake sure the user that is running the script is allowed to run docker. Either add the user to the docker group or run the scipt as root. See: https://docs.docker.com/engine/install/linux-postinstall/\n\n# Configuration\nAfter cloning this repository make the script executable:\n\n```\n$ chmod +x miner_latest.sh\n$ sudo touch /var/log/miner_latest.log\n\n```\n\n## Change architecture \nCurrently it is setup to use arm64 version, but it can be easily modified to use the amd64 docker image build by modifying the ARCH variable to equal ``amd`` instead of ``arm``.\n\n## Change region\nBy default the script is configured for US915 frequencies. To use the miner in other regios like EU868 the script shall be changed by adding the `` --env  REGION_OVERRIDE=EU868`` to the line with ``docker run``:\n\n```\ndocker run -d --env REGION_OVERRIDE=EU868 --restart always --publish 1680:1680/udp --publish 44158:44158/tcp --name miner --mount type=bind,source=/home/pi/miner_data,target=/var/data quay.io/team-helium/mi$\n```\n\n# Script useage\n\n```\n$ ./miner_latest.sh\n```\n\nThis can be called from a cron or ran in a shell.\n\n## Using cron\nAdd the following lines to your crontab using ``sudo crontab -e`` to run the script daily at 1 o clock at night:\nThe second line updates this repo on a regular basis.\n\n```\n# Check for updates on miner image every night at 1 o clock\n\n# Use whatever path you have your repo setup with.\n# If you need to test your cron you can use the following site and add \"\u0026\u0026 curl -s 'https://webhook.site/#!/~'\" to the end of your cron and it will make a web request to your specific url when it completes.\n0 */4 * * * /home/pi/helium_miner_scripts/miner_latest.sh 2\u003e\u00261 \u003e\u003e /var/log/miner_latest.log\n```\n\n# Extra\n\nCheck if your miner is running and receiving data from your gateway:\n```\n$ docker exec miner tail -f /var/log/miner/console.log | grep \"lora\"\n```\n\nCheck progress of your miner on the blockchain:\n```\n$ docker exec miner miner info height\n```\n\nCheck connectivity of your miner:\n```\n$ docker exec miner miner peer book -s\n```\nCheck the current running miner version\n```\n$ docker container inspect -f '{{.Config.Image}}' miner | awk -F: '{print $2}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiqueet%2Fhelium_miner_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiqueet%2Fhelium_miner_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiqueet%2Fhelium_miner_scripts/lists"}