Go to advanced search

by Mafia8540
Fri May 10, 2019 10:06 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

now the local time is 01 and the script does not work on plan thanks
by Mafia8540
Fri May 10, 2019 9:44 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

Code: Select all

time_now   = datetime.now().time()
start_time = time_now.replace(hour=23, minute=59, second=59, microsecond=999999)
end_time   = time(4)
this will release the script from 00 to 04 but I want to start at 04 and stop at 00
because it prevents me from sleeping
by Mafia8540
Fri May 10, 2019 4:00 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

Post a script and I will try to update your script with code when will be free to do this if you want. Jadro #!/usr/bin/env python3 # Author: Edoardo Paolo Scalafiotti <edoardo849@gmail.com> import os from time import sleep import signal import sys import RPi.GPIO as GPIO pin = 18 # The pin ID, edi...
by Mafia8540
Fri May 10, 2019 2:13 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

how to write the script so it works from 04:00 to 00:00 because I do not want to make a noise when I sleep
by Mafia8540
Tue May 07, 2019 9:04 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

As suspected its due to the import of code from a web page using the wrong quotes. you need to change the single and double quotes in these lines 16 - 18 and you need to change the readline() to read() on line 16 also needed to correct indent error in line 40 having done all that you can now run th...
by Mafia8540
Tue May 07, 2019 7:27 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

gordon77 wrote:
Tue May 07, 2019 6:45 pm
What happens if you try python3 run-fan.py ?
"Invalid character in identifier" in line 16

Code: Select all

res = os.popen(‘vcgencmd measure_temp’).readline()
by Mafia8540
Tue May 07, 2019 7:12 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Re: Auto fan script

First I would not advise you to follow the hardware side of that tutorial, as there is no current limiting resistor In the connection between the gpio pin and the transistor base leg and no back end diode across the motor , both these missing components could result in damage to the pi gpio. With r...
by Mafia8540
Tue May 07, 2019 6:01 pm
Forum: Python
Topic: Auto fan script
Replies: 20
Views: 809

Auto fan script

when I try this https://hackernoon.com/how-to-control-a-fan-to-cool-the-cpu-of-your-raspberrypi-3313b6e7f92c And there is a syntax error "root@raspberrypi:/home/pi/Development# python run-fan.py File "run-fan.py", line 16 SyntaxError: Non-ASCII character '\xe2' in file run-fan.py on line 16, but no ...
by Mafia8540
Fri May 03, 2019 7:02 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

Resultat of lsusb is Bus 001 Device 007: ID 15f4:0131 HanfTek Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub So b...
by Mafia8540
Thu May 02, 2019 12:55 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

Resultat of lsusb is

Code: Select all

  Bus 001 Device 007: ID 15f4:0131 HanfTek
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
by Mafia8540
Mon Apr 29, 2019 9:57 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

any ideas?
by Mafia8540
Tue Apr 23, 2019 6:45 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

I have a version 4.2.8-23 but he does not find it dvb-c Could you provide us with a link to your DVB stick? I had a DVB stick and it was not recognized either. It depends on the quality of the device and how well it is manufactured. BGN 29.40 14%OFF | Digital satellite DVB t2 usb tv stick Tuner wit...
by Mafia8540
Mon Apr 22, 2019 4:48 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

DarkPlatinum wrote:
Mon Apr 22, 2019 4:46 pm
Mafia8540 wrote:
Mon Apr 22, 2019 3:46 pm
DarkPlatinum wrote:
Mon Apr 22, 2019 9:19 am


You can put the tv headon on to raspbian os and still do other things with raspbian. The tv headon is just a service, not a whole image.
you mean tvheadEND ?
Yes, sorry.
I have a version 4.2.8-23 but he does not find it dvb-c
by Mafia8540
Mon Apr 22, 2019 3:46 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

Try the latest release of OpenElec / TV nuHeadend: https://openelec.tv/downloads https://openelec.tv/documentation/configuration/configuring-tvheadend this is an option but I want to use it raspbian os for other tasks You can put the tv headon on to raspbian os and still do other things with raspbi...
by Mafia8540
Sat Apr 20, 2019 10:48 am
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

i bought usb dvb stick rtl2832 with the new sony d2837er chip and i can not start it with dvb-c i have no drivers where to download drivers There is a section in this page regards RTL2832 / CXD2837 which may be worth a perusal ?? https://www.linuxtv.org/wiki/index.php/Astrometa_DVB-T2 When run "mak...
by Mafia8540
Fri Apr 19, 2019 6:25 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

this is an option but I want to use it raspbian os for other tasks
by Mafia8540
Fri Apr 19, 2019 5:42 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

DarkPlatinum wrote:
Fri Apr 19, 2019 4:27 pm
What are you planning on doing with the DVB stick?? Aircraft tracking? Watching TV?
I just want to watch tv
by Mafia8540
Fri Apr 19, 2019 3:21 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Re: Usb dvb

i bought usb dvb stick rtl2832 with the new sony d2837er chip and i can not start it with dvb-c i have no drivers where to download drivers There is a section in this page regards RTL2832 / CXD2837 which may be worth a perusal ?? https://www.linuxtv.org/wiki/index.php/Astrometa_DVB-T2 I tested but ...
by Mafia8540
Fri Apr 19, 2019 2:43 pm
Forum: HATs and other add-ons
Topic: Usb dvb
Replies: 25
Views: 2144

Usb dvb

i bought usb dvb stick rtl2832 with the new sony d2837er chip and i can not start it with dvb-c i have no drivers
where to download drivers
by Mafia8540
Sun Sep 02, 2018 12:57 am
Forum: Media centres
Topic: Oscam and tvheadend
Replies: 0
Views: 2075

Oscam and tvheadend

Hi can you some support on how to start oscam on raspberry pi 3 and use in tvheadend, I tried these settings for oscam.conf # oscam.conf generated automatically by Streamboard OSCAM 1.20_svn SVN r11431 # Read more: http://www.streamboard.tv/svn/oscam/trunk/Distribution/doc/txt/oscam.conf.txt [global...
by Mafia8540
Tue May 01, 2018 7:45 pm
Forum: Raspbian
Topic: where is my memory?
Replies: 4
Views: 416

Re: where is my memory?

if I use the command curl instead wget will record the core of the disc again
by Mafia8540
Tue May 01, 2018 6:35 pm
Forum: Raspbian
Topic: where is my memory?
Replies: 4
Views: 416

Re: where is my memory?

honestly I do not know what's going on with the old core files and the core file is 236Kb my goal is just the script to visit the web address http://192.168.0.105/core.php every 1 second
by Mafia8540
Tue May 01, 2018 12:15 pm
Forum: Raspbian
Topic: where is my memory?
Replies: 4
Views: 416

where is my memory?

after installing my raspian free space was 2.3GB installed apache and php and added 1 sh file which is

Code: Select all

$ cat every-5-seconds.sh
#!/bin/bash
while true
do
wget 192.168.0.105/core.php
sleep 1 
done
also after 1 month watch my free memory has fallen to 940mb and continues to decrease where is lost
by Mafia8540
Wed Dec 27, 2017 4:57 pm
Forum: General discussion
Topic: bluetooth speaker problem
Replies: 2
Views: 462

bluetooth speaker problem

hello i got raspberry pi3 and I'm trying to connect my bluetooth speaker I tried this, https://www.raspberrypi.org/magpi/bluetooth-audio-raspberry-pi-3/ and when I try to connect them shows an error failed to connect to device GDBus.Error.org bluez.Error.failed connection time out. Try to connect ag...

Go to advanced search