<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>For Developers on Sleep as Android Docs</title>
		<link>/docs/devs/index.html</link>
		<description>Recent content in For Developers on Sleep as Android Docs</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="/docs/devs/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>CAPTCHA API</title>
				<link>/docs/devs/captcha_api.html</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/devs/captcha_api.html</guid>
				<description>&lt;h1 id=&#34;captcha-api&#34;&gt;CAPTCHA API&lt;a class=&#34;anchor&#34; href=&#34;#captcha-api&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xD;&#xA;&lt;!-- :toc: --&gt;&#xD;&#xA;&lt;h2 id=&#34;api-guide&#34;&gt;API guide&lt;a class=&#34;anchor&#34; href=&#34;#api-guide&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xD;&#xA;&lt;p&gt;To create your own CAPTCHA, use the &lt;a href=&#34;https://github.com/urbandroid-team/sleep-captcha-support&#34;&gt;Captcha support library&lt;/a&gt;. Usage guide is available there.&lt;/p&gt;&#xA;&lt;p&gt;To see an example CAPTCHA created by our team, check &lt;a href=&#34;https://github.com/urbandroid-team/sleep-captcha-examples&#34;&gt;Sleep-Captcha-Example&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;testing-note&#34;&gt;Testing note&lt;a class=&#34;anchor&#34; href=&#34;#testing-note&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xD;&#xA;&lt;p&gt;To send an intent to make the current CAPTCHA succeed, do:&#xA;&lt;code&gt;adb shell am start -n com.urbandroid.sleep/.alarmclock.AlarmAlertFullScreen --ez captcha_result_success true&lt;/code&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Content provider API</title>
				<link>/docs/devs/content_provider_api.html</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/devs/content_provider_api.html</guid>
				<description>&lt;h1 id=&#34;content-provider-api&#34;&gt;Content provider API&lt;a class=&#34;anchor&#34; href=&#34;#content-provider-api&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xD;&#xA;&lt;h2 id=&#34;features&#34;&gt;Features&lt;a class=&#34;anchor&#34; href=&#34;#features&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xD;&#xA;&lt;p&gt;Sleep as Android exposes content providers so you can:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;read sleep data saved in Sleep as Android&lt;/li&gt;&#xA;&lt;li&gt;CRUD alarms in Sleep as Android&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote class=&#39;book-hint &#39;&gt;&#xD;&#xA;&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; To access Sleep as Android content providers your app needs the com.urbandroid.sleep.READ permission declared in its manifest.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;h3 id=&#34;sleep-data-content-provider&#34;&gt;Sleep data content provider&lt;a class=&#34;anchor&#34; href=&#34;#sleep-data-content-provider&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xD;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#f3f99d&#34;&gt;Record&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String AUTHORITY &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;com.urbandroid.sleep.history&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String RECORDS_TABLE &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;records&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#f3f99d&#34;&gt;Records&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;implements&lt;/span&gt; BaseColumns {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; Uri CONTENT_URI &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; Uri.&lt;span style=&#34;color:#57c7ff&#34;&gt;parse&lt;/span&gt;(&lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;content://&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ff6ac1&#34;&gt;+&lt;/span&gt; AUTHORITY &lt;span style=&#34;color:#ff6ac1&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;/&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ff6ac1&#34;&gt;+&lt;/span&gt; RECORDS_TABLE);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String CONTENT_TYPE &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;vnd.android.cursor.dir/com.urbandroid.sleep.history&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String RECORD_ID &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;_id&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String START_TIME &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;startTime&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String LATEST_TO_TIME &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;latestToTime&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String TO_TIME &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;toTime&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String FRAMERATE &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;framerate&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String RATING &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;rating&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String COMMENT &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;comment&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String RECORD_DATA &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;recordData&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String TIMEZONE &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;timezone&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String LEN_ADJUST &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;lenAdjust&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String QUALITY &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;quality&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String SNORE &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;snore&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String CYCLES &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;cycles&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String EVENT_LABELS &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;eventLabels&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String EVENTS &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;events&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String RECORD_FULL_DATA &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;recordFullData&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String RECORD_NOISE_DATA &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;recordNoiseData&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String NOISE_LEVEL &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;noiseLevel&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String FINISHED &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;finished&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String GEO &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;geo&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff5c57&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#ff5c57&#34;&gt;final&lt;/span&gt; String LENGTH &lt;span style=&#34;color:#ff6ac1&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#5af78e&#34;&gt;&amp;#34;length&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To query the content provider (only select is supported - no update or delete):&lt;/p&gt;</description>
			</item>
			<item>
				<title>CSV file documentation</title>
				<link>/docs/devs/csv.html</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/devs/csv.html</guid>
				<description>&lt;h1 id=&#34;csv-file-documentation&#34;&gt;CSV file documentation&lt;a class=&#34;anchor&#34; href=&#34;#csv-file-documentation&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xD;&#xA;&lt;p&gt;The sleep-export.csv file is a backup file that contains data from sleep records. Each record is saved onto two lines (manually inserted sleep records), or three lines (sleep records recorded by sleep tracking).&lt;/p&gt;&#xA;&lt;blockquote class=&#39;book-hint &#39;&gt;&#xD;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you want the data in JSON format, you can use our link:&lt;a href=&#34;https://sleep.urbandroid.org/tools/csvtojson/&#34;&gt;online converter tool&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;table&gt;&#xD;&#xA;  &lt;thead&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;th style=&#34;text-align:left&#34;&gt;Line&lt;/th&gt;&#xD;&#xA;      &lt;th style=&#34;text-align:left&#34;&gt;Field&lt;/th&gt;&#xD;&#xA;      &lt;th style=&#34;text-align:left&#34;&gt;Description&lt;/th&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;  &lt;/thead&gt;&#xD;&#xA;  &lt;tbody&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td rowspan=&#34;16&#34; style=&#34;vertical-align: top;&#34;&gt;&lt;strong&gt;First line&lt;/strong&gt; (headers)&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Id&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Unique record identificator (timestamp of the record beginning)&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Tz&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Timezone&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;From&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Record beginning datetime&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;To&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Record end datetime&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Sched&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Next scheduled sleep tracking terminating alarm&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Hours&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Duration of the sleep record&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Rating&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;User rating (0.0 - 5.0 with 0.25 step)&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Comment&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;User comments and tags&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Framerate&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;unused&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Snore&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;snoring value (-1: snoring detection was turned off, 0: snoring detection on, no snoring detected)&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Noise&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;noise average value&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Cycles&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;sleep cycles measured (-1: manually inserted sleep record)&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;DeepSleep&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;deep sleep aggregated value (-2.0 or -1.0: no hypnogram)&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;LenAdjust&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;adjusts record length in case of any awake period (fall asleep period, pause, awake detection)&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Geo&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;Hashed value of the geo location&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;(times)&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td&gt;see below&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Second line&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td colspan=&#34;2&#34;&gt;Contains values. Under the (times) headers, it contains accelerometric (actigraphic) data aggregated from the given periods.&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;    &lt;tr&gt;&#xD;&#xA;      &lt;td&gt;&lt;strong&gt;Third line&lt;/strong&gt;&lt;/td&gt;&#xD;&#xA;      &lt;td colspan=&#34;2&#34;&gt;(if present) contains measured noise values throughout the night.&lt;/td&gt;&#xD;&#xA;    &lt;/tr&gt;&#xD;&#xA;  &lt;/tbody&gt;&#xD;&#xA;&lt;/table&gt;</description>
			</item>
			<item>
				<title>Intent API</title>
				<link>/docs/devs/intent_api.html</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/devs/intent_api.html</guid>
				<description>&lt;h1 id=&#34;intent-api&#34;&gt;Intent API&lt;a class=&#34;anchor&#34; href=&#34;#intent-api&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xD;&#xA;&lt;p&gt;&lt;strong&gt;Automate your sleep-related tasks or integrate your own apps with Sleep as Android using our flexible Intent API.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This API allows developers and enthusiasts to trigger actions within Sleep as Android or react to real-time sleep events using automation tools like &lt;a href=&#34;/docs/services/tasker_automate.html&#34;&gt;Tasker&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote class=&#39;book-hint &#39;&gt;&#xD;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&#xA;&lt;a href=&#34;https://sites.google.com/site/jmaathuis/android/tasker/sleep-as-android/let-google-text-to-speech-say-on-which-time-your-alarm-goes&#34;&gt;Let Google Text To Speech announce your alarm time&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;hr&gt;&#xA;&lt;h2 id=&#34;action-intents-control-sleep&#34;&gt;Action Intents (Control Sleep)&lt;a class=&#34;anchor&#34; href=&#34;#action-intents-control-sleep&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xD;&#xA;&lt;p&gt;These intents allow your app or automation script to control Sleep as Android features.&lt;/p&gt;</description>
			</item>
			<item>
				<title>SleepCloud Storage API</title>
				<link>/docs/devs/sleepcloud_api.html</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/devs/sleepcloud_api.html</guid>
				<description>&lt;h1 id=&#34;sleepcloud-storage-api&#34;&gt;SleepCloud Storage API&lt;a class=&#34;anchor&#34; href=&#34;#sleepcloud-storage-api&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xD;&#xA;&lt;h2 id=&#34;who-is-the-api-intended-for&#34;&gt;Who is the API intended for&lt;a class=&#34;anchor&#34; href=&#34;#who-is-the-api-intended-for&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xD;&#xA;&lt;p&gt;SleepCloud API is designed for 3rd party services integration. Using the API, your service can fetch latest Sleep data of a user who granted a permission to the service using OAuth2 authentication.&lt;/p&gt;&#xA;&lt;h2 id=&#34;api-description&#34;&gt;API description&lt;a class=&#34;anchor&#34; href=&#34;#api-description&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xD;&#xA;&lt;h3 id=&#34;authentication&#34;&gt;Authentication&lt;a class=&#34;anchor&#34; href=&#34;#authentication&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xD;&#xA;&lt;p&gt;In order to get access to user’s data, your service needs to gets user’s permission first. This is achieved using standard OAuth 2.0 protocol. The OAuth authentication is done against Google servers, please see &lt;a href=&#34;https://developers.google.com/accounts/OAuth2&#34;&gt;Google documentation&lt;/a&gt; for more details and recommendations. The requested authentication scope should be &lt;a href=&#34;https://www.googleapis.com/auth/userinfo.email&#34;&gt;https://www.googleapis.com/auth/userinfo.email&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Wearable integration API</title>
				<link>/docs/devs/wearable_api.html</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/devs/wearable_api.html</guid>
				<description>&lt;h1 id=&#34;wearable-integration-api&#34;&gt;Wearable Integration API&lt;a class=&#34;anchor&#34; href=&#34;#wearable-integration-api&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xD;&#xA;&lt;h2 id=&#34;who-is-the-api-intended-for&#34;&gt;Who is the API intended for&lt;a class=&#34;anchor&#34; href=&#34;#who-is-the-api-intended-for&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xD;&#xA;&lt;p&gt;If there is a 3rd party wearable you’d like to see integrated with Sleep as Android that has a usable API and is not integrated yet, you have 2 options:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Request Integration:&lt;/strong&gt; Write to us about the watch, and we’ll evaluate how feasible and useful it would be to integrate. If feasible and beneficial to many users, we’ll do the integration ourselves!&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Build an Add-on:&lt;/strong&gt; Integrate the watch yourself. You can even create your own paid add-on app—we have no objections against this!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;hr&gt;&#xA;&lt;blockquote class=&#39;book-hint note&#39;&gt;&#xD;&#xA;&lt;p&gt;Due to intent restrictions in Android API levels &amp;gt; 26, we explicitly need to whitelist your package name in Sleep as Android if you want to use the API. Contact us at &lt;a href=&#34;mailto:support@urbandroid.org&#34;&gt;support@urbandroid.org&lt;/a&gt; and we’ll be glad to whitelist your package!&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
