Search found 43 matches
- Tue Dec 29, 2020 7:20 pm
- Forum: Python
- Topic: Labels on matplotlib
- Replies: 6
- Views: 182
Re: Labels on matplotlib
I took a look at some of the matplotlib docs and came to the conclusion that the methods I was proposing for label formatting were unnecessarily complicated. The following code works for me: import matplotlib.pyplot as plt import matplotlib.ticker as ticker date = ['12152300', '12152330', '12160000...
- Mon Dec 28, 2020 10:01 am
- Forum: Python
- Topic: Labels on matplotlib
- Replies: 6
- Views: 182
Re: Labels on matplotlib
I found that ticker.FixedLocator expects the location of the ticks (their index values), not the tick values. Something like this works for me: import matplotlib.pyplot as plt import matplotlib.ticker as ticker date = ['12152300', '12152330', '12160000', '12160030', '12160100', '12160130', '1216020...
- Sun Dec 27, 2020 12:15 pm
- Forum: Python
- Topic: Labels on matplotlib
- Replies: 6
- Views: 182
Re: Labels on matplotlib
Having over-consumed on 20201225, I can only suggest the following: First, look at the matplotlib ticker module https://matplotlib.org/3.3.3/api/ticker_api.html <snip> Thanks for the follow up. I've tried looking at the documentation that you suggested, but (for me) it didn't make any sense. Yes, I...
- Sat Dec 26, 2020 1:02 pm
- Forum: Python
- Topic: Labels on matplotlib
- Replies: 6
- Views: 182
Labels on matplotlib
I'm trying to produce a set of graphs using matplotlib. I can get the basics of what I'm after, but I've got a problem with the X axis. My data is temperature and humidity, which are measured every minute, and the results are logged into a csv file. I subsequently read the csv file and plot the grap...
- Sat Aug 15, 2020 12:04 pm
- Forum: Camera board
- Topic: Problem with Motion reinstall
- Replies: 0
- Views: 109
Problem with Motion reinstall
Apologies if this is the wrong area for this. For several years, I've been running a Pi 2 with the Motion package and a Pi Cam. This was running Wheezy and Motion version mmaltest. For various reasons, I've had to move to a Pi 3 running Buster and Motion 4.1.1. Whilst everything installs and runs, t...
- Tue Jun 16, 2020 1:01 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
Apart from having to tweak a couple of scripts (ssmtp has been replaced with msmtp), that seems to have gone OK. Time will tell if it fixes the original problem. And up until 0639 this morning it has worked fine. Since then I've been back to the original problem. I've tried rebooting, but that hasn...
- Mon Jun 15, 2020 12:23 pm
- Forum: Networking and servers
- Topic: Apache2 403 error on rebuilt Pi
- Replies: 4
- Views: 422
Re: Apache2 403 error on rebuilt Pi
You changed the DocumentRoot to /media/extdisc1/webstuff. You also need to give Apache the permission for HTTP access to this filesystem path. E.g. the permission for HTTP-access to /var/www is given in /etc/apache2/apache2.conf Thanks. That looks like something that has changed since I originally ...
- Sun Jun 14, 2020 7:36 pm
- Forum: Networking and servers
- Topic: Apache2 403 error on rebuilt Pi
- Replies: 4
- Views: 422
Re: Apache2 403 error on rebuilt Pi
You changed the DocumentRoot to /media/extdisc1/webstuff. You also need to give Apache the permission for HTTP access to this filesystem path. E.g. the permission for HTTP-access to /var/www is given in /etc/apache2/apache2.conf Thanks. That looks like something that has changed since I originally ...
- Sun Jun 14, 2020 10:51 am
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
Apart from having to tweak a couple of scripts (ssmtp has been replaced with msmtp), that seems to have gone OK. Time will tell if it fixes the original problem. Adrian And up until 0639 this morning it has worked fine. Since then I've been back to the original problem. I've tried rebooting, but th...
- Sat Jun 13, 2020 4:34 pm
- Forum: Networking and servers
- Topic: Apache2 403 error on rebuilt Pi
- Replies: 4
- Views: 422
Re: Apache2 403 error on rebuilt Pi
I had a thought.
As root, I created a softlink called webstuff from /var/www/html to /media/extdisc1/webstuff and then altered the DocumentRoot to /var/www/html/webstuff and I can now load my php files.
The question now is why does it work with a softlink, but not with the actual path ?
Adrian
As root, I created a softlink called webstuff from /var/www/html to /media/extdisc1/webstuff and then altered the DocumentRoot to /var/www/html/webstuff and I can now load my php files.
The question now is why does it work with a softlink, but not with the actual path ?
Adrian
- Fri Jun 12, 2020 11:49 am
- Forum: Networking and servers
- Topic: Apache2 403 error on rebuilt Pi
- Replies: 4
- Views: 422
Apache2 403 error on rebuilt Pi
I've just rebuilt a Pi2 from Stretch to Buster (by replacing the SD card), and now I can't get Apache2 to work properly. On the basic install it is OK, the index page in /var/www comes up as expected. However, I'm running all my web stuff from a locally mounted disc (/media/extdisc1) I've made a cop...
- Tue May 19, 2020 11:13 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
apt will not migrate from Jessie or Stretch to Buster, it's not set-up to do that in Raspbian. The easy way to Buster is a fresh SDCard and a fresh download. You then lift programs and data from the original SDCard. Thanks. I think I know what I might be doing tomorrow :( Adrian Apart from having t...
- Sun May 17, 2020 6:51 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
Thanks. I think I know what I might be doing tomorrowDougieLawson wrote: ↑Sun May 17, 2020 6:22 pmapt will not migrate from Jessie or Stretch to Buster, it's not set-up to do that in Raspbian.
The easy way to Buster is a fresh SDCard and a fresh download. You then lift programs and data from the original SDCard.

Adrian
- Sun May 17, 2020 6:00 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
Raspbian Buster includes python3.7 and a matching pip3 (for python3.7) no additional set-up required. Thanks. I had already started doing that (I think) when your reply came through. After what felt like half a lifetime, it completed, and I rebooted. The good news is that pip3 now works, but I'm ra...
- Sun May 17, 2020 1:34 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
Mines on Pi Zero's I use Pimoroni's code, but the adafruit is https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout based around their circuit python. the soft reset was something I read in their forum or github. I have no idea why it happens. I've had ...
- Thu May 14, 2020 4:15 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
This happens to mine. It's as if the BME280 goes to sleep and looses the i2c connection/address, but a bit later it sees it again (don't know how long as I just let mine fail at the moment and stop) I need to build some code in to mine so it can ignore it, there is another problem where they don't ...
- Thu May 14, 2020 3:15 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Re: Intermittent BME280 problem
If you add dtoverlay=i2c-sensor,bme280 to /boot/config.txt and reboot the your BME280 will appear as /sys/bus/iio/devices/iio:device0 and there's nothing special needed to read that. You should be able to do something similar for BME280 in the same way. The filenames in the /sys filesystem may chan...
- Thu May 14, 2020 1:06 pm
- Forum: Weather station
- Topic: Intermittent BME280 problem
- Replies: 14
- Views: 1809
Intermittent BME280 problem
I've been using the BME280 for a while now (months) on one of my PIs, but in the last couple of days, I've been starting to see an intermittent problem with it. I'm reading it every minute, and for a period of time (variously between 20 minutes and an hour), I get the following message : Traceback (...
- Sat Nov 09, 2019 1:44 pm
- Forum: Networking and servers
- Topic: WiFi not working on Pi3
- Replies: 0
- Views: 196
WiFi not working on Pi3
I'm running a PI3 with an OS of 4.19.80-v7+ power supply is the Official Pi 2.5A unit. The Pi works happily using Ethernet, but I can't get the WiFi side of things to work. I can scan for routers, and can see both of my routers (*) and various other ones, however when I enter the WiFi password nothi...
- Sat Nov 02, 2019 3:36 pm
- Forum: HATs and other add-ons
- Topic: I2C issue
- Replies: 10
- Views: 1981
Re: I2C issue
Typical backpack at https://www.sunrom.com/p/i2c-lcd-backpack-pcf8574 Schematic https://www.sunrom.com/media/content/1049/PCF8574-I2C-LCD-SCHEMATIC.gif. Note r8 and r9 being 4k7 pull ups to Vcc, which you've connected to 5V. The Pi already has I2C pull ups, so you can just remove the ones on the ba...
- Sat Nov 02, 2019 1:31 pm
- Forum: HATs and other add-ons
- Topic: I2C issue
- Replies: 10
- Views: 1981
Re: I2C issue
If your PCF8574 backpack is the same as mine then it has I2C pullups to the supply rail, which you've wired to 5V. In which case the I2C lines may have been blown due to overvoltage. In my case they are the two resistors just to the left of the PCF chip in the run of 4. It looks like they are label...
- Wed Oct 30, 2019 10:29 pm
- Forum: HATs and other add-ons
- Topic: I2C issue
- Replies: 10
- Views: 1981
Re: I2C issue
A clear photo of the connections between the Pi and the LCD1602 might help. An LCD1602 isn't an I2C device so it would not be visible on an I2C bus. Hopefully these help. PA300001.JPG PA300002.JPG Adrian You appear to be using an LCD1602 with a "hard-wired" PCF8574-based I2C interface. Ar...
- Wed Oct 30, 2019 10:26 pm
- Forum: HATs and other add-ons
- Topic: I2C issue
- Replies: 10
- Views: 1981
Re: I2C issue
I'd take the HAT out for the time being and connect the PCF8574 direct to the Pi. You can leave it attached to the LCD1602. Connect it direct to SDA/SCL, 5V and ground and see if it is detected by i2cdetect. Thanks, I'll see if I can find some suitable connectors (the ones that I've got are too big...
- Wed Oct 30, 2019 9:38 pm
- Forum: HATs and other add-ons
- Topic: I2C issue
- Replies: 10
- Views: 1981
- Wed Oct 30, 2019 7:35 pm
- Forum: HATs and other add-ons
- Topic: I2C issue
- Replies: 10
- Views: 1981
I2C issue
I'm hoping this is in the right place, I'm using a basic HAT to connect the bits together. I've got an I2C issue, and after much searching around, I've drawn a blank. I'm running a PI3 with an OS of 4.19.80-v7+ power supply is the Official Pi 2.5A unit. I've been through the usual update / upgrade r...