{"_id":"5b63925181f64e00036a5e7c","project":"5511fc8c0c1a08190077f90c","version":{"_id":"5511fc8d0c1a08190077f90f","__v":14,"project":"5511fc8c0c1a08190077f90c","createdAt":"2015-03-25T00:08:45.273Z","releaseDate":"2015-03-25T00:08:45.273Z","categories":["5511fc8d0c1a08190077f910","5511fd52c1b13537009f5d31","568ecb0cbeb2700d004717ee","568ecb149ebef90d0087271a","568ecb1cbdb9260d00149d42","56a6a012b3ffe00d00156f1e","56a6bfe37ef6620d00e2f25f","58fbccb5809fc30f00f2dc03","58fbcd136b29580f00d8ff3a","5942ec4d50b8a900373ce9ff","59481476d305c20019295d8c","5a8c51f42566820088ac230a","5a8c5217be0d21001d924692","5c1bb99d4138c204122fb2e0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5942ec4d50b8a900373ce9ff","project":"5511fc8c0c1a08190077f90c","version":"5511fc8d0c1a08190077f90f","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-06-15T20:21:33.617Z","from_sync":false,"order":3,"slug":"buzz-box-mobile-app","title":"OSBeehives App"},"user":"59440f773ab6710037ab2196","githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-08-02T23:22:57.623Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"[block:api-header]\n{\n \"title\": \"PCB Design\"\n}\n[/block]\nAn open-source reference design is provided for you using similar sensors and specs to our BuzzBox product: https://github.com/opensourcebeehives/BuzzBoard_hardware\n[block:api-header]\n{\n \"title\": \"Application Firmware\"\n}\n[/block]\nAn open-source reference firmware is provided for you: https://github.com/opensourcebeehives/BuzzBoard_firmware\n[block:api-header]\n{\n \"title\": \"Backend Setup\"\n}\n[/block]\n\nTo have your BuzzBoard connect to OSBeehives servers and show data in the [mobile app](https://www.osbeehives.com/pages/osbeehives-app), you must set up a few items.\n\n### Particle Cloud\n * set up your personal account through [Particle.io](https://www.particle.io/)\n * register your BuzzBoard's built-in Photon to your Particle.io account. Once you do this (via WiFi or Particle-CLI) you will see the device listed in the [Particle Console](https://console.particle.io/)\n\n### Measurements Webhook\n * From the Particle.io Console, click on 'Integrations', the 'New Integration'.\n * Setup the webhook to connect to OSBeehives Measurements API:\n\nEvent: `measurements`\nID: `59e6907deef5d45d7fc7dd6b`\nTarget: `osbeehives.com`\nFull URL: `https://api.osbeehives.com/v2/measurements`\nRequest Type: `JSON`\nRequest Format: `POST`\n\nUnder the custom JSON formatting, please input the following template:\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\\"name\\\": \\\"{{PARTICLE_EVENT_NAME}}\\\",\\n \\\"data\\\": \\\"{{PARTICLE_EVENT_VALUE}}\\\",\\n \\\"coreid\\\": \\\"{{PARTICLE_DEVICE_ID}}\\\",\\n \\\"published_at\\\": \\\"{{PARTICLE_PUBLISHED_AT}}\\\",\\n \\\"userid\\\": \\\"{{PRODUCT_USER_ID}}\\\",\\n \\\"fw_version\\\": \\\"{{PRODUCT_VERSION}}\\\",\\n \\\"public\\\": \\\"{{PARTICLE_EVENT_PUBLIC}}\\\",\\n \\\"device_id\\\": \\\"{{PARTICLE_DEVICE_ID}}\\\",\\n \\\"temp_c_in\\\": \\\"{{T_in}}\\\",\\n \\\"rhumidity_in\\\": \\\"{{RH_i}}\\\",\\n \\\"battery_charge\\\": \\\"{{soc}}\\\",\\n \\\"battery_health\\\": \\\"{{soh}}\\\",\\n \\\"solar_charge\\\": \\\"{{chg}}\\\",\\n \\\"current\\\": \\\"{{I}}\\\",\\n \\\"power\\\": \\\"{{P}}\\\",\\n \\\"rssi\\\": \\\"{{RSSI}}\\\",\\n \\\"wifi_packet_loss\\\": \\\"{{w_r}}\\\",\\n \\\"audio_packet_loss\\\": \\\"{{a_r}}\\\",\\n \\\"location_accuracy\\\": \\\"{{acc}}\\\",\\n \\\"lon\\\": \\\"{{lon}}\\\",\\n \\\"lat\\\": \\\"{{lat}}\\\"\\n}\",\n \"language\": \"javascript\",\n \"name\": \"JSON:\"\n }\n ]\n}\n[/block]\n\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\\"Content-Type\\\": \\\"application/json\\\",\\n \\\"Accept\\\": \\\"application/json\\\"\\n}\",\n \"language\": \"javascript\",\n \"name\": \"Headers:\"\n }\n ]\n}\n[/block]\nFor further documentation around webhooks on Particle.io please visit https://docs.particle.io/guide/tools-and-features/webhooks/\n\n### Audio Server\n\nYou must send audio stream to the correct URL in your custom [BuzzBoard firmware code](https://github.com/opensourcebeehives/BuzzBoard_firmware). Bee sure that you update to the latest code repository from GitHub!\n[block:api-header]\n{\n \"title\": \"Over-the-Air (OTA) Firmware Updates\"\n}\n[/block]\nYou can use the Particle.io Console to remotely update and manage your application firmware on your devices.","excerpt":"","slug":"buzzboard-open-source-package","type":"basic","title":"BuzzBoard - Open Source Package"}