<?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[OLED w&#x2F;temp expansion project - problem running code periodically with CRON]]></title><description><![CDATA[<p dir="auto">I set up and ran the OLED/temperature asdescribed in the Onion project book. I can successfully run the 'python <a href="http://main.py" rel="nofollow">main.py</a>' command and see the temperature value update on the OLED and to ubidots dashboard but having no success automating it to update periodically with the CRON. Following the steps in the project book and all I get is the temperature value holding from the last 'python <a href="http://main.py" rel="nofollow">main.py</a>' command. Any troubleshooting suggestions?</p>
]]></description><link>http://community.onion.io/topic/2632/oled-w-temp-expansion-project-problem-running-code-periodically-with-cron</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 17:53:56 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2632.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Jan 2018 21:31:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OLED w&#x2F;temp expansion project - problem running code periodically with CRON on Fri, 05 Jan 2018 21:31:47 GMT]]></title><description><![CDATA[<p dir="auto">I set up and ran the OLED/temperature asdescribed in the Onion project book. I can successfully run the 'python <a href="http://main.py" rel="nofollow">main.py</a>' command and see the temperature value update on the OLED and to ubidots dashboard but having no success automating it to update periodically with the CRON. Following the steps in the project book and all I get is the temperature value holding from the last 'python <a href="http://main.py" rel="nofollow">main.py</a>' command. Any troubleshooting suggestions?</p>
]]></description><link>http://community.onion.io/post/15615</link><guid isPermaLink="true">http://community.onion.io/post/15615</guid><dc:creator><![CDATA[congo]]></dc:creator><pubDate>Fri, 05 Jan 2018 21:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to OLED w&#x2F;temp expansion project - problem running code periodically with CRON on Sat, 06 Jan 2018 06:58:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4909">@congo</a> What is your crontab entry?<br />
Cron executes instructions in a separate shell with its own environment (incl PATH), so, often, programs that execute successfully in the user shell by being called by name only (e.g. python) need to have their full path specified (e.g. /usr/bin/python) in order to execute successfully in a crontab entry.<br />
Post output from crontab -l (lower case L) if you are able.</p>
]]></description><link>http://community.onion.io/post/15622</link><guid isPermaLink="true">http://community.onion.io/post/15622</guid><dc:creator><![CDATA[cas]]></dc:creator><pubDate>Sat, 06 Jan 2018 06:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to OLED w&#x2F;temp expansion project - problem running code periodically with CRON on Mon, 08 Jan 2018 03:25:11 GMT]]></title><description><![CDATA[<p dir="auto">this the 'crontab -e' entry</p>
<p dir="auto"><img src="/assets/uploads/files/1515381892310-9a5e649b-f644-4c45-b57d-18337c84c580-image-resized.png" alt="0_1515381758164_9a5e649b-f644-4c45-b57d-18337c84c580-image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://community.onion.io/post/15632</link><guid isPermaLink="true">http://community.onion.io/post/15632</guid><dc:creator><![CDATA[congo]]></dc:creator><pubDate>Mon, 08 Jan 2018 03:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to OLED w&#x2F;temp expansion project - problem running code periodically with CRON on Mon, 08 Jan 2018 05:58:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4909">@congo</a><br />
Ok, for that line to operate correctly, it looks like you need to insert some spaces between the "*"'s (starting after the first one) and to correct the spelling of "/user/" to "/usr/" (remove the "e").<br />
e.g.</p>
<pre><code># m h dom mon dow command
* * * * * /usr/bin/python /root/temperature-monitor/main.py
</code></pre>
<p dir="auto">[edit]<br />
added header line for purposes of understanding the crontab fields, where:<br />
m - minute<br />
h - hour<br />
dom - day of month<br />
mon - month<br />
dow - day of week<br />
command - command to execute<br />
[/edit]</p>
]]></description><link>http://community.onion.io/post/15633</link><guid isPermaLink="true">http://community.onion.io/post/15633</guid><dc:creator><![CDATA[cas]]></dc:creator><pubDate>Mon, 08 Jan 2018 05:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to OLED w&#x2F;temp expansion project - problem running code periodically with CRON on Mon, 08 Jan 2018 19:57:00 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for that! I cleaned those mistakes up and its running properly now.</p>
]]></description><link>http://community.onion.io/post/15635</link><guid isPermaLink="true">http://community.onion.io/post/15635</guid><dc:creator><![CDATA[congo]]></dc:creator><pubDate>Mon, 08 Jan 2018 19:57:00 GMT</pubDate></item></channel></rss>