Go to advanced search

by david_1234
Mon Sep 16, 2019 9:47 am
Forum: General discussion
Topic: free some RAM
Replies: 16
Views: 1283

Re: free some RAM

I did it the old way
but
Thank you!
by david_1234
Mon Sep 16, 2019 9:14 am
Forum: General discussion
Topic: free some RAM
Replies: 16
Views: 1283

Re: free some RAM

I'm waitng for PI4 to arrive - it will be next week ~

just to be sure
this is how I increase the SWAP ?

Code: Select all

sudo nano /etc/dphys-swapfile
change it to 1024?
by david_1234
Mon Sep 16, 2019 8:55 am
Forum: General discussion
Topic: free some RAM
Replies: 16
Views: 1283

Re: free some RAM

a java\node-JS application that run on the browser ?
this is what I have running on my PI3
by david_1234
Mon Sep 16, 2019 8:45 am
Forum: General discussion
Topic: free some RAM
Replies: 16
Views: 1283

free some RAM

hello , I have notice that my PI is sometime unavailable to reach by ssh , and the screen is freeze this is what I get when I use "free -h " command free -h total used free shared buff/cache available Mem: 926M 657M 24M 216M 244M 14M Swap: 99M 99M 0B I can see I have a probelm is there anything I ca...
by david_1234
Sun Sep 15, 2019 12:00 pm
Forum: General discussion
Topic: can I create my own PI card?
Replies: 8
Views: 543

Re: can I create my own PI card?

I agrre with this Use a compiled language instead of Java and Python but we found that there are some application work better and easier to write\debug\work sometime in Java and sometime in Python. and the application use many of the PI pins , we prefere to stay with this . I will try the PI4 Thanks ,
by david_1234
Sun Sep 15, 2019 10:16 am
Forum: General discussion
Topic: can I create my own PI card?
Replies: 8
Views: 543

can I create my own PI card?

Hello , Wanted to know I have an application that run on PI - but the cpu is around 75% all the time because it's a big apllication and we have try to reduce - nothing. and all the code is java +python according to the pi pins (reading I\Os, using pi packages etc..) so is there a way to build my own...
by david_1234
Tue Sep 10, 2019 2:59 pm
Forum: Beginners
Topic: it there any way to know if I my speaker is connected?
Replies: 2
Views: 172

it there any way to know if I my speaker is connected?

Hello , I have a speaker that is connected to my pi in another room so I when I'm not near the pi I can here is beep when I get data to my runing server (on th pi) is there any way to know if the speasker is not connectd correctly? or even if 1 wire is not connected? a simple python code and maybe a...
by david_1234
Tue Sep 10, 2019 1:58 pm
Forum: Beginners
Topic: setup Twinkle by ssh?
Replies: 0
Views: 90

setup Twinkle by ssh?

Hello ,
is there any way to setup Twinkle using ssh?

I have a PI with Twinkle without a screen , and I want to change the ser\user-name\password he is connected to

Thanks ,
by david_1234
Tue Aug 13, 2019 12:07 pm
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2627

Re: Get pi CPU temp and load

Thanks
I will take a look at this
by david_1234
Mon Aug 12, 2019 7:21 am
Forum: General discussion
Topic: connection doens't return after router reboot
Replies: 9
Views: 588

Re: connection doens't return after router reboot

I could tell the pi to use DHCP , and in the the router to config it to give the PI saved address but it' seem very strage - because I don't get this problem with other devices connected to the router (all of them have static ip).. maybe I write a script like this: ping to 10.0.01(router IP) if no r...
by david_1234
Thu Aug 08, 2019 9:20 am
Forum: General discussion
Topic: connection doens't return after router reboot
Replies: 9
Views: 588

Re: connection doens't return after router reboot

Using a static ip for the pi
other computers\devices that also have a static IP that connected to the same router - work with out any problem after router reboot.

I can't ping the router
I get
"Netwrok unreachable"
by david_1234
Thu Aug 08, 2019 9:11 am
Forum: General discussion
Topic: connection doens't return after router reboot
Replies: 9
Views: 588

Re: connection doens't return after router reboot

no
Ehternet connection
by david_1234
Thu Aug 08, 2019 8:52 am
Forum: General discussion
Topic: connection doens't return after router reboot
Replies: 9
Views: 588

connection doens't return after router reboot

Hello , I have notice this problem on my pi: the pi is connected to a router and working when I reboot the pi - everything is ok , the connection return after the boot . when I reboot the router - I lose connection to the pi and I have to do a hard reset \ local reboot why is this ? how can I fix th...
by david_1234
Thu Aug 08, 2019 8:48 am
Forum: Python
Topic: push button
Replies: 3
Views: 253

Re: push button

Just wanted to see if it can be done better ,

I will do what
hippy
suggested

Thanks !
by david_1234
Tue Aug 06, 2019 1:11 pm
Forum: Python
Topic: push button
Replies: 3
Views: 253

push button

Hello , I have a simple code that when I press the button he send me a UDP to my server it's working just wnat to know if I need to change\add\remove something in the setting of the button I have connected the button to pin 10 and pin1 (3.3V) with a 1K resistor . GPIO.setwarnings(False) # Ignore war...
by david_1234
Sun Aug 04, 2019 10:34 am
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2627

Re: Get pi CPU temp and load

I found this command # Return % of CPU used by user as a character string def getCPUuse(): return(str(os.popen("top -n1 | awk '/Cpu\(s\):/ {print $2}'").readline().strip())) but the resualt is in the range of 2.8 - 3.5 when I look at hte icon of the cpu from the gui I can see it changing from 30-60%...
by david_1234
Sun Aug 04, 2019 10:27 am
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2627

Re: Get pi CPU temp and load

but it will just give me the usage of the python , no?

I want to see of the all system

or I didn't understand you?

Thanks .
by david_1234
Sun Aug 04, 2019 10:12 am
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2627

Re: Get pi CPU temp and load

this is what I wanr\need to do
run my code and see how the PI handle with it...
for now just for report(save the data into a file ).

Thanks ,
by david_1234
Sun Aug 04, 2019 10:04 am
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2627

Re: Get pi CPU temp and load

Thanks,

and about the cpu load?
by david_1234
Sun Aug 04, 2019 9:52 am
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2627

Get pi CPU temp and load

Hello ,
I'm trying to get the cpu information
I couldn't find the cpu load

the cpu temp I'm getting using :

Code: Select all

f = open("/sys/class/thermal/thermal_zone0/temp", "r")
    t = f.readline ()
    CPU_Temp_Int = int(t)
    CPU_Temp = (CPU_Temp_Int / 1000)
    
but where is the cpu load?

Thanks ,
by david_1234
Thu Aug 01, 2019 1:49 pm
Forum: General discussion
Topic: How to play mp3\wav from pi using external sound card?
Replies: 4
Views: 643

Re: How to play mp3\wav from pi using external sound card?

Never mind
Found this :

Code: Select all

mpg123 -o alsa:hw:1,0 /home/pi/test.mp3

Thanks !
by david_1234
Thu Aug 01, 2019 1:32 pm
Forum: General discussion
Topic: How to play mp3\wav from pi using external sound card?
Replies: 4
Views: 643

Re: How to play mp3\wav from pi using external sound card?

how do I know the actual device name? I have try this command aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevi...
by david_1234
Sun Jul 21, 2019 12:19 pm
Forum: General discussion
Topic: Boot python script in minimized windows?
Replies: 1
Views: 207

Boot python script in minimized windows?

Hello ,
I have a python script that start on boot
using

Code: Select all

@lxterminal -e /usr/bin/python /home/pi/mu_code/MyProgram/PressButton.py
wotking wihtout any problem

the only isue is that it show on screen the terminal
is there any way to make it run with minimized window?

Thanks ,
by david_1234
Sun Jul 21, 2019 11:08 am
Forum: General discussion
Topic: How to play mp3\wav from pi using external sound card?
Replies: 4
Views: 643

How to play mp3\wav from pi using external sound card?

Hello, I'm using this device in as a usb sound card https://www.amazon.com/SB1-Sharkoon-%E3%83%8F%E3%83%BC%E3%83%89%E3%82%A6%E3%82%A7%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%A9%E3%82%A4%E3%82%B6%E3%83%BC%EF%BC%86%E3%82%B5%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E5%8A%B9%E6%9E%9C%E6%90%AD%E8%BC%89USB%E5%A4%96%E...
by david_1234
Mon Jul 15, 2019 9:10 am
Forum: General discussion
Topic: how to run twinkle at startup?
Replies: 1
Views: 428

how to run twinkle at startup?

Hello , I want to make my pi run twinkle voip run on startup. also I have a python code that run on boot the python is wotking\botting , but the twinkle doesn't I edit the rc.local to this: GNU nano 2.7.4 File: /etc/rc.local /usr/bin/python3 /home/pi/mu_code/MyProgram/PressButtonShowMsg.py & /home/p...

Go to advanced search