이것은 멋진 LORA 응용 프로그램의 예입니다. 기상 관측소에는 온도 센서, 공기압 센서 및 습도 센서가 들어 있습니다. 이 데이터는 Lora 및 Things Network를 사용하여 Cayenne MyDevices 및 Weather Underground로 보내집니다.
배선은이 스토리의 계획을 기반으로합니다 : https://www.thethingsnetwork.org/labs/story/build-the-cheapest-possible-yougerself
Arduino Pro Mini에 RFM95W를 추가하기 위해 가장 저렴한 노드를 구축하는 강조를 따르십시오. 성공하면 위의 체계에 표시된대로 센서를 추가하십시오.
마지막으로, RFM95W 안테나 핀에 86 밀리미터 와이어를 납땜하여 범위를 증가시킵니다.
기상 관측소를 어딘가에 놓으려면 케이스를 그렸고 3D 프린터로 인쇄했습니다.
모델은 사물에서 찾을 수 있습니다. 물론 당신은 자신만의 변형을 만들 수 있습니다.
https://www.thingiverse.com/thing:2594618
내가 사용한 코드는 github : https://github.com/henri98/lorawanweatherstation에서 찾을 수 있습니다.
나는이 프로젝트를 실현하기 위해 Atom을 사용하여 플랫폼을 실현 했으므로 이것은 플랫폼 프로젝트입니다.
나는 Following Libarys를 사용했습니다.
Weather Underground에 데이터를 보내려면 Things Network의 콘솔에서 HTTP 통합을 만듭니다. 데이터는 게시물이나 GET와 함께 URL로 전송됩니다. 다음 스크립트는 데이터를 캡처하여 Weather Underground로 보냅니다. https://www.wunderground.com/personal--wheather-station/signup에 자신의 개인 기상 관측소를 등록하십시오
<? php
echo time ();
file_put_contents('json/post'.time().'.json', file_get_contents('php://input'));
$json = file_get_contents('php://input');
$data = json_decode($json);
// take the data out of the json
$temperature_1 = $data->payload_fields->temperature_1;
$barometric_pressure_2 = $data->payload_fields->barometric_pressure_2;
$relative_humidity_3 = $data->payload_fields->relative_humidity_3;
// tempc to tempf
$tempf = ($temperature_1 * 9/5) + 32;
// pressure
$pressure = $barometric_pressure_2/33.863886666667;<br>
if( isset($pressure) && !empty($pressure) && isset($tempf) && !empty($tempf) && isset($relative_humidity_3) && !empty($relative_humidity_3)){ <br> file_get_contents("<a href="https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php?ID=XXXXXXX&PASSWORD=XXXXXXXX&dateutc=now&tempf=" rel="nofollow" target="_blank">https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php?ID=XXXXXXX&PASSWORD=XXXXXXXX&dateutc=now&tempf=</a>" . $tempf . "&humidity=" . $relative_humidity_3 . "&baromin=" . $pressure);
}