Quantcast
Channel: ThingSpeak IoT Community - All Forums
Viewing all articles
Browse latest Browse all 1833

jimidmb on Posted data missing when calling the script through cron

$
0
0

Hi!

I'm new here, but thoroughly stumped after a hours of fiddling... I'm using a python script to read out temperature sensors and then send that data to Thingspeak. I followed this tutorial to setup the communication to Thinkgspeak: http://www.instructables.com/id/Esay-IoT-Weather-Station-With-Multiple-Sensors/

It worked well for a while, but recently it stopped. I did a data export from Thingspeak and found that there are date entries for each time my python script is called, but no data.

Here comes the 'crazy' part: When I call the script from the command line, data is posted. If the script is called through a cron job, just the date is posted, no data. ??!?

 

Anyone have an idea what's going on?

Andrew


Viewing all articles
Browse latest Browse all 1833

Trending Articles