Go to advanced search

by Tony-d
Wed May 20, 2020 10:08 pm
Forum: Networking and servers
Topic: Help coneting pi4 to synolgy DS218J i'm lost.
Replies: 0
Views: 142

Help coneting pi4 to synolgy DS218J i'm lost.

Hi Guys I am running plex on my pi 4To that end I am trying to get my pi 4 to see a sinology ds218j NSA folder where I have all my media. I have nfs on the NAS and enabled on the shared folder. I can see the nas and map drives from Windows 10 and from my fire stick on my tv. When I enter this on the...
by Tony-d
Thu Feb 13, 2020 11:50 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Thank You sir this works fine one last thing I promise! I have a program that turns the eggs every 8 hrs i start both programs with the path in the crontab file. @reboot python /home/pi/humidity.py @reboot python /home/pi/egg90.py is this the right way to do this? it does work but is it the best way...
by Tony-d
Thu Feb 13, 2020 8:14 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I wanted to get it working first so i did not mess up the main program.
by Tony-d
Thu Feb 13, 2020 7:58 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Thank You very much, the program runs but is not acting like i think it should, What i thought i was doing was if pin 16 was low set pin 15 to high, and if 16 was high set 15 to low 16 is the heater light bulb 15 are led lights. whats happening when i run it is it turns 16 off or "low" & 15 On or "h...
by Tony-d
Thu Feb 13, 2020 6:31 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I am sorry i am still getting the same error,
i copied your code and pasted it to a new file on the pi. saved and ran. this is the result.
i am sorry



pi@raspberrypi:~ $ python3 relay.py
File "relay.py", line 8
while True:
^
SyntaxError: invalid syntax
by Tony-d
Thu Feb 13, 2020 5:00 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I hate to admit defeat! But there is no other word for it. What i am trying to do here is turn on pin 15 if pin 16 is off, i have been stuck on a syntax error in my while true loop for days. Thank you. import RPi.GPIO as GPIO from time import sleep GPIO.setwarnings(False) GPIO.setmode (GPIO.BOARD) G...
by Tony-d
Mon Feb 10, 2020 9:12 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I have both python 2 and 3 loaded on my pi and i think that is tripping me up? pi@raspberrypi:~ $ python --version Python 2.7.16 pi@raspberrypi:~ $ python3 --version Python 3.7.3 I keep getting syntax errors when I try example code fond on line. (after triple checking it). The why I am creating my c...
by Tony-d
Sun Feb 09, 2020 5:16 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I works like a charm, I am now mounting all the components on a plastic cutting bord, and adding a good power supply for the relays and servo.after that i am going to add a pi cam and apache web server so the inside of the incubator can be viewed with out opening the unit. and i want to put some led...
by Tony-d
Sun Feb 09, 2020 3:42 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Thank You I will test this out sorry I did not get back to you sooner working on the lay out seems to be growing!
LOL
Thanks again.
by Tony-d
Sat Feb 08, 2020 2:06 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Thank you, It seems to be turning enough but i will set it to 5 seconds as you recommend. Can you help me with adding code for on mre relay that would turn on if the temp drops below 10 degrees from the set mark, on say gpio27?
Thank you sir!
by Tony-d
Sat Feb 08, 2020 1:06 am
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

LOL the print statement was in the example you gave me so i left it in, it does work , I'll try removing in in the morning. Thank you here is the code i am using to turn the eggs thanks again! import RPi.GPIO as GPIO # Importing RPi library to use the GPIO pins from time import sleep # Importing sle...
by Tony-d
Fri Feb 07, 2020 6:07 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Ok, what I have come up with are two programs that get me to where I need to be. Understand I am no programmer. What you are seeing he is the result of hours of reading and YouTube. I do understand a lot of it now, but a lot is still a mystery to me. The first program humidity.py reads the data from...
by Tony-d
Fri Feb 07, 2020 3:06 am
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Happy Day! everything is working! I need to clean it up and add some comments, then if you would not mind helping me polish it, I am sure i did some things the "hard way" I don't know what I'm doing here with python. I need to take a day off and document every thing and ask you some questions after ...
by Tony-d
Thu Feb 06, 2020 3:38 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

i can turn the relays on and off with independent python programs just not with the humidity program, I'm sure its my issue not yours, as soon as i get every thing else worked out and documented I'll get back to you with all the gpio pins and the code i am using. so on. thanks
/
by Tony-d
Thu Feb 06, 2020 3:35 am
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Just an up date to let you know i am still working hard on this. I have been able to port the dht22 out put to an LCD screen (I feel like I had a baby doing that, as i had to read for hrs and watch countless videos.) I need to learn a bit more as i want to clear the screen every so often, i am worki...
by Tony-d
Tue Feb 04, 2020 7:44 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Sir, please do not think I am ignoring you, I am extremely gratefully for your help, What I am doing now is starting with a fresh O.S. install on the PI and setting up the DHT22 the relay and an actuator to turn the eggs and a LCD display on the PI to show the temp and humidity . Once I have all of ...
by Tony-d
Fri Jan 31, 2020 10:04 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I'll keep working on that i don't wish to impose to much, I have only put a few hrs in on it, what i found was just python. I need to put in a lot more time on it I'm sure I'll find something in 2 or 3. Thank you!
by Tony-d
Fri Jan 31, 2020 9:41 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

Thank you very much, while your in there if you have any kn lodge on how to direct the out put to a LCD display in python3 that's been tripping me up as the stuff I have found is out dated. seems top be python not python 3? Thanks! (I'll send you some chickens?)
by Tony-d
Fri Jan 31, 2020 9:20 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

I don't know what a coed tag is? This is the pythion3 script i am running it displays temp and humility when run in a terminal window. Thank you. import Adafruit_DHT DHT_SENSOR = Adafruit_DHT.DHT22 DHT_PIN = 4 while True: humidity, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN) if humidi...
by Tony-d
Fri Jan 31, 2020 8:12 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

Re: DHT22 to close a relay if the temperature drops below a set value

i have no problem reading the data from the dht22 in python, there are several good examples of how to do this. however using the data to trigger a relay, that I have not found, and yes I understand it is done with setting a variable.
Thank you
by Tony-d
Fri Jan 31, 2020 3:34 pm
Forum: Automation, sensing and robotics
Topic: DHT22 to close a relay if the temperature drops below a set value
Replies: 42
Views: 3562

DHT22 to close a relay if the temperature drops below a set value

Raspberry Pi egg incubator, I have seen lots of people ask this question but no clear answers. I am trying to build a small egg incubator. And I have been looking for a way to use a DHT22 to close a relay if the temperature drops below a set value (38C) and open when the temperature is achieved. Tha...
by Tony-d
Sat Oct 19, 2019 1:20 am
Forum: Networking and servers
Topic: Word press image cropping on the pi?
Replies: 4
Views: 1153

Re: Word press image cropping on the pi?

Thank you very much! It is working now!
Woo HOOOO!!!
:D
by Tony-d
Fri Oct 18, 2019 8:51 pm
Forum: Networking and servers
Topic: Word press image cropping on the pi?
Replies: 4
Views: 1153

Re: Word press image cropping on the pi?

1: Thank you very much, that is some very us full information, I had no clue as to how the pi handed the accounts and spent a lot of time running down some dead end roads. 2: i did install imagick via: sudo apt-get install imagemagick no help 3: you are 100% correct renegading 777 , It was a despera...

Go to advanced search