Go to advanced search

by TideMan
Fri Oct 05, 2018 10:07 pm
Forum: General discussion
Topic: Turn off daylight saving
Replies: 12
Views: 774

Re: Turn off daylight saving

In our timezone of UTC+12, forecasting tides is especially problematic because you can be blissfully unaware that your constituents are 12 hours out without realising it. It only changes high and low tide times by 25 minutes ( the primary M2 tide has a period of 12.42 hours). Such a time error is al...
by TideMan
Fri Oct 05, 2018 9:19 pm
Forum: General discussion
Topic: Turn off daylight saving
Replies: 12
Views: 774

Re: Turn off daylight saving

Thanks Dougie.
That fixed it.
Simple really, when you know how.
by TideMan
Fri Oct 05, 2018 8:46 pm
Forum: General discussion
Topic: Turn off daylight saving
Replies: 12
Views: 774

Turn off daylight saving

Is there any way to turn off daylight saving? In my zone (Pacific/Auckland) we are UTC+12, but during daylight saving that changes to UTC+13 which plays havoc with a dozen or so crontab jobs, as well as my weather stations. I'd like my time zone to be UTC+12 all year round. Is there any way to achie...
by TideMan
Thu Sep 06, 2018 8:51 pm
Forum: Troubleshooting
Topic: Can't connect to website via external IP
Replies: 4
Views: 256

Re: Can't connect to website via external IP

Sounds to me like a problem with your router.
To connect to your site using an external IP, the router must do what's called "hairpin routing".
Not all routers have this capability.
Maybe your router can do it, but not well.

Can you connect to your site from outside of your LAN?
by TideMan
Mon Jul 30, 2018 9:52 pm
Forum: General discussion
Topic: Dropbox_Uploader from php
Replies: 1
Views: 155

Re: Dropbox_Uploader from php [SOLVED]

I found the answer myself!! If you issue this command in php echo "User = " . trim(shell_exec('whoami')); it will tell you www-data. So this is the user you must execute under to register dropbox_uploader, first making /var/www writeable (this is where .dropbox_uploader is stored): sudo chmod 777 /v...
by TideMan
Sun Jul 29, 2018 11:49 pm
Forum: Troubleshooting
Topic: ssh connection without password
Replies: 8
Views: 355

Re: ssh connection without password

I use WinSCP for copying files to/from PC to RPi. You can use a script and run it on a schedule. Here is a typical script in a file called sync.txt: open pi:mypassword@192.168.1.13 cd /home/pi/Rain/RiccartonHagley synchronize remote close exit which you can execute from DOS using: "c:\Program Files ...
by TideMan
Sun Jul 29, 2018 9:42 pm
Forum: General discussion
Topic: Dropbox_Uploader from php
Replies: 1
Views: 155

Dropbox_Uploader from php

I want to execute dropbox_uploader from within a .php routine using exec: exec("/home/pi/BashFiles/dropbox_uploader.sh download /Public/Jul18log.txt Log.txt",$output,$result) Now, when I run dropbox_uploader the first time from ~/, it asks for my Dropbox authorisation number which it writes into ~/....
by TideMan
Mon Jul 23, 2018 10:27 pm
Forum: Networking and servers
Topic: mDNS with Win 10 1803
Replies: 2
Views: 907

Re: mDNS with Win 10 1803

/etc/avahi/avahi-daemon.conf has both IPv4 and IPv6 enabled, so I don't think that's it.
Also, mDNS worked fine until the Win 10 upgrade, so it's likely something in Windows, not Raspbian.
by TideMan
Mon Jul 23, 2018 8:59 pm
Forum: Networking and servers
Topic: mDNS with Win 10 1803
Replies: 2
Views: 907

mDNS with Win 10 1803

I run my RPis headless from a Win 10 machine using either VNC or PuTTY. Up until the latest Win 10 version (1803), I could refer to my RPis using name.local, having installed Bonjour on the PC. But since the latest version, this no longer works: ping web.local - could not find host ping -6 web.local...
by TideMan
Sun Jul 22, 2018 11:09 pm
Forum: Networking and servers
Topic: Static IP: router or dhcpdc.conf ?
Replies: 4
Views: 277

Static IP: router or dhcpdc.conf ?

My ISP just gave me a new router which makes setting static IPs on my LAN very straightforward. It offers a list of connected computers with their MAC addresses and you click on one and assign an IP address. To date, I've been editing dhcpcd.conf to get a static IP on my RPis. Which is preferable? S...
by TideMan
Wed Sep 27, 2017 3:01 am
Forum: Networking and servers
Topic: Trying to understand networking and its capabilities
Replies: 8
Views: 1300

Re: Trying to understand networking and its capabilities

Connect a separate HDMI cable from each RPi to separate ports on the smart TV, then use the TV's remote to switch between them. My Samsung smart TV then allows its remote to control each device. It does this using a facility called "anynet".
by TideMan
Thu Sep 21, 2017 11:32 pm
Forum: Beginners
Topic: Cmd to See Raspberry OS Version
Replies: 9
Views: 1148

Re: Cmd to See Raspberry OS Version

The trouble with burning a new SD is that you then have to go through and re-install all the programs that were running fine before. Oftentimes, you don't remember until something doesn't work. Then you realise it's because xyz needs to be re-installed (or even built from the tar ball). What a PITA!!
by TideMan
Fri Sep 08, 2017 3:41 am
Forum: Automation, sensing and robotics
Topic: Controlling RPi 3 from (really) far
Replies: 4
Views: 751

Re: Controlling RPi 3 from (really) far

DougieLawson wrote:
Thu Sep 07, 2017 9:59 pm
RealVNC is simple.
Are you implying, Dougie, that one can use RealVNC to connect to a remote machine via the Internet? Without using weaved or similar? If so, how?
by TideMan
Thu Sep 07, 2017 4:52 am
Forum: Advanced users
Topic: Raspberry Pi 2 B+ Internet Surfing Extremely Slow
Replies: 3
Views: 1025

Re: Raspberry Pi 2 B+ Internet Surfing Extremely Slow

Chromium, IceWeasel, Firefox, Epiphany. They're all hopelessly slow in my experience.
But text-based Lynx works OK, so it's probably a graphics issue.
by TideMan
Fri Aug 04, 2017 2:10 am
Forum: Automation, sensing and robotics
Topic: Connect rpi to matlab via wifi
Replies: 5
Views: 2191

Re: Connect rpi to matlab via wifi

Well, I bought a copy of Matlab for Windows on a PC because I use it for work, but on my RPis I use Octave, which is free.
Almost all Matlab scripts transfer seamlessly to Octave.
by TideMan
Mon Jun 12, 2017 10:03 am
Forum: Other programming languages
Topic: Why no PHP forum?
Replies: 20
Views: 3330

Re: Why no PHP forum?

Nor a Fortran forum, yet Fortran runs like a scalded cat on RPis, even an old 512 MB Model B.
by TideMan
Fri Jun 02, 2017 11:28 pm
Forum: Networking and servers
Topic: Wifi connection between Win 10 and Raspberry Pi3 [Solved]
Replies: 15
Views: 1439

Re: Wifi connection between Windows 10 and Raspberry Pi3

I use WinSCP running on my Win 10 machine for this.
It is a very elegant program.
And you can set it up on a schedule to sync automatically, either going from RPi to Win 10, or Win 10 to RPi, or both ways.
by TideMan
Fri Jun 02, 2017 11:14 pm
Forum: Beginners
Topic: KODI? OpenElec? Raspbian? etc. etc.
Replies: 3
Views: 4239

Re: KODI? OpenElec? Raspbian? etc. etc.

I endorse dom's post above. At home, I have OpenELEC running standalone on an RPi3 in the family room next to the TV. We use kodi more than broadcast TV these days. At our beach cottage, I have kodi running from Raspbian on an RPi3 that also runs a weather station (CumulusMX software) that posts a l...
by TideMan
Fri Apr 28, 2017 4:44 am
Forum: Python
Topic: How many versions do I need? !!!
Replies: 28
Views: 3068

Re: How many versions do I need? !!!

Whereas Fortran IV code from the 1960s will work fine with the latest gfortran compiler.
by TideMan
Thu Apr 27, 2017 9:54 am
Forum: Advanced users
Topic: Loading Pi3 data into matlab
Replies: 5
Views: 812

Re: Loading Pi3 data into matlab

AFAIK, you can simply save a .mat file on Linux, then load it on a PC:
save(matfile,'x','y') % in Matlab on RPi
then
xy=load(matfile); % in Matlab on PC
by TideMan
Sun Apr 23, 2017 11:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver for LTC2315 for FFT analysis
Replies: 4
Views: 865

Re: SPI driver for LTC2315 for FFT analysis

If you want fast processing on the RPi, I'd use Fortran for FFT in preference to either Python or Simulink. It's hard to beat compiled Fortran code for straightforward number crunching.
by TideMan
Wed Apr 12, 2017 8:21 pm
Forum: Graphics, sound and multimedia
Topic: Detect a specific Frequency from microphone input signal
Replies: 6
Views: 2658

Re: Detect a specific Frequency from microphone input signal

The trouble with using FFT for this is that your signal is non-stationary, i.e., it is transient. A stationary signal can be defined as having constant variance, no matter what window is chosen. Stationarity is a prerequisite for FFT. A better method is orthogonal wavelet decomposition which uses a ...
by TideMan
Sat Apr 08, 2017 9:22 pm
Forum: Beginners
Topic: Best method for transferring files from computer to RPi?
Replies: 8
Views: 17048

Re: Best method for transferring files from computer to RPi?

And I use WinSCP. It has a very nice GUI. All my RPis are stored there along with their userid/passwords and it just takes a click to connect. I believe it uses SSH.
by TideMan
Wed Mar 29, 2017 3:24 am
Forum: Automation, sensing and robotics
Topic: Upload data to external website
Replies: 4
Views: 907

Re: Upload data to external website

Run gnuplot on the RPi to produce a .png file, then ftp to the web server.
by TideMan
Sun Mar 26, 2017 9:56 pm
Forum: Python
Topic: Script Will Not Run Under CRON
Replies: 28
Views: 2301

Re: Script Will Not Run Under CRON

DirkS wrote:Try using the full path to the python executable.
I agree.
Just about every time I have a problem with cron, it comes down to this.

Go to advanced search