{"id":27245897,"url":"https://github.com/stargate01/smartfield-firmware","last_synced_at":"2026-04-25T12:36:32.006Z","repository":{"id":76774374,"uuid":"357283162","full_name":"StarGate01/smartfield-firmware","owner":"StarGate01","description":"Firmware for a smart garden plot, based on a HTCC-AB01 LoRa board","archived":false,"fork":false,"pushed_at":"2021-05-25T16:56:52.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T21:36:29.580Z","etag":null,"topics":["arduino","lora","lorawan","smart-garden"],"latest_commit_sha":null,"homepage":"","language":"C++","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/StarGate01.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-12T17:32:40.000Z","updated_at":"2021-05-25T16:56:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"27a37638-daf8-4b61-9883-5e2763235f9b","html_url":"https://github.com/StarGate01/smartfield-firmware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StarGate01/smartfield-firmware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fsmartfield-firmware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fsmartfield-firmware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fsmartfield-firmware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fsmartfield-firmware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarGate01","download_url":"https://codeload.github.com/StarGate01/smartfield-firmware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fsmartfield-firmware/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["arduino","lora","lorawan","smart-garden"],"created_at":"2025-04-10T21:29:45.638Z","updated_at":"2026-04-25T12:36:31.996Z","avatar_url":"https://github.com/StarGate01.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smartfield-firmware\nFirmware for a smart garden plot, based on a HTCC-AB01 LoRa board.\n\n## Hardware overview\n\n - Board: **CubeCell HTCC-AB01 ASR605x** (ARM Cortex M0+ \u0026 SX1262 LoRa)\n   - [Documentation](https://heltec.org/project/htcc-ab01/)\n   - [Arduino implementation](https://github.com/HelTecAutomation/CubeCell-Arduino)\n\n - Air temperature and humidity sensor: **DHT22**\n    - [Documentation](https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf)\n    - [Arduino library](https://platformio.org/lib/show/19/DHT%20sensor%20library)\n\n - Soil temperature and humidity sensor: **FS304-SHT31**\n    - [Documentation](https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Datasheets/Sensirion_Humidity_Sensors_SHT3x_Datasheet_digital.pdf)\n    - [Arduino library](https://platformio.org/lib/show/479/Adafruit%20SHT31%20Library)\n## Development setup\n\nInstall **Visual Studio Code** and the **PlatformIO** extension.\n\nCopy `include/NetworkConfiguration.h.example` to `include/NetworkConfiguration.h` and insert your [*The Things Network*](https://www.thethingsnetwork.org) configuration. \n\nEdit the `platformio.ini` file and change the `board_build.arduino.lorawan.region` to the correct frequency band for your country.\n\nAttach a serial monitor and read the Device EUI after a reset. Then set the device EUI in the TTN console, use OTAA and MAC 1.0.2 .\n\nUse the PlatformIO menu to compile and upload the code.\n\n### Payload Formatter\n\n```javascript\nfunction decodeInt16(bytes, offset)\n{\n  return (((bytes[offset + 1] \u0026 0xFF) \u003c\u003c 8) | (bytes[offset] \u0026 0xFF));\n}\n\nfunction decodeFloat32(bytes, offset)\n{\n  var d = new DataView(new ArrayBuffer(4));\n  for(var i=0; i\u003c4; i++) d.setUint8(i, bytes[offset + i]);\n  return d.getFloat32(0, true);\n}\n\nfunction decodeUplink(input) \n{\n  return {\n    data: {\n      bytes: input.bytes,\n      id: input.bytes[0],\n      battery: decodeInt16(input.bytes, 1),\n      temperature: decodeFloat32(input.bytes, 3),\n      humidity: decodeFloat32(input.bytes, 7),\n      soilTemperature: decodeFloat32(input.bytes, 11),\n      soilHumidity: decodeFloat32(input.bytes, 15)\n    },\n    warnings: [],\n    errors: []\n  };\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstargate01%2Fsmartfield-firmware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstargate01%2Fsmartfield-firmware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstargate01%2Fsmartfield-firmware/lists"}