Go to advanced search

by bugsy_malone 666
Sun Oct 17, 2021 3:34 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

Sorry, those sensors are rubbish, and they basically corrode away very quickly. You should have more success with a capacitive sensor, but they all suffer due to exposure to the elements. Yeah I learned that pretty quickly, after looking around on the internet it seems the answer is to change the b...
by bugsy_malone 666
Mon Oct 11, 2021 10:08 am
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

So changing the time sleep at the bottom of the program will make no difference , all it does is keep the program running , you can set any time you like and it will not change how the program runs, because you are using event detect to trigger the sending of mail. So as soon as an even is detected...
by bugsy_malone 666
Mon Oct 11, 2021 8:42 am
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

Hi dude, I have a suspicion as to what part of my problem might be, it could be degradation the sensors and the fact they are on and off variety. I got them from Amazon, https://www.amazon.co.uk/AZDelivery-Hygrometer-Moisture-Module-Arduino/dp/B07CNRJN8W/ref=sr_1_3?dchild=1&keywords=moisture+sen...
by bugsy_malone 666
Sat Oct 09, 2021 6:39 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

So I thought I’d come back and say thanks for the help, it’s been working ok now for a week, the only issue I do get is at the point where it detects moisture change drying out, I get about 30 emails! When I water it, I only get one. I appreciate the help a lot as it’s now so,etching that works and ...
by bugsy_malone 666
Thu Sep 30, 2021 7:20 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

pcmanbob wrote:
Thu Sep 30, 2021 7:05 am
I suggest you edit your posted code and remove the usernames and password .
I did that on all the rest, I thought I’d done it on this one, I’ve changed it now thought!

Yesterday was a bit of a long day.
by bugsy_malone 666
Wed Sep 29, 2021 9:35 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

If you get your email working first then I will help you set up your code using my example code to do the actual sending. Yes you just need to set up the gpio pin in the same way, but you will have to change the call back name if you want it to run a different function. So the good news is, the bas...
by bugsy_malone 666
Wed Sep 29, 2021 7:13 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

If you get your email working first then I will help you set up your code using my example code to do the actual sending. Yes you just need to set up the gpio pin in the same way, but you will have to change the call back name if you want it to run a different function. So the good news is, the bas...
by bugsy_malone 666
Wed Sep 29, 2021 12:36 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

Seeing as you are using gmail as the account to send from , have you selected " allow less secure apps " on the account in question ? I always suggest you set up a separate account for use with your pi because of this. and follow these simple rules 1. only use A-Z, a-z, 0-9 and the full s...
by bugsy_malone 666
Tue Sep 28, 2021 9:43 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

Python 3 is the latest version. All new development will occur with Python 3. Python 2 is essentially end-of-life. Since you are new to coding then you will have no baggage with you, so you can go straight into Python 3 and not care about the previous version. And, as you have discovered, the Pytho...
by bugsy_malone 666
Tue Sep 28, 2021 9:19 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

I think I came across that link you provided while trying to do my own searches, but what I was confused by is the different format of how people were trying to send mail. Also whats the advantage of python3? I tried running that same file in python3 and get this error now: File "moisture2.py&q...
by bugsy_malone 666
Tue Sep 28, 2021 6:40 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Re: Automated email send out on event not working

Ok so I tried the first option and just hashed out the code you suggested: def sendEmail(smtp_message): # try: smtpObj = smtplib.SMTP(smtp_host, smtp_port) smtpObj.login(smtp_username, smtp_password) # If you don't need to login to your smtp provider, simply remove this line smtpObj.sendmail(smtp_se...
by bugsy_malone 666
Tue Sep 28, 2021 6:32 am
Forum: Automation, sensing and robotics
Topic: DHT11 randomly showing invalid results
Replies: 3
Views: 392

Re: DHT11 randomly showing invalid results

So just a question on wiring, have you added a pullup resistor? https://cdn-learn.adafruit.com/guides/images/000/000/096/medium800/dht11wiring.gif I never found the DHT11 all that accurate, for the most part its ok though. Pullup resistors can make all the difference though between accurate and rand...
by bugsy_malone 666
Mon Sep 27, 2021 8:11 pm
Forum: Automation, sensing and robotics
Topic: Automated email send out on event not working
Replies: 25
Views: 1234

Automated email send out on event not working

So this week I decided to try something new which was an automated email notification when some chilli plants I am growing need watering. I used the tutorial from here: https://thepihut.com/blogs/raspberry-pi-tutorials/raspberry-pi-plant-pot-moisture-sensor-with-email-notification-tutorial downloade...
by bugsy_malone 666
Fri Aug 21, 2020 6:39 am
Forum: HATs and other add-ons
Topic: Pi TV Hat questions
Replies: 19
Views: 8301

Re: Pi TV Hat questions

Thats a shame :( I wonder though how 'digital radio' is done through TVs, if its dont through DAB signal or through the DVB one, as then you would be able to pick up some digital radio stations :) There are some "radio stations" (actually they're TV stations with digital graphics but with...
by bugsy_malone 666
Thu Aug 20, 2020 2:55 pm
Forum: HATs and other add-ons
Topic: Pi TV Hat questions
Replies: 19
Views: 8301

Re: Pi TV Hat questions

So has anyone managed to use one of these hats to receive DAB? I was looking at getting one with the main intention of a supported device that might be able to receive DAB for something like a OSMC/Kodi media player where I could listen to Radio too, as I did try using one of the usb sticks, but it...
by bugsy_malone 666
Thu Aug 20, 2020 12:18 pm
Forum: HATs and other add-ons
Topic: Pi TV Hat questions
Replies: 19
Views: 8301

Re: Pi TV Hat questions

So has anyone managed to use one of these hats to receive DAB? I was looking at getting one with the main intention of a supported device that might be able to receive DAB for something like a OSMC/Kodi media player where I could listen to Radio too, as I did try using one of the usb sticks, but it ...
by bugsy_malone 666
Wed Aug 14, 2019 7:46 am
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

The cable was plugged in first, but I ran the command when I pressed 'ipod' on the head unit and it starts communicating.

As for disconnecting the cable at any point, no, I did have to reboot the pi a couple of times though (WiFi connection slowdown)
by bugsy_malone 666
Tue Aug 13, 2019 8:53 pm
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

Right managed to find a spare 20 minutes tonight to carry on. Connected all the grounds up on my socket as per the lightening adapters I have and sure enough suddenly my head unit recognizes there is an ipod connected. Click on it and it says waiting for communication. Used these commands: sudo pigp...
by bugsy_malone 666
Tue Aug 13, 2019 12:39 pm
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

Yeah its the reverse engineering part that becomes a little fun! When pretending to be a dock and tell an iDevice what to do, it seems to tell the device by a type of resistor value, however the other way round doesnt seem so straight forward, thats why I was thinking of plugging the raspberry pi in...
by bugsy_malone 666
Tue Aug 13, 2019 7:48 am
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

Now basically the head unit will know there is an iDevice and start communication even if just this adapter is plugged in with no apple product involved. Are you saying it does, or is that what you were hoping for ? I doubt it has made things work, because ... The chip only connects to the lighting...
by bugsy_malone 666
Mon Aug 12, 2019 9:51 pm
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

So I got as far as making my serial sniffing cable tonight, as I'd bough a 30pin 'extension' cable that turned out to literally only have the USB connection wires in, on the plus side the 'Socket' had a PCB attached with 30 solder holes - PodSocket used to be something like this, but was fairly expe...
by bugsy_malone 666
Mon Aug 12, 2019 10:00 am
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

OK it's a head unit for a car that talks to an apple 30pin connector, but when you select the apple connection, it says establishing comms, now I have seen the protocols for telling ipods what to do, but there's not any mention of a handshake. I have a Bluetooth dongle that works on 30pin docks but ...
by bugsy_malone 666
Sun Aug 11, 2019 2:42 pm
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

Unfortunately I do need to reverse engineer it, I have something with said connector type and I need to find out what is the communication the unit tries to initial first. So essentially I am trying to sniff what comes out the serial comms first from the Device I am trying to interface with (that ha...
by bugsy_malone 666
Sun Aug 11, 2019 1:26 pm
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

Re: 'Sniffing' Serial Commands?

So I guess heres one thing I am trying to understand, what is the output you get from Serial Sniffing? will it look something like this: 0xFF,0x55,0x03,0x02,0x00,0x01,0xFA ? apparently for what I am connected to, this is the spec: ser.baudrate = 19200 ser.bytesize = serial.EIGHTBITS ser.parity = ser...
by bugsy_malone 666
Sun Aug 11, 2019 12:29 pm
Forum: General discussion
Topic: 'Sniffing' Serial Commands?
Replies: 25
Views: 3116

'Sniffing' Serial Commands?

As part of something I am trying to reverse engineer, something I need to do is 'sniff out' serial commands that are coming out of a connection. The question is whats the best way to do this? I think I can find out values for some of the serial commands, so could maybe define them, but I basically n...

Go to advanced search