Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

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.


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'.


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);

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

    android:enabled="true" >
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_SEND_MEASUREMENT" />
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_REGISTER" />

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

    android:process=":remote" >
        <action android:name="ca.cumulonimbus.pressurenetsdk.START_ALARM" />

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:

    android:enabled="true" >
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_SEND_MEASUREMENT" />
            <action android:name="ca.cumulonimbus.pressurenetsdk.ACTION_REGISTER" />

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

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

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


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


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:









No packages published