Go to advanced search

by knute
Fri Feb 26, 2021 3:59 pm
Forum: Networking and servers
Topic: Viewing all my internal webspages externally
Replies: 8
Views: 380

Re: Viewing all my internal webspages externally

Not really clear to me what your problem is here. If it is that mysite.somedns.net resolves to your WAN address and you can't connect to your server on your LAN at 192.168.0.2 from 192.168.0.5, you may need a "hairpin NAT".
by knute
Wed Feb 24, 2021 4:39 pm
Forum: Java
Topic: 64-bit Java on RPi4
Replies: 12
Views: 3746

Re: 64-bit Java on RPi4

This doesn't work, I don't know why. I downloaded jdk-8u191-linux-arm64-vfp-hflt.tar.gz and installed it, but it gives error, I think something with the version is wrong. pi@raspberrypi:~ $ java - version -bash: /opt/jdk1.8.0_191/bin/java: cannot execute binary file: Exec format error pi@raspberryp...
by knute
Thu Feb 11, 2021 3:35 am
Forum: SDK
Topic: Error in pico_setup.sh?
Replies: 3
Views: 172

Re: Error in pico_setup.sh?

Thanks for responding Nick. I was beginning to feel alone :-). Well it was the 10.2.0 compiler that was the problem (or at least I'm 99% sure). Exactly what it was I don't know. I modified my PATH variable temporarily to put /bin:/usr/bin:/sbin:/usr/sbin before /usr/local/bin etc... This put the 8.3...
by knute
Wed Feb 10, 2021 10:05 pm
Forum: SDK
Topic: Error in pico_setup.sh?
Replies: 3
Views: 172

Re: Error in pico_setup.sh?

I've tried erasing and downloading several times but it always fails at the same point. Not sure where to go now.

Is it just me or is this way more complicated than it should be?
by knute
Tue Feb 09, 2021 3:41 am
Forum: SDK
Topic: Error in pico_setup.sh?
Replies: 3
Views: 172

Error in pico_setup.sh?

I've not gotten very far :-) been trying to follow instructions from getting-started-with-pico.pdf. [ 22%] Generating probe.pio.h pioasm/pioasm: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by pioasm/pioasm) make[2]: *** [CMakeFiles/picoprobe_probe_pio_h....
by knute
Sun Feb 07, 2021 1:52 am
Forum: Graphics, sound and multimedia
Topic: Analog gauge graphic, round and bar
Replies: 9
Views: 502

Re: Analog gauge graphic, round and bar

So Java programs have to be in a file with their class name. So the Compass program has to be in a file called Compass.java. You can cut and paste the code into a file with that name. Then to run it you type: java Compass.java and it will compile and run. If you want to compile it first you type: ja...
by knute
Thu Feb 04, 2021 3:41 am
Forum: General discussion
Topic: Take a Photo every 5 mins, on battery pack, for 1+ week
Replies: 7
Views: 340

Re: Take a Photo every 5 mins, on battery pack, for 1+ week

So I dug out my meter and tried my Pi0W to see what the load was. It runs about 120-150ma at idle to as much as 290ma when it is busy. I imagine the one without the wifi uses a little less. The interesting thing I noticed was that it only drew 10ma in halt. Does anybody know if it is possible to use...
by knute
Tue Feb 02, 2021 3:34 pm
Forum: Graphics, sound and multimedia
Topic: Analog gauge graphic, round and bar
Replies: 9
Views: 502

Re: Analog gauge graphic, round and bar

to knute and gavin42mc, But I do not know Java. Lot's of places to learn Java programming on the net or in books. Oracle has a great site that I use all the time for help. https://docs.oracle.com/javase/tutorial/ I tried using the code knute provided but got hung up immediately on <<< import java.a...
by knute
Fri Jan 29, 2021 4:01 am
Forum: General discussion
Topic: Take a Photo every 5 mins, on battery pack, for 1+ week
Replies: 7
Views: 340

Re: Take a Photo every 5 mins, on battery pack, for 1+ week

You could use an Arduino Nano or a RPi Pico to switch on power to a Pi 0 every 5 minutes for a minute (or however long it takes to boot and take your picture). The script in the 0 could shutdown the Pi and the Nano could turn it off after a minute. Nano uses about 20ma and a Pi0 about 100 ma, a litt...
by knute
Thu Jan 28, 2021 5:46 pm
Forum: Troubleshooting
Topic: Webview/jfxwebkit missing
Replies: 12
Views: 329

Re: Webview/jfxwebkit missing

OK so I couldn't get it to work on any 32bit OS. I did however get it to run on 64bit RaspberryPi OS, the beta, and on Ubuntu Desktop 20.10 64bit. I didn't do anything beyond getting it to come up to a GUI window as I don't know what the software does. In both cases I used Bell Software's arm64 15.0...
by knute
Thu Jan 28, 2021 3:02 am
Forum: Troubleshooting
Topic: Webview/jfxwebkit missing
Replies: 12
Views: 329

Re: Webview/jfxwebkit missing

I'm not sure what's up with that. I look at what's installed here and it looks to me like it is all there. Please post a link to the program .jar file again and I'll make up a system and try it tomorrow. There is a file called jfxwebkit.dll that is a Windows runtime environment for JavaFX. Does the ...
by knute
Wed Jan 27, 2021 11:49 pm
Forum: Troubleshooting
Topic: Webview/jfxwebkit missing
Replies: 12
Views: 329

Re: Webview/jfxwebkit missing

My reply disappeared.

In any case, I've seen that note about javafx.media and javafx.webkit not working but I know that javafx.media works in both JDK11 and JDK15 from Bell. I would give it a try.
by knute
Wed Jan 27, 2021 11:40 pm
Forum: Troubleshooting
Topic: Webview/jfxwebkit missing
Replies: 12
Views: 329

Re: Webview/jfxwebkit missing

OK, my best suggestion for you is to clean out all of the Java that you have now and go to bell-sw.com and download version 15.0.2 JDK FULL. The FULL part means it has JavaFX in it. When you get that done you can run the program without specifying and of the module-path or add-modules statements as ...
by knute
Wed Jan 27, 2021 11:22 pm
Forum: Troubleshooting
Topic: Need Help with getting CronTab to work
Replies: 5
Views: 149

Re: Need Help with getting CronTab to work

@reboot echo "denavin's pi started at `date`" > /home/pi/cron

Look in /home/pi/cron after a reboot.
by knute
Wed Jan 27, 2021 11:04 pm
Forum: Troubleshooting
Topic: Webview/jfxwebkit missing
Replies: 12
Views: 329

Re: Webview/jfxwebkit missing

The first question is what JavaFX are you using? I've not seen a Webview component and would need to know exactly what component isn't being displayed. Can you download the version 15.0.2 "full" JDK from bell-sw.com? That is most likely to have the latest and most complete arm32hf version ...
by knute
Tue Jan 26, 2021 1:26 am
Forum: General discussion
Topic: any application available in raspberry pi to do string operation, like lower case to upper case, convert ascii to hex
Replies: 14
Views: 760

Re: any application available in raspberry pi to do string operation, like lower case to upper case, convert ascii to he

Thanks for information. i am looking for GUI application. but every one suggesting programming way. i need to insert message to oracle table for sending SMS to customers. for that, first i need to type message template in English, convert it to HEX code and Unicode Hex value. for this i need string...
by knute
Mon Jan 25, 2021 3:39 am
Forum: General discussion
Topic: any application available in raspberry pi to do string operation, like lower case to upper case, convert ascii to hex
Replies: 14
Views: 760

Re: any application available in raspberry pi to do string operation, like lower case to upper case, convert ascii to he

I remembered this from 40 or 50 years ago, uc.c. Just pipe the data to it and it converts it upper case. To do lower case just change toupper to tolower. I know we did one that printed the data from a file with ASCII and hex too. #include <stdio.h> #include <ctype.h> int main() { int c; while ((c = ...
by knute
Sun Jan 24, 2021 12:06 am
Forum: Python
Topic: playing an audio clip remotely
Replies: 11
Views: 338

Re: playing an audio clip remotely

Excellent, keep us posted. So I wrote a small test program so you can check the function of your pushbutton switch. Go to http://knutejohnson.com/Rploesser/ and download ButtonTest.java and JPigpio.jar. The program is marked up so you can see what's happening in the code. Either use GPIO12 or change...
by knute
Fri Jan 22, 2021 11:13 pm
Forum: Python
Topic: playing an audio clip remotely
Replies: 11
Views: 338

Re: playing an audio clip remotely

This is really simple to code in Java. Does that work for you? I've written a Java interface to pigpio that will make it all doable in pure Java. You can take a look at my website http://knutejohnson.com/pi. If Java is fine for you, make sure you have openjdk11 installed. $ dpkg -l | grep openjdk-11...
by knute
Fri Jan 22, 2021 3:32 pm
Forum: Python
Topic: playing an audio clip remotely
Replies: 11
Views: 338

Re: playing an audio clip remotely

If it works in one direction we should be able to make it work in the other too. Is the mp3 file of a long duration or is it just some short (less than a few seconds) message? Do we need to actually send the sound file or can it be stored on the Pi? I don't know much about adhoc networks but I'm ass...
by knute
Fri Jan 22, 2021 3:08 am
Forum: Python
Topic: playing an audio clip remotely
Replies: 11
Views: 338

Re: playing an audio clip remotely

Do you want to play more than one sound (more than 1 button)?

What file format is the sound?
by knute
Thu Jan 21, 2021 10:03 pm
Forum: Python
Topic: playing an audio clip remotely
Replies: 11
Views: 338

Re: playing an audio clip remotely

Sure I'll help you do that.

First question, physical button or software button?

Second question, are the Pis networked together, either ethernet or wifi?
by knute
Sat Jan 16, 2021 3:50 am
Forum: Graphics, sound and multimedia
Topic: Analog gauge graphic, round and bar
Replies: 9
Views: 502

Re: Analog gauge graphic, round and bar

gauge.png It is really easy to draw things like gauges in Java. If you wanted to write your main code in Python, you can still make your graphical display with Java and communicate between the two with Sockets. Below is a simple round dial gauge that you can change with the slider. Bar graphs, movi...
by knute
Wed Jan 13, 2021 11:10 pm
Forum: Beginners
Topic: Default TCP/UDP ports for default RP services?
Replies: 10
Views: 415

Re: Default TCP/UDP ports for default RP services?

Raspberry Pi 2 is running a local DNS server with DNS-over-HTTPS. The only outbound ports it needs as a local DNS server are UDP port 53 (plaintext DNS), UDP port 123 (NTP), TCP port 80 (HTTP) and TCP port 443 (HTTPS, DNS-over-HTTPS). What I don't think you understand is that those are inbound port...
by knute
Wed Jan 13, 2021 10:37 pm
Forum: Networking and servers
Topic: Can't move files to Apache HTML folder
Replies: 5
Views: 295

Re: Can't move files to Apache HTML folder

josh07 wrote:
Wed Jan 06, 2021 3:19 am
I'm using desktop GUI because im not good with terminal yet. Sorry if this is an easy fix, this is my first time using a Linux OS.
Except he's using the file manager. Not easy to get it to be root.

Go to advanced search