Go to advanced search

by knute
Fri Sep 20, 2019 1:13 am
Forum: Graphics, sound and multimedia
Topic: Web camera and time lapse video
Replies: 1
Views: 192

Re: Web camera and time lapse video

A RaspberryPi, a Pi camera and the ffmpeg program should do what you asked.
by knute
Thu Sep 19, 2019 4:42 pm
Forum: General discussion
Topic: Small piwiz race condition (time sync)
Replies: 20
Views: 1321

Re: Small piwiz race condition (time sync)

To sum up, systemd uses its release date as the initial time. Then it compares the time at boot to the modification time of the drop in file, which is newer. That triggers the warning. I still don't understand why this doesn't affect units without drop in files, but I've had enough digging through ...
by knute
Thu Sep 19, 2019 4:40 pm
Forum: Troubleshooting
Topic: Clock?
Replies: 13
Views: 901

Re: Clock?

So I found out some more interesting stuff. I thought that my Xubuntu box was updating the time much sooner than the desktop came alive. That is incorrect. Xubuntu is using systemd-timesyncd to update its system clock just like Raspbian and it takes about the same amount of time, 20 to 30 seconds. T...
by knute
Wed Sep 18, 2019 3:02 pm
Forum: General discussion
Topic: Upload a pic every minute
Replies: 45
Views: 2925

Re: Upload a pic every minute

eccentricdyslexic wrote:
Wed Sep 18, 2019 2:42 pm
Looks like i have to upgrade to Jessie...hope it doesn't break things... either that or skip hosting and upload the pic every minute..
Buster would be better.
by knute
Wed Sep 18, 2019 3:00 pm
Forum: Troubleshooting
Topic: Clock?
Replies: 13
Views: 901

Re: Clock?

NTP on Raspbian suffers from the same problem, that is not being up when the desktop gets up. It can take 20 to 30 seconds for the system clock to be synchronized and this is playing havoc with some folks programs that load with the desktop and need the current time. I wrote a new script to check th...
by knute
Tue Sep 17, 2019 8:44 pm
Forum: Troubleshooting
Topic: Clock?
Replies: 13
Views: 901

Re: Clock?

It's highly likely that the first attempt for timesyncd to get the time could fail. I've not looked at the dependencies as I've disabled it in favour of good old NTP on all of my systems. I'm a fan of NTP as well. It has the same problem though with Buster. Something is off in the timing somewhere....
by knute
Tue Sep 17, 2019 8:38 pm
Forum: General discussion
Topic: Upload a pic every minute
Replies: 45
Views: 2925

Re: Upload a pic every minute

I'd rather the pi act as a webserver, so as not too use all my bandwidth (internet very poor here). Any good guides to setting up a webserver? sudo apt install apache2 apache2-doc Now you have a web server. Follow neilgl's fine instructions for creating a web page document. Put that in /var/www/htm...
by knute
Tue Sep 17, 2019 3:20 pm
Forum: General discussion
Topic: Small piwiz race condition (time sync)
Replies: 20
Views: 1321

Re: Small piwiz race condition (time sync)

After switching over to Buster Lite, I began having 'apt-get update' failures when it is run immediately after startup. When it became clear the problem was due to the time not being set, I added the following to my startup script and haven't had any problems since: # Wait For Time Synchronization ...
by knute
Tue Sep 17, 2019 3:05 pm
Forum: General discussion
Topic: Upload a pic every minute
Replies: 45
Views: 2925

Re: Upload a pic every minute

How can one then display the latest image on a webpage? Cheers Steve Just send the image file to the webserver. Do you want your Pi to be the webserver or is it to be remote? If it is local you can just copy the file to the appropriate directory, if remote you can send the photos via FTP or some ot...
by knute
Tue Sep 17, 2019 2:53 pm
Forum: Troubleshooting
Topic: Clock?
Replies: 13
Views: 901

Re: Clock?

Once the network is alive systemd-timesyncd gets the time from an internet time server. It then polls, infrequently, to keep the clock close to the local time of day. I don't know how it knows the network is alive since systemd-timesyncd apparently normally uses systemd-networkd to determine that a...
by knute
Sat Sep 14, 2019 9:10 pm
Forum: Troubleshooting
Topic: Clock?
Replies: 13
Views: 901

Clock?

Has anybody noticed that it takes a long time for the clock to set with Buster? From the time the desktop is up, it takes my 3B+ and 4 between 1:00 and 1:20 to set. I also noticed something else interesting, the Pi remembers when it was shut down and when it comes back it has that time until it upda...
by knute
Sat Sep 14, 2019 8:32 pm
Forum: General discussion
Topic: Locked topic question?
Replies: 4
Views: 422

Re: Locked topic question?

Thanks very much for the reply and the unlocking. I posted a follow up and you can lock it again if you wish.

Thanks,

knute...
by knute
Sat Sep 14, 2019 8:29 pm
Forum: Troubleshooting
Topic: Java GUI to set static IP parameters in Jessie
Replies: 2
Views: 764

Re: Java GUI to set static IP parameters in Jessie

New code for Buster at http://knutejohnson.com/pi. The old code only worked on Jessie and that is now ancient history.
by knute
Sat Sep 14, 2019 8:27 pm
Forum: Java
Topic: Change static IP from app
Replies: 4
Views: 1843

Re: Change static IP from app

I wrote a Java application for changing the IP settings. You are free to steal as much of that as is helpful. The program is IPConfig. http://knutejohnson.com/pi
by knute
Sat Sep 14, 2019 7:55 pm
Forum: General discussion
Topic: Locked topic question?
Replies: 4
Views: 422

Locked topic question?

Two years ago I made a post that nobody was interested at the time but a few days ago somebody was. But before I could respond the thread was locked and since there is no way that I know of to send a note to the locker I couldn't request it be unlocked. And maybe it can't be I don't know. I follow m...
by knute
Wed Sep 04, 2019 3:11 pm
Forum: Beginners
Topic: Filezilla Server, Raspberry Pi 4
Replies: 4
Views: 428

Re: Filezilla Server, Raspberry Pi 4

I think filezilla only makes a server for Windows. Raspbian comes with SFTP already installed. If you want a plain Jane FTP server both ftpd and vsftp are available in the repository. I've used vsftp extensively on Linux servers and on my Pis. It is easy enough to configure and is fast too.
by knute
Sat Aug 24, 2019 10:51 pm
Forum: Troubleshooting
Topic: Another Autostart Thread... (Sorry)
Replies: 2
Views: 182

Re: Another Autostart Thread... (Sorry)

I would be curious to know how you run a GUI application without a desktop?

Did you compile it yourself or did you find a compiled file somewhere?

As to starting it, run it as a systemd service.
by knute
Sat Aug 17, 2019 7:37 pm
Forum: Python
Topic: Old-school GUI - Possible? (Beware, silly purpose)
Replies: 27
Views: 4580

Re: Old-school GUI - Possible? (Beware, silly purpose)

And an example of setting up your menu with buttons. You will see right away why I used the labels in the original but it does work. import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Buttons extends JFrame { private Color mBlue = new Color(0x3e86ca); private Color mGreen...
by knute
Sat Aug 17, 2019 7:01 pm
Forum: Python
Topic: Old-school GUI - Possible? (Beware, silly purpose)
Replies: 27
Views: 4580

Re: Old-school GUI - Possible? (Beware, silly purpose)

One way to swap out panels with a button: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Panels extends JFrame { private final Panel1 panel1; private final Panel2 panel2; public Panels() { super("Panels"); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setPreferre...
by knute
Sat Aug 17, 2019 6:37 pm
Forum: Python
Topic: Old-school GUI - Possible? (Beware, silly purpose)
Replies: 27
Views: 4580

Re: Old-school GUI - Possible? (Beware, silly purpose)

Okay might need a bit more help... :lol: So, code is running fine, currently looking at on the PC just to have a better workspace - using Eclipse. Again, never used JAVA, but some things are clear to me, like the button actions and the buttons used: class TabAction extends AbstractAction { public v...
by knute
Tue Aug 13, 2019 9:38 pm
Forum: Python
Topic: Old-school GUI - Possible? (Beware, silly purpose)
Replies: 27
Views: 4580

Re: Old-school GUI - Possible? (Beware, silly purpose)

That little piece of code, creates the image and responds to keystrokes as you wanted. There (currently) is no other code. If you have Java 11 you can just run it from the command line with: java McCarty.java. If you are running Java 8 you will need to compile it and then run it. javac McCarty.java ...
by knute
Mon Aug 12, 2019 6:45 pm
Forum: Python
Topic: Old-school GUI - Possible? (Beware, silly purpose)
Replies: 27
Views: 4580

Re: Old-school GUI - Possible? (Beware, silly purpose)

Spaziba wrote:
Mon Aug 12, 2019 6:01 pm

Oh my, that is also awesome! Down and dirty for the win.
Guess it's time to learn JAVA - well at least learn enough to make this.
It was kind of fun to play with. Let me know if you want some help with it. pi at knutejohnson dot com
by knute
Sun Aug 11, 2019 3:50 pm
Forum: Python
Topic: Old-school GUI - Possible? (Beware, silly purpose)
Replies: 27
Views: 4580

Re: Old-school GUI - Possible? (Beware, silly purpose)

This is a perfect job for Java. Graphics are easy and so is the logic. This is down and dirty with no attempt to streamline. import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class McCarty extends JFrame { public McCarty() { setLayout(new GridBagLayout()); ...
by knute
Thu Aug 08, 2019 8:01 pm
Forum: C/C++
Topic: Clock_nanosleep issues
Replies: 4
Views: 2683

Re: Clock_nanosleep issues

joan wrote:
Thu Aug 08, 2019 8:43 am
We don't need your existing code. We need the smallest program you can create which exhibits the problem. Additionally the act of preparing such a program may point you to a bug in your code.
From the wayback machine a SSCCE. http://www.sscce.org/

Thank you Andrew Thompson.
by knute
Tue Aug 06, 2019 10:42 pm
Forum: Java
Topic: Install Java7 on Raspian buster
Replies: 10
Views: 4008

Re: Install Java7 on Raspian buster

When you attempt to run it under Java 8 what errors are you getting? Java 7 is so far beyond end of life that without going back to a much older version of Raspbian you probably aren't going to get it to run and then you are going to run into problems getting the old version of Raspbian to run on yo...

Go to advanced search