Go to advanced search

by Geeman2000
Wed Jun 06, 2018 9:59 am
Forum: Media centres
Topic: LibreELEC/Kodi 04/18 - Can CEC be disabled?
Replies: 2
Views: 1387

Re: LibreELEC/Kodi 04/18 - Can CEC be disabled?

Spot on!
Should be all good now.
Thanks so much for the assistance.
by Geeman2000
Wed Jun 06, 2018 1:49 am
Forum: Media centres
Topic: LibreELEC/Kodi 04/18 - Can CEC be disabled?
Replies: 2
Views: 1387

LibreELEC/Kodi 04/18 - Can CEC be disabled?

Hi All, Just set up Pi 3 and it is connected as an input to ONKYO receiver through to Samsung panel. For some reason the Samsung switches to a different input (away from the connection to the receiver resulting in a no signal screen) at random times and must be reset to the correct input (at which t...
by Geeman2000
Fri Dec 22, 2017 10:59 pm
Forum: Beginners
Topic: Running python script on startup
Replies: 15
Views: 13345

Re: Running python script on startup

Thanks again for your help.
I'm time poor over the next four days but after I should get a chance to try it out and report back.


cheers
Geeman
by Geeman2000
Mon Dec 18, 2017 11:03 pm
Forum: Beginners
Topic: Running python script on startup
Replies: 15
Views: 13345

Re: Running python script on startup

Here is the contents of tempbus.py, it was running 1Wire devices straight from RPi pins but due to wiring topography the system was unstable if I had more than about half connected. Now have i2c 8 x 1Wire bus chip and so far hooked 12 sensors up to 1 bus and it's rock solid. So I commented out some ...
by Geeman2000
Mon Dec 18, 2017 9:07 am
Forum: Beginners
Topic: Running python script on startup
Replies: 15
Views: 13345

Re: Running python script on startup

When I saw the thread title I thought I couldn't miss an opportunity for a better way to auto start a python script at boot. I have adapted Dougie's code to suit my situation, running a python script to get temperatures from i2c bus - 1Wire devices and log to data base. The script is named tempbus.p...
by Geeman2000
Sun Dec 17, 2017 11:06 pm
Forum: Beginners
Topic: Managing System Time on RPI
Replies: 4
Views: 631

Re: Managing System Time on RPI

broe23 wrote:
Sun Dec 17, 2017 9:01 am
The best thing is to use a Real Time Clock, if you need more accurate time keeping.
The RPi's have network access most of the time, it is just in the event of power outage when they reboot faster than the network comes back up so I'll see if there is a solution in sync frequency.
by Geeman2000
Sun Dec 17, 2017 11:04 pm
Forum: Beginners
Topic: Managing System Time on RPI
Replies: 4
Views: 631

Re: Managing System Time on RPI

Take a look at the man page for timedatectl with a man timedatectl command. As soon as the network reconnects your RPi should sync to an internet time server. You can add a RTC board if you need the time to be set when the network isn't available. https://cdn-learn.adafruit.com/downloads/pdf/adding...
by Geeman2000
Sun Dec 17, 2017 8:09 am
Forum: Beginners
Topic: Managing System Time on RPI
Replies: 4
Views: 631

Managing System Time on RPI

Hi All I haven't messed with the system time on my RPi's as they have access to net and sychronise without me having done anything. It's all fine if the network is up when the RPi's boot. However, in the event of a power failure and reinstatement the RPi's boot faster than the router and hence in a ...
by Geeman2000
Sat Dec 16, 2017 11:10 pm
Forum: Beginners
Topic: Remote Access Problems MySQL - Fresh Stretch & DB install
Replies: 6
Views: 2034

Re: Remote Access Problems MySQL - Fresh Stretch & DB install

On your pi2 does this work sudo mysql -u root On my pi2 running mariadb that works then I can create a database and create users etc. Let us know I had found solutions to the lack of root user password through Google and was able to set up users via phpMyAdmin. I got to the stage of all local funct...
by Geeman2000
Sat Dec 16, 2017 11:05 pm
Forum: Beginners
Topic: Remote Access Problems MySQL - Fresh Stretch & DB install
Replies: 6
Views: 2034

Re: Remote Access Problems MySQL - Fresh Stretch & DB install

MySQL gets replaced with MariaDB in Stretch. The bind-address statement is in /etc/mysql/my.cnf in the [mysqld] stanza. If it's not there just add [mysqld] bind-address = 0.0.0.0 # The MariaDB configuration file # # The MariaDB/MySQL tools read configuration files in the following order: # 1. "/etc...
by Geeman2000
Sat Dec 16, 2017 7:39 am
Forum: Beginners
Topic: Remote Access Problems MySQL - Fresh Stretch & DB install
Replies: 6
Views: 2034

Re: Remote Access Problems MySQL - Fresh Stretch & DB install

Had not heard of NGINX before now, had to Google it.

Since using LAMP for a while I'll try to persist with it unless it has become a train wreck with the latest MySQL.
by Geeman2000
Sat Dec 16, 2017 5:13 am
Forum: Beginners
Topic: Remote Access Problems MySQL - Fresh Stretch & DB install
Replies: 6
Views: 2034

Remote Access Problems MySQL - Fresh Stretch & DB install

Hi All Decided to do a fresh install on RPi 2B while I was upgrading from a bit banging 1 Wire setup to an i2c 1 Wire bus controller. Anyway this Pi logs temperatures to a local DB, which is then accessed by another Pi doing other things as well as hosting web interface to user devices on the networ...
by Geeman2000
Fri Feb 03, 2017 1:50 am
Forum: Python
Topic: Need help with "select" statement MySQL.
Replies: 3
Views: 1266

Re: Need help with "select" statement MySQL.

:D :D :D :D Thanks! This has been so helpful. There seems to be lots of resources re PHP/MySQL but scarce examples of Python/MySQL. I have dovetailed your response into my code and it delivers the result. I found I needed to add "desc" in the order by logic to get last record. import time import MyS...
by Geeman2000
Thu Feb 02, 2017 10:33 pm
Forum: Python
Topic: Need help with "select" statement MySQL.
Replies: 3
Views: 1266

Need help with "select" statement MySQL.

Hi All, I am trying to get my db query to work. The table referenced has 6 elements per record, the four variables called which are 0 or 1 TINYINT values and an id (auto inc primary key) and a TIMESTAMP. I want to use the four variables I'm trying to retrieve in the python code. I've done the webfor...
by Geeman2000
Wed Jan 11, 2017 12:14 am
Forum: Beginners
Topic: Options for Web based inputs to python code
Replies: 0
Views: 293

Options for Web based inputs to python code

Hi All, I currently have an RPi set up monitory security with python script via IR beams, reed switches and 1 pir around the outside of house. Any trigger is announced audibly with a descriptor via a baby monitor eg "front yard". The pi has apache and MySQl and all triggers are logged. Local network...
by Geeman2000
Fri Dec 30, 2016 9:31 am
Forum: General discussion
Topic: Just out of curiosity, what x86 is RPi3 equivalent.
Replies: 44
Views: 106799

Re: Just out of curiosity, what x86 is RPi3 equivalent.

I know there is an array of specs, just in general I was thinking back to my first laptop (286, 40Mb hdd, 12Mb RAM Win3.1, cost 1 - 2 months pay) while I was setting up a new install on RPi.

Any way it looks like it's at least later Pentium series possibly considerably better.
by Geeman2000
Fri Dec 30, 2016 7:21 am
Forum: General discussion
Topic: Just out of curiosity, what x86 is RPi3 equivalent.
Replies: 44
Views: 106799

Just out of curiosity, what x86 is RPi3 equivalent.

Does anyone have a feel for what old PC processor the RPi3 would be similar too? Something like 286 or 386?
by Geeman2000
Fri Dec 30, 2016 6:42 am
Forum: Beginners
Topic: Default User Accounts
Replies: 3
Views: 1258

Re: Default User Accounts

OK thanks
by Geeman2000
Fri Dec 30, 2016 12:59 am
Forum: Beginners
Topic: Default User Accounts
Replies: 3
Views: 1258

Default User Accounts

Hi All.
I am setting up a RPi 3 to use as a VPN server on home network. I just wanted to make sure any default logins were changed.
Obviously Pi/raspberry login needs changing.
Is root a user? or is there an admin?

Have loaded up Raspian or is it Debian from NOOBS 2.1.0

cheers
Geeman.
by Geeman2000
Mon Jul 18, 2016 8:41 am
Forum: Python
Topic: Noob question re loops and variable updates
Replies: 2
Views: 620

Re: Noob question re loops and variable updates

OK, thanks for the feedback.
by Geeman2000
Mon Jul 18, 2016 12:38 am
Forum: Python
Topic: Noob question re loops and variable updates
Replies: 2
Views: 620

Noob question re loops and variable updates

Hi All, I have had this code running for a number of months. Basically measures temperature every 15 minutes and stores data in database. Credit to original sources from which most is copied http://www.modmypi.com/blog/ds18b20-one-wire-digital-temperature-sensor-and-the-raspberry-pi https://leanpub....
by Geeman2000
Thu Apr 28, 2016 3:56 am
Forum: Beginners
Topic: Need Help smb.conf
Replies: 1
Views: 442

Re: Need Help smb.conf

Oh, I think I just found the culprit, changing "guest=yes" to "no" seems to have fixed.
by Geeman2000
Thu Apr 28, 2016 3:23 am
Forum: Beginners
Topic: Need Help smb.conf
Replies: 1
Views: 442

Need Help smb.conf

Hi All, I have 2 x RPi 2 b set up about 12 months ago working fine and accessible thru "map network drive" from Win7 machine. Just setting up a 3rd, RPi 3, so has latest software. I can't successfully access a directory home/pi/work on the RPi 3 via Win 7 machine. I can map to the directory and see ...
by Geeman2000
Sun Oct 04, 2015 3:35 am
Forum: Beginners
Topic: How to view file on RPi from PC or Android on same network.
Replies: 5
Views: 874

Re: How to view file on RPi from PC or Android on same netwo

So tried all.
Ended up using Samba to access txt file and review entries.
Tried putty and now use it to shutdown or reboot (python script set up to auto start so only need to reboot when alter script).
Tried Apache but that seemed to mess up Samba access.

Thanks for the help
by Geeman2000
Sun Oct 04, 2015 3:29 am
Forum: Beginners
Topic: Using capacitor buffer across GPIO pins
Replies: 15
Views: 3451

Re: Using capacitor buffer across GPIO pins

Placed capacitors across pins to ground. Ironed out 99% of false triggers so now putting extra code around one gate that is sensitive to high winds false triggering. Just trying sleep 0.5 seconds on first trigger then retest state of pin.

Go to advanced search