Go to advanced search

by Faruk
Thu Jan 24, 2019 7:58 am
Forum: Advanced users
Topic: Chromium-Browser does not work from crontab -e
Replies: 7
Views: 616

Re: Chromium-Browser does not work from crontab -e

Ok. Finally what is wrong other way. Why python script just work one time?
by Faruk
Thu Jan 24, 2019 5:41 am
Forum: Advanced users
Topic: Chromium-Browser does not work from crontab -e
Replies: 7
Views: 616

Re: Chromium-Browser does not work from crontab -e

Additionally tried python script. #!/usr/bin/env python import requests import os import webbrowser import time url='www.google.com' url2='/home/pi/Downloads/page.html' netflg=True def internet_on(): while True: try: response = requests.get('https://www.google.com/') netflg=True print(netflg) chrome...
by Faruk
Thu Jan 24, 2019 4:50 am
Forum: Advanced users
Topic: Chromium-Browser does not work from crontab -e
Replies: 7
Views: 616

Re: Chromium-Browser does not work from crontab -e

So how to control every hour from autostart file. Should the control mechanism be in the sh file?
by Faruk
Wed Jan 23, 2019 1:54 pm
Forum: Advanced users
Topic: Chromium-Browser does not work from crontab -e
Replies: 7
Views: 616

Chromium-Browser does not work from crontab -e

Hello I work for do kiosk with raspberry pi. If rpi connect to internet, chrome shows page from internet But if there is not internet connection on pi, chrome shows the page I previously saved(page.html). I create shell script for check internet connection(online or offline status control). And I wa...
by Faruk
Sat Jan 19, 2019 1:15 pm
Forum: Python
Topic: Autostart videoplay from usb
Replies: 3
Views: 226

Re: Autostart videoplay from usb

Just wait subprocess until finish. Script is work this way
by Faruk
Sat Jan 19, 2019 9:13 am
Forum: Python
Topic: Autostart videoplay from usb
Replies: 3
Views: 226

Re: Autostart videoplay from usb

I tried this code but does not work. #!/usr/bin/env python #-*- coding: utf-8 -*- import glob import os import subprocess videolist=[] uzunluk=0 list_lenght=0 videolist=glob.glob('/media/pi/FLASH/playlist/*.mp4') videolist=videolist+glob.glob('/media/pi/FLASH/playlist/*.mp4') list_lenght=len(videoli...
by Faruk
Sat Jan 19, 2019 6:15 am
Forum: Python
Topic: Autostart videoplay from usb
Replies: 3
Views: 226

Autostart videoplay from usb

Hello guys. I want do automatic videoplay from usb flash. For example, I will create "playlist" file on usb flash and I will attach my flash to rpi. My python script will automatic read "playlist" file and if usb has "playlist" file, Rpi will make list this video and show to me. You can think like s...
by Faruk
Mon Jan 14, 2019 9:23 am
Forum: General discussion
Topic: pigpio error: "no permission to update GPIO"
Replies: 5
Views: 369

Re: pigpio error: "no permission to update GPIO"

All of error this: Traceback (most recent call last): File "/home/pi/Petra/PGUI.py", line 166, in updateGUI screenclose() File "/home/pi/Petra/PGUI.py", line 95, in screenclose pi.set_PWM_frequency(30,255) File "/usr/local/lib/python2.7/dist-packages/pigpio.py", line 1586, in set_PWM_frequency _pigp...
by Faruk
Mon Jan 14, 2019 5:18 am
Forum: General discussion
Topic: pigpio error: "no permission to update GPIO"
Replies: 5
Views: 369

Re: pigpio error: "no permission to update GPIO"

I edited my code I forgot first line. Sorry. Also I tried use just GPIO(not pigpio) so my rpi reboot itself when run program. I could not understand why? I researched now.
by Faruk
Sat Jan 12, 2019 2:52 pm
Forum: General discussion
Topic: pigpio error: "no permission to update GPIO"
Replies: 5
Views: 369

Re: pigpio error: "no permission to update GPIO"

Error is:"no permission to update GPIO". Return this error. I will try. If I would not work it. I think use new image. Because I try for do this different way but my Rpi reboot itself.
by Faruk
Sat Jan 12, 2019 1:57 pm
Forum: General discussion
Topic: pigpio error: "no permission to update GPIO"
Replies: 5
Views: 369

pigpio error: "no permission to update GPIO"

Hello I work on script so I want control to backlight of LCD screen with PWM(software). It is worked earlier but it does not work now. I commented out bakclight divide and worked on the other modules on software. Now I want use but I took this error. I researched on net but I could not fix this. How...
by Faruk
Tue Jan 08, 2019 2:19 pm
Forum: Troubleshooting
Topic: Rasbberry pi hang on reboot
Replies: 10
Views: 513

Re: Rasbberry pi hang on reboot

1.5A could be a bit low, depending on what else you have attached to the CM3. Run the system for a while, then before rebooting try the command: vcgencmd get_throttled If you get a non-zero result, post it here. Have you run sudo rpi-update on the system? Because that installs the possibly buggy an...
by Faruk
Tue Jan 08, 2019 11:30 am
Forum: Troubleshooting
Topic: Rasbberry pi hang on reboot
Replies: 10
Views: 513

Re: Rasbberry pi hang on reboot

HawaiianPi wrote:
Tue Jan 08, 2019 10:37 am
Which model Pi?

What operating system (and version)?

What are you using for a power supply?

Are you booting from SD card or USB?
rpi compute module 3 2015 version 1.0

Operating system is stretch version 4.14.90-v7+

Power supply is 5V 1,5A

I booting from SD card
by Faruk
Tue Jan 08, 2019 11:09 am
Forum: Troubleshooting
Topic: Rasbberry pi hang on reboot
Replies: 10
Views: 513

Re: Rasbberry pi hang on reboot

vinaypundith wrote:
Tue Jan 08, 2019 10:26 am
That seems normal. Try booting it now. Does it hang on every reboot or just sometimes?
Just sometimes
by Faruk
Tue Jan 08, 2019 5:58 am
Forum: Troubleshooting
Topic: Rasbberry pi hang on reboot
Replies: 10
Views: 513

Re: Rasbberry pi hang on reboot

Please give more detail, like what had been done just before shutdown. I tried again now. ı started raspberry pi. Usb flash, wireless dongle and keyboard dongle attached to my Rpi. Also I used vnc server and kitty. Kitty connected with ssh to my Rpi. Usually I use vnc server. I used python idle 3, ...
by Faruk
Sat Jan 05, 2019 11:11 am
Forum: Troubleshooting
Topic: Rasbberry pi hang on reboot
Replies: 10
Views: 513

Rasbberry pi hang on reboot

Hello guys. When I reboot my raspberry pi, sometimes my raspberry pi hang. And screen this: [ OK ] Stopped Login Service. [ OK ] Started Show Plymouth Reboot Screen. [ OK ] Stopped Permit User Session. [ OK ] Deactivated swap /var/swap. [ OK ] Stopped LSB: Autogenerate and use a swap file. [ OK ] St...
by Faruk
Sat Jan 05, 2019 10:53 am
Forum: Türkçe
Topic: veri okuma
Replies: 1
Views: 1232

Re: veri okuma

Code: Select all

f=open("dosya.txt","a+")
f.write=(akımdegeri)
Şeklinde yapabilirsin. Bu yazdığım python için geçerli. Hangi programlama dilini kullandığını bilmiyorum ama eğer python kullanmıyorsan kısa bir araştırma ile bolca örnek bulabilirsin. Özellikle yabancı sayfalarda.
by Faruk
Thu Jan 03, 2019 6:17 am
Forum: Advanced users
Topic: (Is this) The correct ways to install the watchdog package?
Replies: 46
Views: 58642

Re: Is this the correct way to install the watchdog package?

Hello guys I want say different things. I did what paulv said. watchdog is works good. Additionally I used software watchdog timer in my raspberry pi. Both watchdog timer works good alone. When I use them together, If raspberry catch any problem, watchdog reboot to raspberry 3 or 4 times. At first, ...
by Faruk
Wed Jan 02, 2019 12:01 pm
Forum: Python
Topic: TclError: no display name and no $DISPLAY enviroment variable problem when autostart
Replies: 3
Views: 392

Re: TclError: no display name and no $DISPLAY enviroment variable problem when autostart

I found. Trouble there was in autostart. I use '/etc/rc.local' for extra. I comment out autostart command in '/etc/rc.local' and just use '/home/pi/.config/lxsession/LDE-pi/autostart'. My queue this: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @point-rpi ...
by Faruk
Wed Jan 02, 2019 8:22 am
Forum: Python
Topic: TclError: no display name and no $DISPLAY enviroment variable problem when autostart
Replies: 3
Views: 392

Re: TclError: no display name and no $DISPLAY enviroment variable problem when autostart

I think found it. I think, python program start before Xwindow. But how can i sure this? /home/pi/.config/lxsession/LXDE-pi/autostart file this: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @/usr/bin/python /home/pi/Petra/PGUI.py @xscreensaver -no-splash @point-rpi Is it important...
by Faruk
Wed Jan 02, 2019 7:01 am
Forum: Python
Topic: TclError: no display name and no $DISPLAY enviroment variable problem when autostart
Replies: 3
Views: 392

TclError: no display name and no $DISPLAY enviroment variable problem when autostart

Hello guys. I have a some problem. I made python program and used tkinter for GUI. My program auto start when raspberry pi start. Normally my program work good. But If I use terminal, I take tcl Error. Main problem appear when I use watchdog.py. When my program begin I take this error and rpi reboot...
by Faruk
Fri Dec 28, 2018 7:50 am
Forum: Troubleshooting
Topic: When autostart Tkinter GUI program "Tcl error" raising
Replies: 0
Views: 119

When autostart Tkinter GUI program "Tcl error" raising

Hello guys. I have a "Tkinter" program on my pi. Tkinter is run with autostart. This worked good. Then I added watchdog class on my program(second py script has watchdog class. I imported on my program ). If Tkinter program does not finished process in x second, watchdog reboot to my rpi. I have tak...
by Faruk
Wed Dec 26, 2018 10:41 am
Forum: Python
Topic: Pass variable script problem
Replies: 3
Views: 282

Re: Pass variable script problem

Additionally. I want check my GUI program for this way. I working for take variable from my GUI program. If I could not take any output reset my rpi. But if the GUI is running I can't taking output but if I close GUI window my second script give return value. Is it fixable thing?
by Faruk
Wed Dec 26, 2018 10:21 am
Forum: Python
Topic: Pass variable script problem
Replies: 3
Views: 282

Re: Pass variable script problem

Thanks for your reply. It is good work :)

Go to advanced search