Go to advanced search

by smithjames0
Thu Oct 29, 2020 10:44 am
Forum: Python
Topic: Installing packages
Replies: 8
Views: 303

Re: Installing packages

May thanks, that worked :D
by smithjames0
Thu Oct 29, 2020 8:00 am
Forum: Python
Topic: Installing packages
Replies: 8
Views: 303

Re: Installing packages

A fresh install of Buster lite download yesterday.

Regards
James
by smithjames0
Thu Oct 29, 2020 7:54 am
Forum: Python
Topic: Installing packages
Replies: 8
Views: 303

Re: Installing packages

Thanks for the quick replies 8-) I have installed $ sudo apt-get install libopenjp2-7 successfully, just check again libopenjp2-7 is already the newest version (2.3.0-2+deb10u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I've tried using pip3 install -r requirements.txt pi@raspb...
by smithjames0
Thu Oct 29, 2020 7:28 am
Forum: Python
Topic: Installing packages
Replies: 8
Views: 303

Installing packages

Hi, I hope someone can help with my problem! I am trying to setup a train departure screen script on a Pi Zero W, I have clone it from GitHub here I ran into problems with the install when it said $ pip install -r requirements.txt I tried to use $ apt-get pip3 install -r requirements.txt but I got a...
by smithjames0
Sat Mar 23, 2019 10:09 pm
Forum: Python
Topic: PiCamera issue
Replies: 2
Views: 279

Re: PiCamera issue

Thanks for the help, I tried loads of setting but could not get an image any where near as good so I opted for

Code: Select all

      cam = "raspistill -w 600 -h 450 -rot 180 -ev +3  -o /home/pi/CoopControl/stills/" + DATE1 + ".jpg"
      os.system(cam)

Regards
James
by smithjames0
Sat Mar 23, 2019 8:25 pm
Forum: Python
Topic: PiCamera issue
Replies: 2
Views: 279

PiCamera issue

Hi, I have been using raspistill in a Bash script for some time running via a cron job without any issues. raspistill -w 600 -h 450 -rot 180 -ev +3 -o /home/pi/CoopControl/stills/$DATE1.jpg Today I have had a play with PiCamera in python, this worked ok during daylight hours but when it went dark I ...
by smithjames0
Fri Feb 15, 2019 5:50 pm
Forum: Python
Topic: Problem with variables
Replies: 2
Views: 294

Re: Problem with variables

Thanks ! I spent hours on that last night!


Regards
James
by smithjames0
Thu Feb 14, 2019 9:29 pm
Forum: Python
Topic: Problem with variables
Replies: 2
Views: 294

Problem with variables

Hi, I have search google long and hard to find an answer, but nothing I try works :roll: I have the following code for pushover to send a picture def pushdone(pushmessage): path = 'stills' os.chdir(path) files = sorted(os.listdir(os.getcwd()), key=os.path.getmtime) newest = files[-1] imagepath = 'st...
by smithjames0
Wed Aug 15, 2018 5:52 am
Forum: Beginners
Topic: mariadb connection
Replies: 3
Views: 541

Re: mariadb connection

Thanks for your help, I used After=mysql.service


Regards

James
by smithjames0
Mon Aug 13, 2018 4:51 pm
Forum: Beginners
Topic: mariadb connection
Replies: 3
Views: 541

mariadb connection

Hi, I have a problem with my script starting on boot up. If I start my script from the command prompt it works fine, if I start it from a cron job on boot I get a mysql connection error. Traceback (most recent call last): File "/home/pi/CoopControl/server.py", line 53, in <module> mariadb_...
by smithjames0
Fri Aug 10, 2018 8:38 pm
Forum: Beginners
Topic: Problems with maria db
Replies: 3
Views: 387

Problems with maria db

Hi, I have had mysql db running on Jessie for two years without issue, two weeks ago I bought a new SD card and loaded Stretch with Mariadb and I nothing but problems. The latest one is my insert query, it worked fine before but now I get sql code error :x This my current code def loggerdb(self,mess...
by smithjames0
Sun Jul 29, 2018 8:45 pm
Forum: Troubleshooting
Topic: Issues with Mariadb
Replies: 3
Views: 610

Re: Issues with Mariadb

Thanks for that, I knew it would be something simple. I had stopped mysql to try and get the privileges sorted and didn't restart it :shock:

James
by smithjames0
Sun Jul 29, 2018 12:38 pm
Forum: Troubleshooting
Topic: Issues with Mariadb
Replies: 3
Views: 610

Issues with Mariadb

Hi, I am at my wits end with Mariadb, I have spent the last three days trouble shooting and trying all manor of things to try and get it working correctly but with no luck. My main issue is that I cannot set privileges to the users, I have tried sudo /etc/init.d/mysql stop sudo /usr/sbin/mysqld --sk...
by smithjames0
Wed Mar 21, 2018 11:25 pm
Forum: Python
Topic: Tinkered around with script... and it's stopped working
Replies: 4
Views: 658

Re: Tinkered around with script... and it's stopped working

t2.start() t3.start() t4.start() Those are all in a line, when I copied it across they moved. I was fed up before and forgot to copy the errors! It's only reading the outside temperature sensor, normally it doesn't read the Internal one but the script still works, now it's failing to read the inter...
by smithjames0
Wed Mar 21, 2018 9:24 pm
Forum: Python
Topic: Tinkered around with script... and it's stopped working
Replies: 4
Views: 658

Tinkered around with script... and it's stopped working

Hi, I have a script running the door on the chicken coop, it's been working for well over a year. I had a tinker today as one of the temperature sensors wasn't working and now the whole script doesn't work :shock: I used this script to start with and built on it adding little bits, I have been throu...
by smithjames0
Sat Dec 09, 2017 10:33 am
Forum: Troubleshooting
Topic: Understanding error log
Replies: 0
Views: 262

Understanding error log

Hi, I have been having issues with WIFI disconnecting, so I have this script running to check and reboot where necessary, but it's not working. For some reason the wifi stops working and the script does not reconnect or reboot. I have had a look in the syslog for when the wifi stopped working and I ...
by smithjames0
Sat Nov 25, 2017 4:49 pm
Forum: Beginners
Topic: Wifi query
Replies: 4
Views: 1015

Re: Wifi query

Thanks for the replys, the raspberry lives at the bottom of the garden controlling the chicken coop door, so while it's been working fine I have left it. I will have a look at the drivers.


Thanks

James
by smithjames0
Fri Nov 24, 2017 9:06 pm
Forum: Beginners
Topic: Wifi query
Replies: 4
Views: 1015

Wifi query

Hi, I have a problem with my WIFI going to sleep, I have googled it endlessly but what every I try, fails. I did have it working up till a week ago when I got a new router, I (for some reason) wiped the interfaces file and started a fresh, since then the problem is simple the WIFI goes to sleep :rol...
by smithjames0
Tue Oct 24, 2017 6:34 pm
Forum: Beginners
Topic: warning remote host identification has changed
Replies: 1
Views: 1406

Re: warning remote host identification has changed

Panic over, turns out the raspberry has swapped address with the Mac I am using now! I was trying to connect to myself!


James
by smithjames0
Tue Oct 24, 2017 5:56 pm
Forum: Beginners
Topic: warning remote host identification has changed
Replies: 1
Views: 1406

warning remote host identification has changed

Hi, I have not connected to the raspberry for some months, it currently runs headless at the bottom of the garden. I tried to connect over SSH using Terminal on the Mac as I normally do and got the following message. warning remote host identification has changed When I googled it I found using the ...
by smithjames0
Wed May 31, 2017 8:37 pm
Forum: Troubleshooting
Topic: Raspberry keeps crashing
Replies: 9
Views: 2185

Re: Raspberry keeps crashing

Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux

Model B+

I have checked lsof | wc-1 and it's the same figure as this morning.

James
by smithjames0
Wed May 31, 2017 8:17 am
Forum: Troubleshooting
Topic: Raspberry keeps crashing
Replies: 9
Views: 2185

Re: Raspberry keeps crashing

Might be worth checking the tail end of dmesg if it hasn't locked up. Also worth checking /var/log/syslog (and perhaps others) to see if you can see anything failing. Anything with an error is worth looking at, or there may be hints at what could be happening. Hate to say it, but a lot of random cr...
by smithjames0
Wed May 31, 2017 7:05 am
Forum: Troubleshooting
Topic: Raspberry keeps crashing
Replies: 9
Views: 2185

Re: Raspberry keeps crashing

What kind of program/service is running on the device ? It's a simple script to open/close the chicken coop door + monitor temperature and water level, nothing to taxing :lol: You could at least start monitor memory usage, using "top" or just "cat /proc/meminfo" pi@raspberrypi:~...
by smithjames0
Mon May 29, 2017 7:42 pm
Forum: Troubleshooting
Topic: Raspberry keeps crashing
Replies: 9
Views: 2185

Raspberry keeps crashing

Hi, I have a persistent problem that the raspberry keeps crashing, around Christmas time it would run fine but of late it will only run for a week or less without crashing. The raspberry running headless, controls the chicken coop door and monitors temperature at the bottom of the garden. Sometimes ...
by smithjames0
Sun Apr 09, 2017 7:33 pm
Forum: Python
Topic: Passing variables
Replies: 5
Views: 908

Re: Passing variables

thanks for the reply I ended up using that, it turns it would have worked the first way I tried but I forgot the authorized the recipient :roll: :roll: My bad!

Thanks James

Go to advanced search