Go to advanced search

by huggies15
Wed Apr 09, 2014 1:56 pm
Forum: Python
Topic: Sudden script fail
Replies: 2
Views: 620

Re: Sudden script fail

Hi, Thanks for the reply. Its not the power supply, but I think the problem might be the sensor itself. I have 2 systems, so I swapped the sensor over to the other working system and it stopped. Doing sudo modprobe w1-gpio && sudo modprobe w1-therm followed by cd /sys/bus/w1/devices/ showed that the...
by huggies15
Wed Apr 09, 2014 11:58 am
Forum: Python
Topic: Sudden script fail
Replies: 2
Views: 620

Sudden script fail

Hi, I've been running a Pi to measure water temperatures for about 18 months now no problems. Its constantly on, not updated and run headless. Yesterday, the Pi started collecting data but froze half way through (I have 2 indicator LEDs red and green, red means processing green means done, the scrip...
by huggies15
Mon Apr 15, 2013 10:57 am
Forum: Python
Topic: Plot output problem
Replies: 4
Views: 2364

Re: Plot output problem

Amoung loads of minor problems with my code, teh main one was that i wasnt appending data to the array.
Solved now!
by huggies15
Fri Apr 12, 2013 2:39 pm
Forum: Python
Topic: Plot output problem
Replies: 4
Views: 2364

Re: Plot output problem

ok, so i turned the seconds and degs into floats and now everything works, sort of.
It produces a graph, but there is no data in it, and it i try and print array values (to check they are populating) they are blank... ARRGHHHH
by huggies15
Fri Apr 12, 2013 12:25 pm
Forum: Python
Topic: Plot output problem
Replies: 4
Views: 2364

Re: Plot output problem

Quick reply to myself: fixed this problem by telling matplot lib not to use an X display: added import matplotlib matplotlib.use('Agg') before from pylab import * now i get further along the script and incounter another error: Traceback (most recent call last): File "temp_record_all_in_one.py", line...
by huggies15
Fri Apr 12, 2013 9:42 am
Forum: Python
Topic: Plot output problem
Replies: 4
Views: 2364

Plot output problem

Hi All, Im trying to write/run a program that logs temperature and outputs the results to a png image. I think the program is running fine (i get the desired .log file) up until the grpah part, then i get the following error: Traceback (most recent call last): File "temp_record_all_in_one.py", line ...
by huggies15
Wed Feb 20, 2013 4:28 pm
Forum: Python
Topic: Basic graphing module/idea help
Replies: 5
Views: 4720

Re: Basic graphing module/idea help

Or could i use matplotlib like so: # Copyright (c) 2012 Matthew Kirk # Licensed under MIT License, see # http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/temperature/LICENSE #import all neccessary modules import RPi.GPIO as GPIO import time from pylab import * #state pin setup LED1_GPIO_PIN = ...
by huggies15
Wed Feb 20, 2013 3:23 pm
Forum: Python
Topic: Basic graphing module/idea help
Replies: 5
Views: 4720

Re: Basic graphing module/idea help

Hi, Thanks for getting back to me. I've decided to go down the python + gnuplot route. Below is the code ive written. Im still waiting for my Pi to test it on, but if you could have a quick scan and see if it looks correct I would be grateful. Because I cannot work out how to get gnuplot to open the...
by huggies15
Tue Feb 19, 2013 11:46 am
Forum: Python
Topic: Basic graphing module/idea help
Replies: 5
Views: 4720

Basic graphing module/idea help

Hi All, I'm trying to get into programming (basic python programming) and have a problem. I'm going to make a temperature sensor to record the time taken to boil some water etc. Following the tutorial on the cambridge uni website (http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/temperature/),...

Go to advanced search