Go to advanced search

by rpdom
Tue Jan 22, 2019 6:28 pm
Forum: Troubleshooting
Topic: SSH outside network - port forwarding
Replies: 3
Views: 62

Re: SSH outside network - port forwarding

baconMan wrote:
Tue Jan 22, 2019 6:07 pm
I am trying at ssh into my raspberry pi from outside my network.
192.168.x.x is a private network address which cannot be accessed externally. You need to use your publicly accessible IP address which will then be routed to your Pi by the port forwarding you have set up on your router.
by rpdom
Tue Jan 22, 2019 6:26 pm
Forum: General discussion
Topic: Features for future Pi, voltage/current reporting.
Replies: 44
Views: 730

Re: Features for future Pi, voltage/current reporting.

DarkPlatinum wrote:
Tue Jan 22, 2019 6:11 pm
What I meant is there would be special pins added for this purpose. For example more pins such as those used for the POE HAT.
So, additional cost, plus the added difficulty of routing traces around the pins which go through every layer of the PCB.
by rpdom
Tue Jan 22, 2019 4:44 pm
Forum: Networking and servers
Topic: VPN for WiFi
Replies: 5
Views: 1508

Re: VPN for WiFi

If you want to set up your own VPN, there are a few other alternatives to OpenVPN. 3) tinc - works on the Pi and other servers. That is what I use for my main VPN when I'm away from home. I run it on two VPS from different providers and as long as at least one of them is available I can connect to ...
by rpdom
Tue Jan 22, 2019 2:07 pm
Forum: Troubleshooting
Topic: No wifi Interface Found
Replies: 6
Views: 173

Re: No wifi Interface Found

Are you using the default "pi" user? If not, did you add the new user to the same groups as "pi". I believe the netdev group is essential for the network config to work.
by rpdom
Tue Jan 22, 2019 6:51 am
Forum: Beginners
Topic: RPi Pull-Up Resistor Termination?
Replies: 3
Views: 84

Re: RPi Pull-Up Resistor Termination?

If you are not using a pin, it doesn't really matter if it is floating or not.
by rpdom
Tue Jan 22, 2019 6:05 am
Forum: Python
Topic: Learn Python 2 or 3 and how?
Replies: 13
Views: 231

Re: Learn Python 2 or 3 and how?

In eleven months, ten days, 4hours you won't get a choice. Not true at all. The intention is to stop supporting and maintaining Python 2. People will still be able to use Python 2 and choose to program in Python 2 if they want to. Programs written for Python 2 won't suddenly stop working, Python 2 ...
by rpdom
Tue Jan 22, 2019 6:01 am
Forum: Troubleshooting
Topic: GPIO pull up/down resistors
Replies: 2
Views: 63

Re: GPIO pull up/down resistors

I have not included any pull-up or pull-down resistors in my circuit and I suspect that this may be the issue but I would love some advice on how to implement them and why they are required. Yes, you should use some pull-down resistors. When you do GPIO.cleanup() it does, as you suspected, set the ...
by rpdom
Mon Jan 21, 2019 8:00 pm
Forum: Troubleshooting
Topic: Can't connect 192.168.1.1
Replies: 6
Views: 113

Re: Can't connect 192.168.1.1

192.168.1.1 should be your routers IP address. Not necessarily. Eg a very large percentage of home routers in the UK have an IP address of 192.168.1.254. It varies. I've never seen a .254 router, mostly .1 but the subnet changes. I hate that my new Virgin modem/router has a fixed subnet (192.168.10...
by rpdom
Mon Jan 21, 2019 4:53 pm
Forum: General discussion
Topic: Unclear on throttling
Replies: 9
Views: 153

Re: Unclear on throttling

Close, but 80008 Hex translates to 1000 0000 0000 0000 1000 binary as you say, but that means bit 3 is 1 - I don't know what that means, and bit 19 is 1 which means "Soft Temp limit has occurred". Nothing about power throttling (if I've go that right). Bit 3 is soft temp limit currently active; I'v...
by rpdom
Mon Jan 21, 2019 4:51 pm
Forum: General discussion
Topic: Unclear on throttling
Replies: 9
Views: 153

Re: Unclear on throttling

dandandan wrote:
Mon Jan 21, 2019 4:46 pm
How do you get to bit 3 here?
The bits are numbered from the right hand side

Code: Select all

1111 1111 1100 0000 0000
9876 5432 1098 7654 3210
---------------------------------------
1000 0000 0000 0000 1000
by rpdom
Mon Jan 21, 2019 3:54 pm
Forum: Networking and servers
Topic: Mirroring mysql
Replies: 4
Views: 72

Re: Mirroring mysql

arvix wrote:
Mon Jan 21, 2019 1:41 pm
And as I know replication without internet connections got errors...
Usually warnings, but once connection is re-established the replication will resume and catch up.
by rpdom
Mon Jan 21, 2019 3:35 pm
Forum: General discussion
Topic: Unclear on throttling
Replies: 9
Views: 153

Re: Unclear on throttling

There's some preliminary documentation for vcgencmd here that explains what the command does https://github.com/raspberrypi/documentation/blob/JamesH65-patch-vcgencmd-vcdbg-docs/raspbian/applications/vcgencmd.md Thanks for the quick reply but I do not understand that, i think. How do i translate th...
by rpdom
Mon Jan 21, 2019 1:10 pm
Forum: Wanted
Topic: need Raspbian build w/ auto-video play & SSH enabled-- bounty offered!
Replies: 5
Views: 115

Re: need Raspbian build w/ auto-video play & SSH enabled-- bounty offered!

omxplayer doesn't require the desktop, so I'd use Raspbian Lite for that. I'd then set it up to run on startup via crontab or rc.local or systemd service with the -loop option. I could probably create an image file based on the current Stretch Lite that will do the job, including enabling ssh and so...
by rpdom
Mon Jan 21, 2019 1:02 pm
Forum: General discussion
Topic: writing on hdmi screen
Replies: 5
Views: 132

Re: writing on hdmi screen

the raspberry pi is only capable of one video output. Not strictly true. You can't use HDMI and Composite at the same time, but you can use combinations of the various interfaces. HDMI or Composite + DPI (even VGA with Gert's VGA666 board) HDMI or Composite + DSI HDMI or Composite + various i2c or ...
by rpdom
Mon Jan 21, 2019 12:54 pm
Forum: Troubleshooting
Topic: Involuntary shutdown - RBP3B+
Replies: 9
Views: 140

Re: Involuntary shutdown - RBP3B+

Might be time to attach a monitor to see what is going on. Going to be difficult otherwise. One thing you might try, log in using ssh then run `dmesg -w` and see if anything is put in the log there - it displays entries that come in in real time. Isn't vcgencmd get_throttled supposed to show someth...
by rpdom
Mon Jan 21, 2019 12:49 pm
Forum: Networking and servers
Topic: Mirroring mysql
Replies: 4
Views: 72

Re: Mirroring mysql

Is there a reason that simple replication can't work? For example, the same table in both databases gets updated independently and the changes need to be merged rather than just replicated from one system to the other. MariaDB (replaced MySQL a while back) can just about handle that. I had, until re...
by rpdom
Mon Jan 21, 2019 12:44 pm
Forum: Beginners
Topic: Cost effective project
Replies: 11
Views: 213

Re: Cost effective project

- a Raspberry PI with an ultrasonic ranger sensor where a lift is counted above a certain height If you want low cost, use a microswitch that is closed when the lift goes above a certain height. If you want a non-contact solution, a capacitance sensor would be better than ultrasonic. Ultrasonic sen...
by rpdom
Mon Jan 21, 2019 7:09 am
Forum: Troubleshooting
Topic: set wrong video mode, no display
Replies: 7
Views: 121

Re: set wrong video mode, no display

What did your partition table look like? If you have a NOOBS setup (like I suspect), you will have about 5 or 6 partitions and only the first one will be visible to all except the latest version of Windows. If you use Etcher to write a Raspbian Stretch image file to the card instead of using NOOBS, ...
by rpdom
Sun Jan 20, 2019 7:17 pm
Forum: Advanced users
Topic: PHP strtotime problem
Replies: 4
Views: 94

Re: PHP strtotime problem

I can't figure out what goes between echo" and the first </td> to get the formatted date in the table. You've pretty much answered that in your previous bit of code $date = strtotime($row['Added']); echo "Time: ".date('d/m/Y H:i:s', $date)." {$row['Temp']}. {$row['Lux']} <br>"; The output from that...
by rpdom
Sun Jan 20, 2019 3:35 pm
Forum: Advanced users
Topic: PHP strtotime problem
Replies: 4
Views: 94

Re: PHP strtotime problem

Because you're not reading the data from the query.

You've read in up to 200 results, but are not using them. Where is your while loop? Where is the mysql_fetch_assoc() function to extract the data from each result?
by rpdom
Sun Jan 20, 2019 3:21 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Is x86 Debian able to run on this Sony Vaio VPCW222AX laptop?
Replies: 3
Views: 66

Re: Is x86 Debian able to run on this Sony Vaio VPCW222AX laptop?

It will work, but might struggle a bit with only 1GB RAM for things like web browsing which is very memory and CPU intensive. Just don't open too many tabs on your browser.
by rpdom
Sun Jan 20, 2019 3:03 pm
Forum: Advanced users
Topic: PHP "LIMIT" problem
Replies: 5
Views: 63

Re: PHP "LIMIT" problem

Actually, if you are only reading one result, the "while" loop is superfluous. Try this <?php require 'connect.php'; $query = 'SELECT * FROM readings order by ID desc limit 2'; $result = mysqli_query($db, $query) or die('Error querying database.'); $row = mysqli_fetch_assoc($result); echo"{$row['Add...
by rpdom
Sun Jan 20, 2019 2:59 pm
Forum: Advanced users
Topic: PHP "LIMIT" problem
Replies: 5
Views: 63

Re: PHP "LIMIT" problem

I see your problem. $row = mysqli_fetch_assoc($result); while ($row = mysqli_fetch_assoc($result)) The first line there is reading the first result and then doing nothing with it. The "while" loop is then reading from the second result onwards and processing those. Remove the first line and you shou...
by rpdom
Sun Jan 20, 2019 2:40 pm
Forum: Advanced users
Topic: PHP "LIMIT" problem
Replies: 5
Views: 63

Re: PHP "LIMIT" problem

Perhaps show us a bit more of your PHP code?

I can assure you that that query will work under PHP. I do similar queries all the time.

Maybe it is the way you are reading the results of the query.
by rpdom
Sun Jan 20, 2019 11:36 am
Forum: Beginners
Topic: Relay swap
Replies: 9
Views: 204

Re: Relay swap

Yes I was going to use them to drive a 12v dc load as the led strips are going to be outside. I thought the pi sends an on off signal to turn the relay on off as per the coding The Pi will provide a High (3.3V) signal to turn the relay on and Low (0V) signal to turn the relay off. SSDs will turn on...

Go to advanced search