Go to advanced search

by MarkDH102
Sat Aug 17, 2019 5:29 pm
Forum: Python
Topic: No data written in CSV file
Replies: 8
Views: 380

Re: No data written in CSV file

I've never used log before,but my assumption is that it needs to be closed before you can read the file. Also,it is better to specify an absolute path. Although as you can see the file this doesn't matter so much. There may also be a flush operation which you can call after each write which will com...
by MarkDH102
Thu Aug 15, 2019 10:53 am
Forum: General discussion
Topic: Pi Zero W Temperature issue
Replies: 3
Views: 245

Re: Pi Zero W Temperature isuue

In your python script, do you have an infinite loop? while true : doYourCode While your python script is running open a cmd prompt and type top (then press ENTER) If it shows python using 100% then that is your problem. If you can, insert a time.sleep(0.1) call : import time while true : doYourCode ...
by MarkDH102
Thu Aug 15, 2019 6:09 am
Forum: General discussion
Topic: Is this possible? Auto copy iOS device images folder.
Replies: 4
Views: 197

Re: Is this possible? Auto copy iOS device images folder.

Why not set up multiple Pi's with cameras to take the photos automatically?
Lot cheaper than Iphones!
by MarkDH102
Wed Jul 17, 2019 11:50 am
Forum: Troubleshooting
Topic: ELM327 doesn't respond to RP3 via Bluetooth
Replies: 5
Views: 270

Re: ELM327 doesn't respond to RP3 via Bluetooth

I would be interested in knowing what model of OBD device you are using and what vehicle you are connecting it to.
I'm looking at doing something similar, but none of the "cheap" OBD adapters seem to fully support ELM327 (or at least don't support the full AT command set).

Cheers.
by MarkDH102
Fri Jul 12, 2019 6:17 am
Forum: Beginners
Topic: setting up claws mail on a Pi Zero W
Replies: 3
Views: 178

Re: setting up claws mail on a Pi Zero W

This is my configuration - it is for an outlook account and I've subtly changed my email address...
The other pages i.e. Send, Receive will be gmail specific. Type gmail pop settings into google and it should give you what you need to know.
Hope this helps.
1.jpg
1.jpg (92.3 KiB) Viewed 90 times
by MarkDH102
Sat Jun 29, 2019 4:36 am
Forum: General discussion
Topic: How do I avoid installing Buster?
Replies: 9
Views: 477

Re: How do I avoid installing Buster?

...dist-upgrade or apt full-upgrade will not take you to a newer release, why do you believe that ? Well, I just assumed and didn't really know the answer which is why I asked the question. :D That opens another question for me. Can the "sources" file be changed by a dist or full upgrade without me...
by MarkDH102
Sat Jun 29, 2019 4:17 am
Forum: General discussion
Topic: How do I avoid installing Buster?
Replies: 9
Views: 477

How do I avoid installing Buster?

I am about to do my end of month update on all of my Pi's and I don't want to move from Stretch. I normally do : sudo apt-get update && sudo apt-get upgrade. If stuff has been "held back" I then do a sudo apt-get dist-upgrade. I assume that the first 2 will still be ok, but a dist-upgrade will updat...
by MarkDH102
Fri Jun 28, 2019 6:15 am
Forum: Beginners
Topic: Autostart in Raspbian Buster...
Replies: 19
Views: 2178

Re: Autostart in Raspbian Buster...

Sigh. Why does Linux keep breaking "simple" things on each new distro? Glad I found this as IF I ever update my 10 Stretch Pi's then I will have to make changes to them all regarding this issue... I know Microsoft have had issues but I can still run VB6 compiled applications amongst other legacy sof...
by MarkDH102
Sun Jun 23, 2019 6:06 am
Forum: Troubleshooting
Topic: [solution] WiFi refuses to connect
Replies: 7
Views: 1085

Re: WiFi refuses to connect

I had this problem with a Pi0W that had been running fine for a couple of years (24/7) about 3 months ago. I could not resolve it and ended up re-flashing the SD card. I also did the "fix" below. It has worked since. I was running with a screen attached but no mouse/kbd and was trying to connect via...
by MarkDH102
Mon Jun 17, 2019 5:08 pm
Forum: Off topic discussion
Topic: Communicating with a RS232 generic ublox GPS
Replies: 0
Views: 1018

Communicating with a RS232 generic ublox GPS

I have a 3.3V RS232 Ublox chipset GPS connected to my Pi via the serial lines. No problems. Works well. However, I wanted to disable some of the NMEA messages and to do this I needed to use ublox u-center software. This runs on Windows. I don't have a USB-Serial adapter that works on 3.3V. But I did...
by MarkDH102
Wed Jun 05, 2019 6:23 am
Forum: Python
Topic: Why wasn't this error trapped?
Replies: 2
Views: 238

Re: Why wasn't this error trapped?

Ok, thanks for that link. A bit of heavy reading first thing in the morning!
As yet, I still haven't been able to figure out how to get around the issue, but I'm sure that with a longer read, it will come to me...
by MarkDH102
Tue Jun 04, 2019 4:26 pm
Forum: Python
Topic: Why wasn't this error trapped?
Replies: 2
Views: 238

Why wasn't this error trapped?

I have some code that has been running ok for a number of years now but this morning it failed. It is invoked as a callback in tkinter. Python3. So it appeared to fail at the "name resolution" in the initial allocation of "server", but why didn't my try..except..finally catch it properly? Function a...
by MarkDH102
Sun Jun 02, 2019 6:14 am
Forum: AIY Projects
Topic: Illegal Instruction on import of google assistant
Replies: 2
Views: 361

Re: Illegal Instruction on import of google assistant

Ah, ok, great :-( . Thanks for that.
So it would appear I can't run my code on the Pi Zero W at all then. And I put everything in a nice little box too. (Only the zero form factor will fit in there).
Oh well, you live and learn.
by MarkDH102
Sat Jun 01, 2019 2:53 pm
Forum: AIY Projects
Topic: Illegal Instruction on import of google assistant
Replies: 2
Views: 361

Illegal Instruction on import of google assistant

I had a fully working system (AIY Voice) on my Pi2B V1.1 with a Logitech USB microphone and an Edimax WiFi dongle attached. I updated / upgraded the card and it all still worked. I then put the card into a Pi0W and now I get "Illegal Instruction" when I try to do : from google.assistant.library.even...
by MarkDH102
Thu May 09, 2019 6:31 am
Forum: Beginners
Topic: Sending e-mail notifications when temperature is over 8°C
Replies: 1
Views: 112

Re: Sending e-mail notifications when temperature is over 8°C

This is what I use to email temperature alarms from my sensor. import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage import signal class TimeoutException(Exception) : pass def _timeout(signum, frame) : raise TimeoutE...
by MarkDH102
Tue Apr 30, 2019 6:13 am
Forum: General discussion
Topic: Problem with range of 433 Mhz receiver
Replies: 8
Views: 449

Re: Problem with range of 433 Mhz receiver

Signal levels are so weak, and the "modulation method" so simple, that even if 0.001% of a PI generated signal will overwhelm the receiver if its too close. It will simply "see" the 433MHz signal all the time. A "better receiver", (meaning more sensitive) will therefore not help. That's very intere...
by MarkDH102
Mon Apr 29, 2019 6:20 am
Forum: Beginners
Topic: raspberry pi as a server watchdog
Replies: 7
Views: 417

Re: raspberry pi as a server watchdog

The Raspberry Pi is just as likely to go down as your server in my opinion. Too much underlying code. I would look at using an ESP8266 or a similar Arduino solution. I have ESP8266 and Arduino code that has been running for a couple of years with no intervention ( and the internal watchdog has never...
by MarkDH102
Sat Apr 27, 2019 6:15 am
Forum: Troubleshooting
Topic: DHT22 Accuraty.
Replies: 2
Views: 178

Re: DHT22 Accuraty.

I too use the BME280.
I used to use the DHT22 but running the 2 in parallel showed the BME280 seemed to be more accurate.
My DHT22 were always reading about 20% over the correct level - but were consistent...
by MarkDH102
Sat Apr 27, 2019 6:07 am
Forum: General discussion
Topic: weight scales: Do-able with Raspberry?
Replies: 5
Views: 405

Re: weight scales: Do-able with Raspberry?

I have successfully used a Wii Fit board (Bluetooth to the Pi). I control power to the Wii Fit via a relay (which required dismantling the Wii Fit (very easy) ). I use it as a personal weigher. The other thing I had to do was attach a 1000uF capacitor across the 5V rail of my Pi zero W as when the W...
by MarkDH102
Tue Apr 09, 2019 6:25 am
Forum: General discussion
Topic: GIVE YOUR RASPBERRY PI SD CARD A BREAK: LOG TO RAM
Replies: 19
Views: 4487

Re: GIVE YOUR RASPBERRY PI SD CARD A BREAK: LOG TO RAM

In all of my data logging pi's, I log the data to RAM for 24 hours and then commit it to SD card (and email a copy) at midnight. Other than that my applications do not write to the SD card. These Pi's are also UPS protected... But I have had a couple of SD cards go write only on me (and only after a...
by MarkDH102
Fri Mar 29, 2019 8:07 am
Forum: Troubleshooting
Topic: VNC Interface won't stay enabled
Replies: 15
Views: 860

Re: VNC Interface won't stay enabled

No, I'm using the standard REALVNC. 3 * Pi0w are all exhibiting the same problem. All my pi's - Stretch - are updated once a month. I can't say when the problem started, as I had a power cut, all my pi's rebooted. Then found I couldn't connect. I only have a screen plugged into one of them and after...
by MarkDH102
Fri Mar 29, 2019 7:15 am
Forum: Python
Topic: RF Communication with Python (Send Only)
Replies: 11
Views: 2249

Re: RF Communication with Python (Send Only)

I actually use a homebrew ATMEGA328p internal Xtal, minimum components and a RFM12B module to do the sending/receiving and then connect it to my Pi0W via the serial port and 3v3 and drive all "send RF" comms that way.
by MarkDH102
Fri Mar 29, 2019 7:11 am
Forum: Troubleshooting
Topic: VNC Interface won't stay enabled
Replies: 15
Views: 860

Re: VNC Interface won't stay enabled

This really needs sorting or a sticky being put up somewhere. It seems to be catching a lot of people out.
Is it a bug in the kernel? Why after many years of VNC working fine has it suddenly started happening?
by MarkDH102
Tue Mar 19, 2019 4:34 pm
Forum: Troubleshooting
Topic: SOLUTION: VNC does not start on a headless Raspberry pi.
Replies: 10
Views: 1905

Re: SOLUTION: VNC does not start on a headless Raspberry pi.

Many thanks for this - I've just been redirected here from my own thread.
Works for me...
by MarkDH102
Tue Mar 19, 2019 4:33 pm
Forum: Troubleshooting
Topic: Why does my RealVNC start so late after boot up
Replies: 2
Views: 188

Re: Why does my RealVNC start so late after boot up

Many, many thanks for this pointer.
I now have a working system again.
I was beginning to tear my hair (what's left of it) out!

Go to advanced search