Go to advanced search

by pfletch101
Fri Jul 13, 2018 8:21 pm
Forum: Beginners
Topic: HDMI problem
Replies: 6
Views: 848

Re: HDMI problem

I love asking stupid questions....because I make stupid mistakes and if I ask them of myself, I can make fewer of them.... Is the TV on and set to the correct input *before* you apply power to the Pi? Is this generally necessary? I ask because I thought (from first principles) that it might be, but...
by pfletch101
Thu Jul 12, 2018 9:27 pm
Forum: Advanced users
Topic: Solar with RPi Zero v1.3
Replies: 11
Views: 8775

Re: Solar with RPi Zero v1.3

So I've ordered a solar panel that is rated 6volts and 1watt for 1$ USD. Those are based on the absolute maximum the panels can manage. Even in the glorious sunshine the UK has had over the last couple of weeks the couple of panels I've got (10w and 40w) probably only manage to provide about half t...
by pfletch101
Wed Jul 11, 2018 10:18 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 2367

Re: Git clone and apt not working.

The behaviour of your Pi seems good. The protocol http works fine inside your LAN but it fails when you try to access to the internet. The default route looks good. The gateway (your router, 192.168.0.1) is apparently dropping your http connections to the Internet. I believe that the problem is due...
by pfletch101
Wed Jul 11, 2018 9:14 pm
Forum: Python
Topic: Get a table from a website to a CSV file
Replies: 11
Views: 1959

Re: Get a table from a website to a CSV file

The error message appears to be telling you that the variable 'table' has no contents - probably meaning that the soup.find function is failing to find anything meeting the specified search criteria. A fairly quick glance at the source of the target page does seem to confirm that there isn't such a ...
by pfletch101
Wed Jul 11, 2018 2:08 pm
Forum: Beginners
Topic: Yes/No file contents query
Replies: 6
Views: 761

Re: Yes/No file contents query

using bash? https://superuser.com/questions/352289/bash-scripting-test-for-empty-directory using Python? https://thispointer.com/python-how-to-check-if-a-directory-is-empty/ using other programming language? Can try google your programming language name and keywords: 'check if folder is empty'. If ...
by pfletch101
Mon Jul 09, 2018 10:03 pm
Forum: Camera board
Topic: Camera, Video Past 10seconds?
Replies: 5
Views: 1157

Re: Camera, Video Past 10seconds?

Without a time machine or a FTL drive, you can't go back in time! For video, what you have to do is leave the camera running all the time and continuously update a video loop that is longer than your desired 'lookback time'. There are various ways of doing this, in theory, and I am not a Pi video ex...
by pfletch101
Sun Jul 08, 2018 9:26 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 3595

Re: CAn no longer ping by hostname

Try clearing arp cache too: :o :?: https://answers.microsoft.com/en-us/windows/forum/windows_vista-networking/how-do-i-clear-arp-cache/5104cada-3ab8-4c5a-973a-c7a59286ba23 That was part of the previous suggestion and makes no difference :( I now see that pinging the PCs name from the PC returns and...
by pfletch101
Sun Jul 08, 2018 9:04 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 3595

Re: CAn no longer ping by hostname

Try this procedure on your pc: https://social.technet.microsoft.com/wiki/contents/articles/861.clearing-name-and-web-caches-host-dns-and-netbios-wins-and-ie-caches.aspx Unfortunately, that sequence (including clearing the arp cache), which I hadn't seen suggested before, does not solve my Windows s...
by pfletch101
Sun Jul 08, 2018 3:41 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 3595

Re: CAn no longer ping by hostname

If you are running Windows 10 on your PC, the problem may well be at the PC end. Recent Windows 10 versions have had quite well-described problems dealing with device names in the local network. There are various published 'fixes', mostly having to do with two Windows Services that are involved with...
by pfletch101
Sat Jul 07, 2018 3:47 pm
Forum: Automation, sensing and robotics
Topic: Reed Switch Anemometor
Replies: 23
Views: 5505

Re: Reed Switch Anemometor

but your calibration numbers actually look about right to me. 2.4 kph is equal to 0.667 m/sec, and there are two switch closures per revolution, so 6.7 m/sec should give you about 5 rps (= 10 switch closure), which is pretty much what your graph shows. What am I missing? I was just worried if obser...
by pfletch101
Sat Jul 07, 2018 3:32 pm
Forum: Beginners
Topic: LAN Raspberry Pi’s IP is changing
Replies: 9
Views: 963

Re: LAN Raspberry Pi’s IP is changing

My answer was based on the assumption that the OP has no access or access rights to the router settings. If he does have, then he should do the "right way" In some ways, it is even more important to do it the 'right way' if you don't have direct access to the router settings (in which case, the cha...
by pfletch101
Fri Jul 06, 2018 9:53 pm
Forum: Automation, sensing and robotics
Topic: Reed Switch Anemometor
Replies: 23
Views: 5505

Re: Reed Switch Anemometor

I am struggling (kind of) with anemometer used on meteostations WH1080 WH1090 WS0101 WH2080 (and many others brands probably). https://www.amazon.de/gp/product/B00GGM5HEA/ref=ask_ql_qh_dp_hza In the documentation they say: The cup-type anemometer measures wind speed by closing a contact as a magnet...
by pfletch101
Fri Jul 06, 2018 9:33 pm
Forum: Beginners
Topic: port 80 is closed
Replies: 12
Views: 5628

Re: port 80 is closed

Why all of the modem-router ports are always closed. Don't know why? Security! You don't want anyone able to access anything on your network unless you have set things up properly for this to be done safely. Typically, the router is itself a small, special-purpose computer, so you particularly don'...
by pfletch101
Fri Jul 06, 2018 2:43 pm
Forum: Troubleshooting
Topic: Problems after latest update
Replies: 1
Views: 248

Re: Problems after latest update

Problem 1: It sounds as if the user persona you log in with (presumably the pi user) does not now have sufficient access rights to the html folder. You can either change the 'everyone' rights to permit writing (and execute for the folder) or, better, put the pi user in a group that has or can be giv...
by pfletch101
Fri Jul 06, 2018 12:02 am
Forum: Python
Topic: FileNotFoundError: [Errno 2] No such file or directory: 'insults.csv'
Replies: 3
Views: 10414

Re: FileNotFoundError: [Errno 2] No such file or directory: 'insults.csv'

Things to recheck: 1) The file 'insults.csv' exists and is located in /home/pi/, and that is where you are running the script from . The fact that the error message gives a full path for the script strongly suggests that you are running it from somewhere other than the directory it is in: perhaps as...
by pfletch101
Thu Jul 05, 2018 10:25 pm
Forum: Beginners
Topic: LAN Raspberry Pi’s IP is changing
Replies: 9
Views: 963

Re: LAN Raspberry Pi’s IP is changing

Your Raspberry Pi's IP address will change if you set it to get it's IP address automatically from DHCP server (your router or server running DHCP service) To fix your problem, search for the procedure for setting a fixed IP address to your Raspberry Pi. Yes and no. The 'right' way of assigning 'fi...
by pfletch101
Thu Jul 05, 2018 10:15 pm
Forum: Python
Topic: ImportError: no module named zbar
Replies: 19
Views: 11445

Re: ImportError: no module named zbar

One more thing: having done a bit of Googling, I believe that your scanner declaration should actually read:

Code: Select all

scanner = zbar.ImageScanner()
by pfletch101
Thu Jul 05, 2018 10:06 pm
Forum: Python
Topic: ImportError: no module named zbar
Replies: 19
Views: 11445

Re: ImportError: no module named zbar

I have also just noticed a possible explanation for some of your earlier problems. You repeatedly show your code as:

Code: Select all

proc = zbar.Procedure()
when what you appear to be wanting to write is

Code: Select all

proc = zbar.Processor()
by pfletch101
Thu Jul 05, 2018 9:59 pm
Forum: Python
Topic: ImportError: no module named zbar
Replies: 19
Views: 11445

Re: ImportError: no module named zbar

I've just about got to the point where I throw the Raspberry pi in the bin and take up knitting instead! I can't find any documentation on GitHub specific to zbar-py apart from readme.py which appears to be identical to DESCRIPTION.rst in the /usr/local/lib/python3.5/dist-packages/zbar_py-1.0.4.dis...
by pfletch101
Thu Jul 05, 2018 9:24 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3b+ with Xiaomi Mi Router 3
Replies: 4
Views: 943

Re: Raspberry Pi 3b+ with Xiaomi Mi Router 3

I think that you need to be more precise about what you mean by "did not connect". Does the Pi not see the router at all, or does it fail to negotiate a connection after you select its SSID and enter the appropriate password? Do you have the Country set correctly in the Pi's WiFi setup (remember tha...
by pfletch101
Thu Jul 05, 2018 2:29 pm
Forum: Networking and servers
Topic: Bridging possible ??
Replies: 7
Views: 1010

Re: Bridging possible ??

I think that the easiest approach is going to require getting hold of a WiFi router, setting it up to serve the 192.168.4.nnn subnet (I assume that your Pi's IP address is fixed in its settings), and hooking the router's WAN port up to the internet, via whatever connection your laptop is currently u...
by pfletch101
Thu Jul 05, 2018 3:36 am
Forum: Networking and servers
Topic: Bridging possible ??
Replies: 7
Views: 1010

Re: Bridging possible ??

Does that Pi AP serve clients? Is there another wifi Access Point/router on the network? No and no... it's as shown in the diagram So what is the Pi AP for? If it is not connected to the internet (in which case you wouldn't have a problem), and is not connected to any other clients, what is it prov...
by pfletch101
Thu Jul 05, 2018 1:09 am
Forum: Advanced users
Topic: I want MySQL instead of MariaDB
Replies: 54
Views: 31444

Re: REAL MySQL instead of MariaDB

I'm struggling with this also. I keep reading that Mariadb " is a drop in relpacement" not sure how people are saying this! the default mariadb install in stretch is just junk! To date (been working on this for a few weeks off and on) I have yet to find a gui client that works with it, and all my p...
by pfletch101
Thu Jul 05, 2018 12:55 am
Forum: Beginners
Topic: measuring water depth
Replies: 6
Views: 1376

Re: measuring water depth

Just to show how odd some solutions problems can be, this is a problem my father posed for his students at the Maritime Training Center. You are on a tanker by the access port into a tank. There is oil in the tank. Under the oil is sea water. You know the dimentsions of the tank. You have an ohmmet...
by pfletch101
Wed Jul 04, 2018 9:58 pm
Forum: Automation, sensing and robotics
Topic: Measuring the distance of a painted path with pi camera
Replies: 16
Views: 2080

Re: Measuring the distance of a painted path with pi camera

Competition Rule 1.4: "The robot must be designed and built by the competitors alone." There it is. So, cheers and good luck Kazuto25 Well....yes and no! This isn't my area, so I can't help, but I would interpret "designed and built by the competitors alone" rather less rigidly that you apparently ...

Go to advanced search