Go to advanced search

by neilgl
Wed Feb 19, 2020 7:21 pm
Forum: Troubleshooting
Topic: Issue playing .MOV file with VLC
Replies: 3
Views: 55

Re: Issue playing .MOV file with VLC

Convert it using open source Handbrake to a smaller size/bitrate
by neilgl
Wed Feb 19, 2020 11:00 am
Forum: Beginners
Topic: [solved] Accesing RPI on LAN via Browser
Replies: 8
Views: 116

Re: Accesing RPI on LAN via Browser

Yes as B.Goode said, and this works for me

Code: Select all

if __name__ == '__main__':
    app.run_server(host="0.0.0.0", debug=False)
by neilgl
Wed Feb 19, 2020 10:44 am
Forum: Beginners
Topic: [solved] Accesing RPI on LAN via Browser
Replies: 8
Views: 116

Re: Accesing RPI on LAN via Browser

Not sure as I don't have it installed, but it seems to be using flask for the web server part and flask by default only runs on the local host, so you need to add something like host="0.0.0.0" to your app. Maybe in app.py you could change it to have: if __name__ == "__main__": app.run(host="0.0.0.0"...
by neilgl
Wed Feb 19, 2020 9:08 am
Forum: General discussion
Topic: Measure 12v supply with pi
Replies: 23
Views: 808

Re: Measure 12v supply with pi

Yes I create a graph of the voltage using grafana. Data is stored in an influxdb using telegraf. All is running on the pi, no “cloud” stuff. On the same pi I run openhab2 for various home automation things. It has easy to use rules for decisions.
by neilgl
Wed Feb 19, 2020 8:47 am
Forum: Beginners
Topic: Smart Hub
Replies: 1
Views: 51

Re: Smart Hub

I would go with openhab2 on the pi. And check this thread https://www.raspberrypi.org/forums/vie ... 8&t=245031
by neilgl
Tue Feb 18, 2020 10:50 pm
Forum: Beginners
Topic: Raspberry pi doesn´t work, ¿why? I´m frustrated
Replies: 5
Views: 136

Re: Raspberry pi doesn´t work, ¿why? I´m frustrated

Maybe create SD card with etcher using Raspbian with desktop, forget NOOBS
by neilgl
Tue Feb 18, 2020 6:31 pm
Forum: Beginners
Topic: list of available python libraries/commands
Replies: 2
Views: 77

Re: list of available python libraries/commands

And to see what is installed, start a Terminal, then run python

Code: Select all

python3

Code: Select all

help('modules')
will give a long list - including say html

Code: Select all

help('html')
will give help for that module etc.
by neilgl
Tue Feb 18, 2020 5:58 pm
Forum: Troubleshooting
Topic: Pi 3 model B - "No wireless interface found" and no internet connection
Replies: 10
Views: 157

Re: Pi 3 model B - "No wireless interface found" and no internet connection

On my other pi3 I forgot I disabled wifi for another reason by doing this

Code: Select all

sudo nano /etc/dhcpcd.conf
and adding

Code: Select all

denyinterfaces wlan0
Have you checked that?
and to see messages for wlan0

Code: Select all

dmesg | grep wlan
by neilgl
Tue Feb 18, 2020 3:41 pm
Forum: Troubleshooting
Topic: Pi 3 model B - "No wireless interface found" and no internet connection
Replies: 10
Views: 157

Re: Pi 3 model B - "No wireless interface found" and no internet connection

Odd. I just put "Raspbian Buster with desktop" onto an SD card, using etcher, added ssh and wpa_supplicant.conf to "boot", then put it in a pi3B. - Wifi working fine - Ethernet working fine To see what it is doing at startup, edit cmdline.txt and remove the "quiet" from the first line. sudo nano /bo...
by neilgl
Tue Feb 18, 2020 3:20 pm
Forum: General discussion
Topic: Which Google Chrome?
Replies: 6
Views: 161

Re: Which Google Chrome?

Start Chromium on the pi, click on the 3 vertical dots at top right, click About Chromium. It should show
Version 78.0.3904.108 ... on Raspbian 10 (32 bit)
by neilgl
Tue Feb 18, 2020 3:14 pm
Forum: Advanced users
Topic: Can anyone help by providing lsusb output
Replies: 8
Views: 192

Re: Can anyone help by providing lsusb output

pi 4B (2GB) with latest firmware, no SD card, connected to linux host PC (Debian 8) via an A male to USB C male cable
- nothing changed on lsusb, nothing extra found.

rp-update showed " *** Your firmware is already up to date"
4B had the green led flashing repeats as expected.
by neilgl
Tue Feb 18, 2020 2:48 pm
Forum: Troubleshooting
Topic: Pi 3B connects to router via ethernet but no internet access
Replies: 3
Views: 86

Re: Pi 3B connects to router via ethernet but no internet access

Sounds like a dodgy Ethernet cable - can you try another one?
And re-enable the wifi, then with ethernet also connected to pi, what do we get from

Code: Select all

ifconfig
by neilgl
Tue Feb 18, 2020 2:45 pm
Forum: Troubleshooting
Topic: GPIO OUT status
Replies: 1
Views: 37

Re: GPIO OUT status

Maybe use cron to run your script at startup. Your python3 script sets GPIO OUT etc.

Code: Select all

crontab -e
Then add a line like this

Code: Select all

@reboot python3 -u /home/pi/scripts/irmq.py > /home/pi/scripts/irmq.log 2>&1 &
by neilgl
Tue Feb 18, 2020 1:25 pm
Forum: Beginners
Topic: Execute wavemon to Apache webserver
Replies: 2
Views: 66

Re: Execute wavemon to Apache webserver

Ah wavemon seems to display wifi status or a graph; "F2 displays a graph of your signal levels. "
I would go with something (iwconfig) that generates text output. Read and display that using php from your Apache2 web page.
by neilgl
Tue Feb 18, 2020 8:17 am
Forum: General discussion
Topic: Measure 12v supply with pi
Replies: 23
Views: 808

Re: Measure 12v supply with pi

Yes I will post some details soon.... A Raspberry pi3+ runs an MQTT server (broker) and is connected to my router by cable. A D1 mini ESP8266 MQTT with Analog input on A0 to measure voltage with external resistor divider It connects to the MQTT server then regularly publishes a measured voltage to t...
by neilgl
Sun Feb 16, 2020 10:28 am
Forum: General discussion
Topic: Is it possible automatically set the settings when burning the SDcard
Replies: 10
Views: 283

Re: Is it possible automatically set the settings when burning the SDcard

Yes when you create the SD card, put wpa_supplicant.conf in /boot, then put it in the pi for first boot.
by neilgl
Sun Feb 16, 2020 9:33 am
Forum: General discussion
Topic: Is it possible automatically set the settings when burning the SDcard
Replies: 10
Views: 283

Re: Is it possible automatically set the settings when burning the SDcard

For the WiFi you create a wpa_supplicant.conf file in /boot rather than enter it by hand.
by neilgl
Fri Feb 14, 2020 1:50 pm
Forum: Beginners
Topic: Pi 4 and Apache
Replies: 7
Views: 124

Re: Pi 4 and Apache

Yeah, just trying debug why it is not working - it's not a production server of course..
by neilgl
Fri Feb 14, 2020 12:24 pm
Forum: Beginners
Topic: Pi 4 and Apache
Replies: 7
Views: 124

Re: Pi 4 and Apache

Try changing ownership to www-data not pi. (I assumed a standard apache2 install here) Go to the images directory, then

Code: Select all

sudo chown www-data:www-data *.png
by neilgl
Fri Feb 14, 2020 10:27 am
Forum: Beginners
Topic: Pi 4 and Apache
Replies: 7
Views: 124

Re: Pi 4 and Apache

Might be an ownership issue. With the images in /var/www/html/images , cd to that directory, then what does the output of this command give?

Code: Select all

ls -lh
by neilgl
Thu Feb 13, 2020 1:44 pm
Forum: Beginners
Topic: Wiring inductive sensors in series
Replies: 38
Views: 699

Re: Wiring inductive sensors in series

This is very useful:
https://pinout.xyz/#
by neilgl
Thu Feb 13, 2020 1:10 pm
Forum: Beginners
Topic: Wiring inductive sensors in series
Replies: 38
Views: 699

Re: Wiring inductive sensors in series

Maybe avoid using GPIO2 and GPIO3 as they have the fixed, 1.8 kΩ pull-up to 3.3v ?
by neilgl
Thu Feb 13, 2020 1:00 pm
Forum: Beginners
Topic: Multi Axis force sensor with Raspberry Pi
Replies: 10
Views: 167

Re: Multi Axis force sensor with Raspberry Pi

I thought he was pushing something along, so it would be moving?
by neilgl
Thu Feb 13, 2020 8:59 am
Forum: Beginners
Topic: Multi Axis force sensor with Raspberry Pi
Replies: 10
Views: 167

Re: Multi Axis force sensor with Raspberry Pi

You may need some accelerometers e.g. ADXL345
Force = mass x acceleration

Go to advanced search