Go to advanced search

by david_1234
Thu Aug 08, 2019 9:11 am
Forum: General discussion
Topic: connection doens't return after router reboot
Replies: 9
Views: 425

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: 425

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: 201

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: 201

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: 1979

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: 1979

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: 1979

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: 1979

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: 1979

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: 304

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: 304

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: 109

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: 304

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: 296

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...
by david_1234
Mon Jul 01, 2019 10:00 am
Forum: Beginners
Topic: Question - Can PI be a http\https web proxy?
Replies: 8
Views: 603

Re: Question - Can PI be a http\https web proxy?

OK I read and did some configuration but I think I did something wrong I have added in the squid.conf this line in the http_access allow all #http_access deny all and added this line in the end acl blocksite1 dstdomain yahoo.com acl blocksite2 dstdomain www.rediff.com http_access deny blocksite1 htt...
by david_1234
Sun Jun 30, 2019 1:33 pm
Forum: Beginners
Topic: Question - Can PI be a http\https web proxy?
Replies: 8
Views: 603

Re: Question - Can PI be a http\https web proxy?

I don't understand how what you wrote help me :-)

I know I can install this - but how to make the pi to be a https proxy server ?
this is what I wnat to know and do

Thanks,
by david_1234
Thu Jun 27, 2019 9:18 am
Forum: Beginners
Topic: Question - Can PI be a http\https web proxy?
Replies: 8
Views: 603

Re: Question - Can PI be a http\https web proxy?

I think you totally misunderstand me :-)

I want to make the pi work as https web server inside my netwrok

this all I want to do...

how can I do this?
by david_1234
Sun Jun 23, 2019 7:46 am
Forum: Beginners
Topic: Question - Can PI be a http\https web proxy?
Replies: 8
Views: 603

Question - Can PI be a http\https web proxy?

I want to make a proxy server as a project for school . so I will be monitor all https+https traffic and also will be able to change \block all kind of things and push information to the users. for example : block jpg images rotate img file block website redirect known websites **** this is just an ...
by david_1234
Mon May 20, 2019 10:23 am
Forum: General discussion
Topic: memory problem?
Replies: 15
Views: 825

Re: memory problem?

Thanks ,
we are working on the code from this morning ...
all the post with the tips are very helpfull
Thank you!
by david_1234
Mon May 20, 2019 7:45 am
Forum: General discussion
Topic: memory problem?
Replies: 15
Views: 825

Re: memory problem?

1. I'm not saying my code is perfect... (and the code is written by 3 people - so it will take some time to find the problem ) this is why I thought maybe there is a faster and easy solution. I will start looking at what you post - so thank you for this :-) 2. meanwhile I will increae the swap to 10...
by david_1234
Sun May 19, 2019 2:47 pm
Forum: General discussion
Topic: memory problem?
Replies: 15
Views: 825

Re: memory problem?

I'm sorry but I don't understand something ... (maybe the problem is wiht my English) as you worte I have 16GB SD card I use only about ~5GB for the OS and all the files I need for the application. so this is not a problem I just don't get this line - If you have a 16 gb card, use it as it is better...
by david_1234
Sun May 19, 2019 2:29 pm
Forum: General discussion
Topic: memory problem?
Replies: 15
Views: 825

Re: memory problem?

OK
so 2 questions now:
1. how do I increase it? and to how much?
2. will the 16GB SD will be enough?

Thanks,
by david_1234
Sun May 19, 2019 1:44 pm
Forum: General discussion
Topic: memory problem?
Replies: 15
Views: 825

Re: memory problem?

the code is more then 1000 lines in node-js so I don't think its relevant ... so what would you suggest? assuimg I will not find any way to optimize the code . if I will install it on a 64GB SD card - do you think it will help? also what do you mean by assuming the virtual memory has to be on sd car...
by david_1234
Sun May 19, 2019 12:40 pm
Forum: General discussion
Topic: memory problem?
Replies: 15
Views: 825

memory problem?

Hello , I'm having a problem after 4-5 days that my application is working - it start to work slow \ get stuck so I have to reboot it I thought the problem is in the code - but when I run it on my computer (and not PI ) it work for more then 10 days without any problem. now I can see that I can't re...
by david_1234
Thu May 16, 2019 12:29 pm
Forum: General discussion
Topic: node.js problem with serialport ?
Replies: 2
Views: 449

node.js problem with serialport ?

Hello , when I try to run a code using serialport I ge this error - pi@raspberrypi:~ $ sudo node Documents/SendRS485.js /home/pi/node_modules/bindings/bindings.js:121 throw e; ^ Error: The module '/home/pi/node_modules/@serialport/bindings/build/Release/bindings.node' was compiled against a differen...

Go to advanced search