<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Omega2 Pro  - can I detect main power&#x2F;switch to battery programatically?]]></title><description><![CDATA[<p dir="auto">I'm running my Omega2 pro via a 5v USB feed at the moment, and there's a LiPo battery also plugged in for backup. If I disconnect the main power it switches over just fine but what I want to do is to be able to detect that this (and <em>vice versa</em>) when it returns.</p>
<p dir="auto">Is there any way I can do this via software, preferably with Python(3) as I want to be able to raise a notification?</p>
]]></description><link>http://community.onion.io/topic/4161/omega2-pro-can-i-detect-main-power-switch-to-battery-programatically</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 15:46:35 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/4161.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Jun 2020 08:46:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Omega2 Pro  - can I detect main power&#x2F;switch to battery programatically? on Thu, 04 Jun 2020 08:46:01 GMT]]></title><description><![CDATA[<p dir="auto">I'm running my Omega2 pro via a 5v USB feed at the moment, and there's a LiPo battery also plugged in for backup. If I disconnect the main power it switches over just fine but what I want to do is to be able to detect that this (and <em>vice versa</em>) when it returns.</p>
<p dir="auto">Is there any way I can do this via software, preferably with Python(3) as I want to be able to raise a notification?</p>
]]></description><link>http://community.onion.io/post/21787</link><guid isPermaLink="true">http://community.onion.io/post/21787</guid><dc:creator><![CDATA[peter garner 0]]></dc:creator><pubDate>Thu, 04 Jun 2020 08:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Omega2 Pro  - can I detect main power&#x2F;switch to battery programatically? on Tue, 09 Jun 2020 09:11:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6414">@peter-garner-0</a></p>
<p dir="auto">Any takers? I'm keen to know as I did a battery test yesterday and achieved just over 12 hours with a 3000mAh LiPo battery. Initially the Omega was just idling, but then I set up a wget <em>my homepage</em> in a loop to give it some exercise. Very impressive.</p>
<p dir="auto">If I can query it programatically I can then either shut it down gracefully or get the proxy to divert.</p>
]]></description><link>http://community.onion.io/post/21817</link><guid isPermaLink="true">http://community.onion.io/post/21817</guid><dc:creator><![CDATA[peter garner 0]]></dc:creator><pubDate>Tue, 09 Jun 2020 09:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to Omega2 Pro  - can I detect main power&#x2F;switch to battery programatically? on Thu, 11 Jun 2020 04:41:52 GMT]]></title><description><![CDATA[<p dir="auto">Perhaps  you could connect (via a voltage divider) the 5V to a GPIO or A/D input?<br />
Regds,<br />
Dave</p>
]]></description><link>http://community.onion.io/post/21843</link><guid isPermaLink="true">http://community.onion.io/post/21843</guid><dc:creator><![CDATA[David Kerr]]></dc:creator><pubDate>Thu, 11 Jun 2020 04:41:52 GMT</pubDate></item><item><title><![CDATA[Reply to Omega2 Pro  - can I detect main power&#x2F;switch to battery programatically? on Fri, 12 Jun 2020 15:31:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5352">@David-Kerr</a> thanks - i'd considered the hardware option but I don't want to damage my board <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f601.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--grin" title=":grin:" alt="😁" /></p>
<p dir="auto">I will have a poke around the power-dock-2 script and see if i can figure something out from that.</p>
]]></description><link>http://community.onion.io/post/21850</link><guid isPermaLink="true">http://community.onion.io/post/21850</guid><dc:creator><![CDATA[peter garner 0]]></dc:creator><pubDate>Fri, 12 Jun 2020 15:31:54 GMT</pubDate></item></channel></rss>