Pressurenet Sdk

Alternatives To Pressurenet Sdk
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Crystal Face312
11 days ago89gpl-3.0HTML
Garmin Connect IQ watch face
Noaa13021a year ago32February 19, 202212mitPython
NOAA Weather Service Python SDK
Privacy Friendly Weather104
6 months ago54gpl-3.0Java
Privacy Friendly App for Android that can display weather for cities.
Netatmo Api Php98
3 years ago8PHP
Netatmo Weather Station API client implementation - PHP SDK
Awesome Memobird69
5 years ago
咕咕机资源汇总
Minxiuweather66
7 months ago1JavaScript
a simple miniprogram of weather
Esp8266 Weather Station46
6 years agootherAssembly
Use ESP8266_RTOS_SDK-1.4.x CJson Resolution Weather Web Json Data and Display on the OLED12864,the code include ESP8266 SmartConfig function can use SmartPhone APP connect to WiFi
Pressurenet Sdk33
8 years ago6mitJava
PressureNet-SDK
Codex.bot32
2 months ago16mitPython
Working team assistant
Aeris Ios Library21
714 days ago49November 02, 20211bsd-3-clauseRuby
Contains a demo project utilizing the AerisWeather SDK for iOS to help you get started with using our library.
Alternatives To Pressurenet Sdk
Select To Compare


Alternative Project Comparisons
Readme

PressureNet SDK

The PressureNet SDK is an Android library project that enables simple atmosphere sensor data collection and transmission to researchers. This SDK was created by Cumulonimbus for use in PressureNet and third-party Android apps. The code is open source and released under the MIT license. If you're interested in using this SDK in your app and sending live atmospheric pressure data to scientists working on a better weather forecast, join our Developer Program to get an API key.

This SDK is intended for atmospheric sensor data collection. We have also built a PressureNet API for data dissemination that is actively used by scientists and researchers. We provide an explanation and documentation for the Live API. Of course, that project is open source too.

Installation

Include this SDK in your Android project:

  1. In Eclipse, open the Project Properties of your existing application.
  2. Open the Java Build Path page, then the Source tab.
  3. Use the Link Source feature to include the 'src' directory of this library. Rename the new folder to something like 'srk-cbsdk'.

Usage

There are two usage paradigms:

  1. Start the SDK Service and let it manage periodic data collection.
  2. Periodically send an Intent to the SDK to collect and send a single measurement at a time.

If your app already periodically runs in the background, it might make sense to pick option 2 rather than have two background services running. Otherwise, choose option 1 and let PressureNet do all the work. Simple steps to get started with the SDK are presented here. Full documentation is in the docs/ folder. We also provide a full Example project that uses the SDK and simplified code to help you get started.

Option 1: Start the service and let it run

All interaction with the PressureNet SDK will be done through the CbService class. Start the service by creating an Intent and calling startService:

Intent intent  = new Intent(getApplicationContext(), CbService.class);
startService(intent);

Add the service to your AndroidManifest.xml file inside the tags:

<service
    android:name="ca.cumulonimbus.pressurenetsdk.CbService"
    android:enabled="true" >
        <intent-filter>
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_SEND_MEASUREMENT" />
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_REGISTER" />
        </intent-filter>
</service>

The final element required is to add the following tag, which can go right below the <service> tag:

<receiver
    android:name="ca.cumulonimbus.pressurenetsdk.CbAlarm"
    android:process=":remote" >
    <intent-filter>
        <action android:name="ca.cumulonimbus.pressurenetsdk.START_ALARM" />
    </intent-filter>
</receiver> 

And that's it! By adding those elements to your manifest and calling startService, the PressureNet SDK will run in the background and send data. For more control, your app can communicate with the SDK.

Option 2: Manually, periodically send Intents

You'll use the same Service tag as above in your AndroidManifest.xml:

<service
    android:name="ca.cumulonimbus.pressurenetsdk.CbService"
    android:enabled="true" >
        <intent-filter>
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_SEND_MEASUREMENT" />
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_REGISTER" />
        </intent-filter>
</service>

To send an intent directing the PressureNet SDK to send a single measurement, do something like this:

Intent intent = new Intent(getApplicationContext(), CbService.class);
intent.setAction(CbService.ACTION_SEND_MEASUREMENT);
startService(intent);

And that's it! The PressureNet SDK will collect and send (or bufffer) a single atmospheric pressure measurement.

Communication

Communication between your app and the CbService is done by binding to the Service and passing Messages. For full documentation, please see Documentation.md and the docs/ folder, which contain descriptions of available communication messages as well as Javadoc comments.

About

This SDK is developed by Cumulonimbus as part of the PressureNet project. Our primary goal is to improve weather forecasting by dramatically increasing the data inputs available to weather models. We built this SDK so you can help this effort by contributing data! Please email us with any questions: [email protected]

Popular Sdk Projects
Popular Weather Projects
Popular Libraries Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Sdk
Weather
Measurements