Go to advanced search

by neilgl
Thu Apr 25, 2019 12:13 pm
Forum: Troubleshooting
Topic: Need help with LED'S on rpm 3b+
Replies: 6
Views: 84

Re: Need help with LED'S on rpm 3b+

As you are powering the neopixels from 5V, the 3V3 from the pi gpio pin may not reliably trigger them. Some people use a level shifter to get the pi 3V3 to 5V.
by neilgl
Thu Apr 25, 2019 12:07 pm
Forum: Beginners
Topic: Can't get Google Domain name to point to pi
Replies: 26
Views: 376

Re: Can't get Google Domain name to point to pi

Yes and is your pi connected to a router? If so , have you set port forwarding on that router?
by neilgl
Tue Apr 23, 2019 3:03 pm
Forum: Troubleshooting
Topic: How to generate PDF with PHP package
Replies: 5
Views: 68

Re: How to generate PDF with PHP package

What error message do you get back?
by neilgl
Tue Apr 23, 2019 10:09 am
Forum: Troubleshooting
Topic: WS2811 LED Strip Glitching.
Replies: 1
Views: 61

Re: WS2811 LED Strip Glitching.

Are you powering the neopixels from 5V ? If so the 3V3 from the pi gpio pin may not reliably trigger them. Some people use a level shifter to get the pi 3V3 to 5V.
Maybe try powering them using 3V3. Should be ok as you are only using five pixels.
by neilgl
Fri Apr 19, 2019 5:15 pm
Forum: Beginners
Topic: Setting up a VPN with Raspberry Pi
Replies: 1
Views: 77

Re: Setting up a VPN with Raspberry Pi

I see they are using OpenVpn.
What messages do you see in the Terminal?
by neilgl
Fri Apr 19, 2019 4:26 pm
Forum: Beginners
Topic: Controlling RPi via another RPi (WIFI)
Replies: 2
Views: 45

Re: Controlling RPi via another RPi (WIFI)

Yes and you can use MQTT with python. Assuming you have installed mosquitto on the pi, and pip, then

Code: Select all

sudo pip install paho-mqtt
In your python you can then have

Code: Select all

import paho.mqtt.clent as client
Then you can connect, publish, subscribe and get commands from other devices using mqtt.
by neilgl
Sat Apr 13, 2019 9:35 am
Forum: Beginners
Topic: What Developping Environment?
Replies: 9
Views: 265

Re: What Developping Environment?

A useful GUI for use with python is tkinter or maybe try Glade (construct GUI in Glade then invoke it from python)
by neilgl
Sat Apr 13, 2019 9:30 am
Forum: Beginners
Topic: Raspberry Pi IOT server advice
Replies: 4
Views: 125

Re: Raspberry Pi IOT server advice

Yes get a "Raspberry Pi 3 model B+"
I use one of those with openhab2 and grafana to record/graph temperatures from several arduino and pi based sensors.
I have set it up so they communicate using mqtt. (And the pi tells Alexa to give spoken warnings)
by neilgl
Thu Apr 11, 2019 9:28 pm
Forum: Troubleshooting
Topic: Signficant Latency in Ethernet communication using MQTT
Replies: 2
Views: 98

Re: Signficant Latency in Ethernet communication using MQTT

Can you post your code where you measure the delay on the pi
by neilgl
Fri Mar 29, 2019 2:52 pm
Forum: Beginners
Topic: Website buttons triggering not triggering GPIO pins
Replies: 8
Views: 244

Re: Website buttons triggering not triggering GPIO pins

OK I tested it on a pi2b (used for various tests) and running current raspbian with apache2. I followed my previous instructions. It worked first time. I retested by installing current raspbian stretch (not old jessie) on a fresh micro SD card, then apache2, then followed the previous instructions. ...
by neilgl
Sun Mar 24, 2019 2:16 am
Forum: Beginners
Topic: Website buttons triggering not triggering GPIO pins
Replies: 8
Views: 244

Re: Website buttons triggering not triggering GPIO pins

I will have a look at it when I get back from Vietnam.
by neilgl
Mon Mar 11, 2019 12:46 am
Forum: General discussion
Topic: influxdb installation problems?
Replies: 8
Views: 199

Re: influxdb installation problems?

Yes influxdb is easy to install and use in the pi with no issues.
I am also using telegraf with it.
by neilgl
Fri Mar 08, 2019 10:05 pm
Forum: Automation, sensing and robotics
Topic: Looking for help: MQTT Broker GPS LTE Temperature sensor
Replies: 4
Views: 288

Re: Looking for help: MQTT Broker GPS LTE Temperature sensor

What you can do is publish your temperatures using mqtt, then store them in an influxdb (on the pi) using telegraf (on the pi) as the input. The use grafana (on the pi) to plot graphs, which you can then see from various places around the world.
by neilgl
Mon Mar 04, 2019 10:51 pm
Forum: Beginners
Topic: Private Sonoff cloud server, running in your own home network
Replies: 4
Views: 177

Re: Private Sonoff cloud server, running in your own home network

For your own esp8266 devices maybe install mqtt on them, then you can use a pi as an mqtt server and you can control them from any device you have around - pi, PC, android phone, iPad etc.
by neilgl
Mon Mar 04, 2019 3:36 pm
Forum: Beginners
Topic: Private Sonoff cloud server, running in your own home network
Replies: 4
Views: 177

Re: Private Sonoff cloud server, running in your own home network

Maybe just add the /home/pi/ so that it knows exactly where to put the certificates (assuming you are logged in as pi) openssl req -x509 -newkey rsa:2048 -keyout /home/pi/certs/keytmp.pem -out /home/pi/certs/cert.pem -days 365 openssl rsa -in /home/pi/certs/keytmp.pem -out /home/pi/certs/key.pem And...
by neilgl
Fri Mar 01, 2019 3:08 pm
Forum: Beginners
Topic: RasPi 3 B+ as digital I/O
Replies: 2
Views: 108

Re: RasPi 3 B+ as digital I/O

Yes and maybe watch out for keybounce giving you multiple false inputs in a short time. I use this in a python script: GPIO.add_event_detect(16, GPIO.FALLING, callback=my_callback, bouncetime=500) It detects a falling edge then calls the "callback" routine. A global variable is used to count the num...
by neilgl
Fri Mar 01, 2019 2:32 pm
Forum: Beginners
Topic: sending/sharing photos between two pi's
Replies: 18
Views: 480

Re: sending/sharing photos between two pi's

Another simple way might be to enable php on your webserver (apache2) and then do file uploads using an html form <form action="upload.php" method="post" enctype="multipart/form-data"> Select image to upload: <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" value="Uploa...
by neilgl
Thu Feb 28, 2019 7:27 pm
Forum: Troubleshooting
Topic: Wifi not working on Raspberry Pi Zero W headless
Replies: 15
Views: 339

Re: Wifi not working on Raspberry Pi Zero W headless

I tested it using your wpa_supplicant.conf (but with my ssid & password) - it all worked fine.
Have you got another pi there to test with?
by neilgl
Thu Feb 28, 2019 5:27 pm
Forum: Troubleshooting
Topic: Wifi not working on Raspberry Pi Zero W headless
Replies: 15
Views: 339

Re: Wifi not working on Raspberry Pi Zero W headless

Which image are you using - Raspbian Stretch Lite Nov 2018 ? - I can test it on a blank SD card soon, normally it works fine.
by neilgl
Thu Feb 28, 2019 2:20 pm
Forum: Troubleshooting
Topic: Wifi not working on Raspberry Pi Zero W headless
Replies: 15
Views: 339

Re: Wifi not working on Raspberry Pi Zero W headless

The green light being on constantly is normal for a pi zero W.
Check that you have not got any spurious characters in wpa_supplicant.conf (need to use a pure text editor when creating it)
Also, can you connect a monitor (via hdmi adaptor) and keyboard to the zero?
by neilgl
Thu Feb 28, 2019 12:58 pm
Forum: Troubleshooting
Topic: How to control Raspberry Pi's GPIO pins from separate PC
Replies: 2
Views: 83

Re: How to control Raspberry Pi's GPIO pins from separate PC

Maybe you could have a python script on the pi to listen for and act on mqtt messages (topics) e.g. "turn on GPIO 17"
You can send those messages from your PC in C++, or type them into a Command Prompt for testing
by neilgl
Thu Feb 28, 2019 10:06 am
Forum: Beginners
Topic: sending/sharing photos between two pi's
Replies: 18
Views: 480

Re: sending/sharing photos between two pi's

Maybe use the curl command like this:

Code: Select all

curl -O http://192.168.1.106/images/hour.png
The example gets an image "hour.png" from another pi on the local network (192.168.1.106) to the main pi.
by neilgl
Fri Feb 22, 2019 9:17 pm
Forum: Beginners
Topic: Best Pi for data backup
Replies: 1
Views: 202

Re: Best Pi for data backup

I would go with a pi zero (no wifi) and a 64GB microSD card
by neilgl
Thu Feb 21, 2019 7:40 pm
Forum: Advanced users
Topic: Object Recognition and triggering a command
Replies: 2
Views: 439

Re: Object Recognition and triggering a command

Are you using Motion for object detection or something else?
Motion can execute commands etc. using "on_event_start" or "on_motion_detected"
by neilgl
Thu Feb 21, 2019 11:09 am
Forum: Beginners
Topic: Python script starting at reboot, not sure how/why
Replies: 4
Views: 153

Re: Python script starting at reboot, not sure how/why

Also check if you have accidentally run

Code: Select all

sudo crontab -e
as that will get you another crontab that will be executed on startup etc.

Go to advanced search