Go to advanced search

by neilgl
Thu Aug 22, 2019 9:09 pm
Forum: Beginners
Topic: Simutaniously Runing HA-Bridge and HomeGenie
Replies: 3
Views: 55

Re: Simutaniously Runing HA-Bridge and HomeGenie

Maybe make a copy of you current setup on a separate microSD card, then you can try new stuff but can go back if it is not working.
by neilgl
Thu Aug 22, 2019 8:48 pm
Forum: Beginners
Topic: Network Utility
Replies: 20
Views: 426

Re: Network Utility

Er have you got an Ethernet cable plugged in and also connected via WiFi?
by neilgl
Thu Aug 22, 2019 8:46 pm
Forum: Beginners
Topic: Raspberry Pi 4 usb power button/switch works how?
Replies: 4
Views: 181

Re: Raspberry Pi 4 usb power button/switch works how?

Looks like a simple on-off switch to save you pulling out the USB cable, according to numerous reviews on Amazon (other online retailers are available)
by neilgl
Thu Aug 22, 2019 7:04 pm
Forum: Beginners
Topic: Bugs, Bugs, Bugs everywhere. Need Guidance here.
Replies: 4
Views: 273

Re: Bugs, Bugs, Bugs everywhere. Need Guidance here.

And it is good to buy an official power supply, though as I said somewhere else my pi4 worked fine using the charger from an iPad Air 2 (from 2014)
by neilgl
Thu Aug 22, 2019 7:00 pm
Forum: Off topic discussion
Topic: Best Raspberry Pi Alternatives 2019
Replies: 32
Views: 943

Re: Best Raspberry Pi Alternatives 2019

Can we edit the post title and add “ - there are none” ?
by neilgl
Thu Aug 22, 2019 10:41 am
Forum: Beginners
Topic: How to utilize output from one program in another
Replies: 3
Views: 119

Re: How to utilize output from one program in another

1. No the value does NOT need to be printed before manipulation. His example has val = hx.get_weight(5) print(val) which means he has a variable called "val" that he then prints. You could delete the print statement if you want; val would still be there containing the weight.So you could (say) multi...
by neilgl
Wed Aug 21, 2019 11:14 pm
Forum: Troubleshooting
Topic: Pi zero with Raspbian shows 28% constant CPU usage?
Replies: 10
Views: 240

Re: Pi zero with Raspbian shows 28% constant CPU usage?

What devices have you attached to that .pi zero if any - 480 pixel screen sounds unusual?
And are you running any containers?
by neilgl
Wed Aug 21, 2019 9:53 pm
Forum: Beginners
Topic: Network Utility
Replies: 20
Views: 426

Re: Network Utility

Assuming we mean Raspbian 9 (stretch) - what do you want to configure?
by neilgl
Wed Aug 21, 2019 6:56 pm
Forum: Troubleshooting
Topic: GPIO button to HTML form submit
Replies: 10
Views: 202

Re: GPIO button to HTML form submit

It is getting a bit confusing for me now. The posted code is an HTML page containg javascript, etc.
What/how is the pi running a nodejs server (or other) to host that page? - That will be key in understanding how to use the pi GPIO with it.
by neilgl
Wed Aug 21, 2019 3:25 pm
Forum: Troubleshooting
Topic: Is my Pi 4 faulty or am I being bit by the flawed USB-C implementation? 5 cables tested.. Pi won't boot
Replies: 6
Views: 183

Re: Is my Pi 4 faulty or am I being bit by the flawed USB-C implementation? 5 cables tested.. Pi won't boot

I would get an offical power supply for it.
However, as a test I used a USB-C cable from my Galaxy S9 phone and an ipad air charger (2.1Amp). The pi4 worked fine.
by neilgl
Wed Aug 21, 2019 3:12 pm
Forum: Python
Topic: Strings in a directory path
Replies: 9
Views: 250

Re: Strings in a directory path

This works for me in python2.7:

Code: Select all

import os

# set a string
mystring = "/home/pi/python"
mycommand = "ls -l "
args = mycommand+mystring
os.system(args)
by neilgl
Wed Aug 21, 2019 2:22 pm
Forum: Troubleshooting
Topic: GPIO button to HTML form submit
Replies: 10
Views: 202

Re: GPIO button to HTML form submit

Does that mean I would have to have the website live and use the python script to submit the form?
Yes or you could use GPIO pins in your javascript, first npm install onoff, then

Code: Select all

var Gpio = require('onoff').Gpio; 
var pushButton = new Gpio(17, 'in', 'both')
by neilgl
Wed Aug 21, 2019 12:01 pm
Forum: Beginners
Topic: Image management
Replies: 2
Views: 80

Re: Image management

This worked for me on a pi2 (stretch) taking several images called plant0001.jpg, plant0002.jpg etc. (All images in the same directory) sudo apt install libav-tools avconv -r 10 -i plant%04d.jpg -r 10 -vcodec libx264 -vf scale=1280:720 timelapse.mp4 That came from https://www.raspberrypi.org/documen...
by neilgl
Wed Aug 21, 2019 11:12 am
Forum: General discussion
Topic: Looking for Pi management platform
Replies: 1
Views: 185

Re: Looking for Pi management platform

On my galaxy S9 phone I use “RasPi Check” for checking various pi and shutting them down etc. Simple to add a pi using IP address
by neilgl
Wed Aug 21, 2019 8:40 am
Forum: Beginners
Topic: How to utilize output from one program in another
Replies: 3
Views: 119

Re: How to utilize output from one program in another

Maybe you can modify the example.py (save it as biggy.py) to have if statements that look at the weight (val) just after it is printed. Pseudo code: If val < 100 turn on green led. If val > 500 turn on red led. Import the GPIO library at the top of biggy.pi and set two GPIO pins as outputs. And use ...
by neilgl
Tue Aug 20, 2019 7:08 pm
Forum: Beginners
Topic: Play 2 separate videos, both with sound, on Rpi4B?
Replies: 4
Views: 121

Re: Play 2 separate videos, both with sound, on Rpi4B?

Don’t forget that the pi4 has two micro-HDMI ports.
by neilgl
Tue Aug 20, 2019 7:01 pm
Forum: General discussion
Topic: Raspberry Pi 4 Heatsink vs Fan vs Flirc Case
Replies: 30
Views: 7864

Re: Raspberry Pi 4 Heatsink vs Fan vs Flirc Case

My flirc case arrived today and is giving me a reduction in temperature of around 20 degrees C at idle with one monitor attached. And it is silent.
by neilgl
Tue Aug 20, 2019 5:24 pm
Forum: Beginners
Topic: BerryBoot & Hoobs
Replies: 1
Views: 57

Re: BerryBoot & Hoobs

I would just install homebridge (and nodejs) on the pi and not bother with HOOBS or Berryboot. Then you can run other programs on that pi. E.g. I also use grafana, mqtt, telegram, openhab2 (Java), proftpd and influxdb. All good.
by neilgl
Tue Aug 20, 2019 4:29 pm
Forum: Beginners
Topic: Moving all my raspberry pi projects onto a new router.
Replies: 9
Views: 194

Re: Moving all my raspberry pi projects onto a new router.

And the new router may have a 5GHz SSID that you might want to configure.
by neilgl
Tue Aug 20, 2019 4:03 pm
Forum: Beginners
Topic: Moving all my raspberry pi projects onto a new router.
Replies: 9
Views: 194

Re: Moving all my raspberry pi projects onto a new router.

Have you made any changes or set any configurable items in the old router, if so you may need to do those again. E.g
Port forwarding,
Setup of dynamic DNS account,
SSID (WiFi name) that you also use in wpa_supplicant or in python scripts on the pi
Reserved pi addresses
Etc.
by neilgl
Mon Aug 19, 2019 8:53 pm
Forum: General programming discussion
Topic: Remote controlled LED
Replies: 2
Views: 500

Re: Remote controlled LED

Maybe set your pi up with apache2 and use cgi scripts to turn/on LEDs from anywhere.
Or python flask web server on the pi, controlling GPIO on/off
Or nginx and php using wiringpi to turn on/off led.
by neilgl
Mon Aug 19, 2019 8:46 pm
Forum: General programming discussion
Topic: Power Timer App
Replies: 6
Views: 227

Re: Power Timer App

I use a pi as an mqtt server and an esp8266 to measure solar battery voltage and report that to the pi. The pi also has influxdb, Grafana and openhab2 so I can see graphs of voltage etc, and set rules for sunrise/sunset etc. and see if devices are online/ offline. You maybe able to use a similar set...
by neilgl
Mon Aug 19, 2019 1:41 pm
Forum: Other
Topic: How to get Temperature - [SOLVED]
Replies: 6
Views: 240

Re: How to get Temperature

Does this work from the command line when you are logged in?

Code: Select all

vcgencmd measure_temp
by neilgl
Mon Aug 19, 2019 12:18 pm
Forum: Troubleshooting
Topic: GPIO button to HTML form submit
Replies: 10
Views: 202

Re: GPIO button to HTML form submit

Maybe you could run a python script to check the input button on the gpio, then use that script to submit a form to a webserver using "curl" POST.
by neilgl
Mon Aug 19, 2019 9:11 am
Forum: Troubleshooting
Topic: Web server not working externally
Replies: 3
Views: 81

Re: Web server not working externally

Did you install Wordpress using the (new) domain name or using the pi's ip address?

Go to advanced search