Go to advanced search

by ferniematt
Wed Nov 30, 2016 4:23 am
Forum: Other projects
Topic: Car Security Camera System
Replies: 24
Views: 20379

Re: Car Security Camera System

Im thinking about a project like this for myself. First Plan: -Ras Pi 3 -GPS -Wifi -4x20 LCD -OBD2 Bluetooth -VoltMeter Possible Additions: -Cameras -4G -Thinking about wire into the vehicle, Lock switch sends signal to GPIO can tell if doors are locked or unlocked. -Motion is said to be hard on the...
by ferniematt
Mon Jan 18, 2016 2:44 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program

Yes I did get it to work but I am Not sure I can remember what I changed to make it find a sensor I know I did a lot of research on Raspberry Pi and the 1-wire network where I must have found where I went wrong. I'm currently at school and haven't been working on the project for the last 3 months I'...
by ferniematt
Mon Oct 05, 2015 12:15 am
Forum: Python
Topic: My contribution: Adafruit LCD Plate Menu library
Replies: 3
Views: 2383

Re: My contribution: Adafruit LCD Plate Menu library

Hey rodrigodiez, are you still working on this at all? have a few questions the example i have found creates its own menus and sub-menus etc not sure if its possible or i just dont understand the code but can i put in my own custom menu names. and be able to do functions at the end basically looking...
by ferniematt
Sat Jun 13, 2015 2:59 am
Forum: Python
Topic: need help... Placing a function outcome into a mysql entry.
Replies: 11
Views: 1073

Re: need help... Placing a function outcome into a mysql ent

Here's my version that works with MySQL.... I tried your 'update' statement and it didnt work for me. I have found away that it accepts it but doesnt actually change the numbers :S #!/usr/bin/python import MySQLdb import config import os class DB: def connect(self): try: self.conn = MySQLdb.connect...
by ferniematt
Fri Jun 12, 2015 4:18 am
Forum: Python
Topic: need help... Placing a function outcome into a mysql entry.
Replies: 11
Views: 1073

Re: need help... Placing a function outcome into a mysql ent

ok i think im getting closer. still not getting it... CODE: #!/usr/bin/python import MySQLdb import config class DB: def connect(self): try: self.conn = MySQLdb.connect("localhost", config.USER, config.PASS, config.MYDB) except (AttributeError, MySQLdb.OperationalError), e: raise e def query(self, s...
by ferniematt
Fri Jun 12, 2015 3:16 am
Forum: Python
Topic: Needs Help with 'Greater than' and 'less than'
Replies: 17
Views: 1811

Re: Needs Help with 'Greater than' and 'less than'

Im sorry Colin, im still around. thank you for your coding help it has helped a lot in my project has taken me to new heights.

i am sorry on the late reply thank you again.
by ferniematt
Fri Jun 12, 2015 3:11 am
Forum: Python
Topic: need help... Placing a function outcome into a mysql entry.
Replies: 11
Views: 1073

Re: need help... Placing a decimal function into a mysql ent

couple more tries... ..... db = DB() db.connect() print readtemp() temp = readtemp() sql = '''UPDATE temps SET temp='%readtemp()' WHERE id=0''' print sql db.query (sql) OUTCOME: 28.312 28.312 28.312 UPDATE temps SET temp='%readtemp()' WHERE id=0 mysql.py:17: Warning: Data truncated for column 'temp'...
by ferniematt
Fri Jun 12, 2015 2:51 am
Forum: Python
Topic: need help... Placing a function outcome into a mysql entry.
Replies: 11
Views: 1073

Re: need help... Placing a decimal function into a mysql ent

+---------+------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+------------+------+-----+---------+-------+ | id | int(11) | NO | PRI | NULL | | | room | text | YES | | NULL | | | unit | text | YES | | NULL | | | temp | float(6,3) | YES | | NULL | ...
by ferniematt
Fri Jun 12, 2015 2:20 am
Forum: Python
Topic: need help... Placing a function outcome into a mysql entry.
Replies: 11
Views: 1073

need help... Placing a function outcome into a mysql entry.

I am using "sys/bus/w1/devices...etc" to get a temperature reading, having it as a return. so when i call readtemp() it will give me the temperature. i now want to update a MYSQL entry with the readtemp() function. i am having a hell of a time, been looking through all these tutorials etc what am i ...
by ferniematt
Tue Jun 02, 2015 3:28 am
Forum: Automation, sensing and robotics
Topic: DS18B20 and 30-Jan firmware
Replies: 38
Views: 31045

Re: DS18B20 and 30-Jan firmware

Thanks for the Fix!
by ferniematt
Tue Feb 24, 2015 7:48 pm
Forum: Python
Topic: Needs Help with 'Greater than' and 'less than'
Replies: 17
Views: 1811

Re: Needs Help with 'Greater than' and 'less than'

yes, in your function returning the bedroom temp you convert to float but then don't return that value but the temp_c you generated on the previous line! PS you do this in most of your functions actually, only boiler seems to use the float value PPS in a compiled language you would get a warning th...
by ferniematt
Tue Feb 24, 2015 5:39 pm
Forum: Python
Topic: Needs Help with 'Greater than' and 'less than'
Replies: 17
Views: 1811

Re: Needs Help with 'Greater than' and 'less than'

#BEDROOM STATUS print 'bed: ', bed print 'btemp: ', btemp print 'soakb: ', soakb if (bed >= btemp): print 'Bedroom Off' temp = open("txtdoc/bedsat.txt", "w") temp.write('%s' % ('2')) temp.close() heatex_off() else: if (bed > soakb) and (bed < btemp): print 'Bedroom Soak' temp = open("txtdoc/bedsat....
by ferniematt
Tue Feb 24, 2015 3:09 am
Forum: Python
Topic: Needs Help with 'Greater than' and 'less than'
Replies: 17
Views: 1811

Needs Help with 'Greater than' and 'less than'

Needs Help with 'Greater than' and 'less than' withh a mix of floats and strings. In my rows of code i have temperature sensors and set temp for each, i have a high and a low. some of my temperatures arent realizing they are greater then the set temp and not shutting off as they are supposed to This...
by ferniematt
Thu Jan 29, 2015 9:57 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

I have finally recieve the 9490R usb to RJ11 adaptor and have followed these instructions: http://www.noveldevices.co.uk/rp-1-wire once i enter sudo /opt/owfs/bin/owfs --allow_other -u -m /mnt/1wire i get back DEFAULT: ow_usb_msg.c:(295) Opened USB DS9490 bus master at 1:10. DEFAULT: ow_usb_cycle.c:...
by ferniematt
Tue Jan 13, 2015 5:36 am
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

Check out owfs. Plug and play. http://www.cupidcontrols.com/2014/01/owfs-owserver-owhttp-owpython-and-a-little-1wire-pi/ Whats the limit using this? I have three sensors at the moment and my next order i will be ordering another 10. i have found a DS2483r+U on digikey- http://www.digikey.ca/product...
by ferniematt
Tue Jan 13, 2015 5:19 am
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

with lots of research. using google we have found that the limit to the DS18B20 is to 10m from the pi. with this information we have had to change a few plans to make it work for our needs. <snip> and has anyone been successful running temperature sensors more then 10M? Yes. The one-wire bus can wo...
by ferniematt
Mon Jan 12, 2015 7:38 am
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

with lots of research. using google we have found that the limit to the DS18B20 is to 10m from the pi. with this information we have had to change a few plans to make it work for our needs. we have decided to work with 3 rasberry pi's and have them communicate with eachother hopefully over the netwo...
by ferniematt
Mon Dec 08, 2014 8:30 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

Here are my three programs: House: import RPi.GPIO as GPIO import time import glob import os import sys import datetime from time import gmtime, strftime from datetime import date ##***************SET TEMPERATURES************## priority1 = 180; #Boiler Max Temp priority2 = 175; #Boiler Minimum Temp ...
by ferniematt
Mon Dec 08, 2014 6:42 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

i'm using the power supply i got with the pi, my program runs for hours then crashes as it cannot see the temp sensors anymore 'IndexError: list index out of range' i have restarted multiple times and they still don't seem to come back. i thought i would try the 5v terminal, that didnt change anythi...
by ferniematt
Sat Dec 06, 2014 5:29 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

I thought i had a bulletproof program, not even 12 hours later and the whole thing took a dive. I have three programs running and all rely on the temp sensors being read. i have one in a woodstove, one outside, and one in a building. lastnight all my sensors dropped to 0. programs crashed and house ...
by ferniematt
Sat Dec 06, 2014 7:14 am
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

Just Added two more temp sensors, had some weird issues with them seemed that 3v wasnt enough to run 3 sensors, i now have 1 sensor on a 3v and 2 on another 3v both seem to be working good. I split my original program into 3, one controls my shop boiler pump with specific rules. another runs my hous...
by ferniematt
Wed Nov 26, 2014 1:33 am
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python ghans after i install this, will i be able to connect to a mysql on my external server and add/edit to the database, i am new to pi, php, and mysql. this is my first project and i think my hopes are pretty high...
by ferniematt
Mon Nov 24, 2014 8:02 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

I am not sure. I believe have a mysql database on the pi. I do not know how to find out if I can access a remote database
by ferniematt
Mon Nov 24, 2014 7:56 pm
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

New Problem/needing information. I have my Pi running the temperature sensor and controlling two relays depending on the current temp. I would like to view and control the temp setting using an android device or a website that can be used with a mobile. my thought are the 'pi' upload a txt doc to a ...
by ferniematt
Fri Nov 07, 2014 5:31 am
Forum: Automation, sensing and robotics
Topic: Pi Boiler program
Replies: 30
Views: 4466

Re: Pi Boiler program - Needs Help

Thanks that helped, looks like i was close to getting it.

will post more questions and info on my project as it evolves into something great.

thanks again

matt.

Go to advanced search