Go to advanced search

by PhatFil
Thu Aug 22, 2019 2:15 pm
Forum: General programming discussion
Topic: send email from one pi when another goes down
Replies: 6
Views: 90

Re: send email from one pi when another goes down

A Pi-0-w or perhaps an even less sophisticated soc dev board such as an esp8266 could handle this job.
But considering the cost of a Pi-zero-w and the common o/s that would be my choice,
by PhatFil
Wed Aug 21, 2019 3:45 am
Forum: Python
Topic: Strings in a directory path
Replies: 9
Views: 237

Re: Strings in a directory path

by PhatFil
Tue Aug 20, 2019 8:37 pm
Forum: Troubleshooting
Topic: PIR motion sensor repetition
Replies: 25
Views: 5695

Re: PIR motion sensor repetition

fwiw i had fun n games with similar sensors, never got to a happy conclusion with the sensor. after giving up and buying $5 433mhz alarm kit battery operated pir sensors which work fine, i came across the following How to utube nominating a sensor option that proved easier to use. https://www.youtub...
by PhatFil
Tue Aug 20, 2019 2:13 am
Forum: Beginners
Topic: How to combine two infrared sensor codes for one program?
Replies: 3
Views: 83

Re: How to combine two infrared sensor codes for one program?

currently you have

Code: Select all

init first thing
while true
	do first thing

init second thing	
while true
	do Second thing
how about something like

Code: Select all

init first thing
init second thing
while true
       do first thing 
       do second thing
by PhatFil
Sun Aug 18, 2019 4:03 pm
Forum: Beginners
Topic: Laser Sensor Plate Counter
Replies: 3
Views: 112

Re: Laser Sensor Plate Counter

can you provide a link to the laser sensor you want to use? or is this a more basic general enquiry looking for h/w ideas too. a laser solution is a bit extreme for a beginner Lots of safety considerations best avoided imho.. mechanical switches or magnetic reed switches or perhaps exploiting the co...
by PhatFil
Sun Aug 18, 2019 1:57 pm
Forum: Networking and servers
Topic: Raspberry Pi as storage server?
Replies: 3
Views: 155

Re: Raspberry Pi as storage server?

For a roadmap to follow search for key words NAS (network attached storage), and remote web access..

https://raspberrypi.stackexchange.com/q ... r-internet
by PhatFil
Sat Aug 17, 2019 11:37 pm
Forum: General programming discussion
Topic: Power Timer App
Replies: 6
Views: 209

Re: Power Timer App

Sounds like a great getting started project.. Python is probably the best programming language to get started with, Lots of online resources too. the information your interested in is already contained in the syslog (a file you can find in the directory /var/log) you can use the cat or tail commands...
by PhatFil
Fri Aug 16, 2019 2:43 pm
Forum: Automation, sensing and robotics
Topic: RPI Zero W and two DHT11 confusion
Replies: 5
Views: 308

Re: RPI Zero W and two DHT11 confusion

everyone was a beginner, some of us remain in the state perpetually.. #1 are you 100% sure dht11 sensor #2 works ok? try replacing it with #1 sensor in your pi circuit and running the original working with 1 sensor script to validate it.. You can always pop over to the github page for the adafruit p...
by PhatFil
Thu Aug 15, 2019 9:17 pm
Forum: Beginners
Topic: kiosks for dummies?
Replies: 5
Views: 286

Re: kiosks for dummies?

A kiosk system lets the users have some interaction via keyboard/mouse or touchscreen with the interface.

If you only want to display a single page without providing keyboard/mouse input, HIde them or dont connect them.
and just start up chrome with the --fulscreen switch instead of --kiosk
by PhatFil
Wed Aug 14, 2019 12:21 pm
Forum: Beginners
Topic: Rpi as external device to monitor relay switch states
Replies: 3
Views: 97

Re: Rpi as external device to monitor relay switch states

Just a thought.. there is often a led on relay circuits that indicates the relay state. If present on your h/w you could just use a light sensitive resistor to detect the led state and avoid all direct connection issues.
by PhatFil
Wed Aug 14, 2019 1:43 am
Forum: Advanced users
Topic: Creating a SD image suitable for Balena Etcher
Replies: 10
Views: 503

Re: Creating a SD image suitable for Balena Etcher

etcher wants an image file so a quick google for how to create an image file from a SD card revelled under windows win32diskimager is the tool to use and under *nix the dd command in the format

Code: Select all

dd if=/dev/sdc/ of=/home/sdcard.img 
should do it?
by PhatFil
Wed Aug 14, 2019 1:32 am
Forum: Troubleshooting
Topic: Kernel panic- Pi Zero W
Replies: 2
Views: 82

Re: Kernel panic- Pi Zero W

Genuine SD card? New install or did a running system just fall over? #1 eliminate any media issues by using a new genuine sd card and download a fresh copy of the os and validate the downlaod with the sha checksum (not described on the downlaod page but look here https://www.raspberrypi.org/forums/v...
by PhatFil
Tue Aug 13, 2019 11:35 pm
Forum: Français
Topic: Contrôler un MAX31855 (thermocouple K)
Replies: 4
Views: 197

Re: Contrôler un MAX31855 (thermocouple K)

Not used the lib you have linked to but a quick look at the github link suggests perhaps its a Python 2 Lib?? I am going by 2 things #1 age of the project.. #2 No mention of python3 in the readme try a pip install and loading up the python2 interpreter or forcing it with the 'shebang' or hashbang if...
by PhatFil
Mon Aug 12, 2019 3:33 pm
Forum: Advanced users
Topic: Execute script after insert
Replies: 5
Views: 199

Re: Execute script after insert

add 'exit 0' at the bottom of the file..

supply parameters $1 and $2 in te trigger definition

better still use mqtt.... https://github.com/arendst/Sonoff-Tasmota/wiki/MQTT
by PhatFil
Mon Aug 12, 2019 3:13 am
Forum: Troubleshooting
Topic: Esp32 dev/ttyUSB
Replies: 2
Views: 81

Re: Esp32 dev/ttyUSB

hi And Welcome to the world of Pi.. To get hep however you will need to be a little more clear and specific. I have no clear idea of what your problem is. Can you provide specific details on the esp dev board used, usb/ftdi programmer, and wiring between the 2, pictures would also help.. there are a...
by PhatFil
Mon Aug 12, 2019 2:49 am
Forum: General discussion
Topic: Power on?
Replies: 32
Views: 1238

Re: Power on?

fwiw my pi3b nas is supplied power via a smart wifi switch providing me with a remote controlled hard reset option when needed. while i used basic £4 units, plug in options start at circa £10 and if you get a tasmota compatible device you can remove any reliance from remote corporate servers which c...
by PhatFil
Mon Aug 12, 2019 2:29 am
Forum: Advanced users
Topic: Execute script after insert
Replies: 5
Views: 199

Re: Execute script after insert

whats in drive.alarm, a quick google confirms it needs to return an integer to work with the UDF framework, once you have installed the UDF features that is,, http://crazytechthoughts.blogspot.com/2011/12/call-external-program-from-mysql.html https://dev.mysql.com/doc/refman/8.0/en/adding-udf.html a...
by PhatFil
Mon Aug 12, 2019 2:04 am
Forum: Other projects
Topic: Homemade airfryer
Replies: 9
Views: 437

Re: Homemade airfryer

have fun and keep us posted with your progress and build.. I for one like to follow builds ;) a few tips based on my own attempts at diy solutions,, Qmax punches are the best tool for cutting clean holes in materials such as the stainless steel walls of cooking pots for inserting elements/vents/feed...
by PhatFil
Sun Aug 11, 2019 3:42 am
Forum: Other projects
Topic: Homemade airfryer
Replies: 9
Views: 437

Re: Controlling a premade appliance?

Well Interfacing with the existing control system may not be possible but could be worth investigating. If not possible you could control each aspect of the system Fans heaters motors solenoids etc vi your pi either directly or via a wifi or bluetooth enabled slave dev board But would also need to r...
by PhatFil
Sun Aug 11, 2019 2:47 am
Forum: Other projects
Topic: How to create a "shift" button for other switches?
Replies: 10
Views: 447

Re: How to create a "shift" button for other switches?

So I have a momentary button working and keeping the active state in python (toggles between True and False). I can't figure out how to route a signal based on the result of that. I've just been messing with sending a pin high to switch a transistor, and that all works fine (just sent it to light a...
by PhatFil
Sat Aug 10, 2019 1:40 am
Forum: General discussion
Topic: Protect over voltage on Voltage Divider ciruit
Replies: 12
Views: 311

Re: Protect over voltage on Voltage Divider ciruit

You do have some leway below 3.3v the pi will register a high with voltages over +1.8-2v referenced to ground? (look that up or test it..) http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/raspberry-pi/gpio-pin-electrical-specifications or you could employ an optically linke...
by PhatFil
Fri Aug 09, 2019 7:41 pm
Forum: General discussion
Topic: Need a RPi4 case that can be wall mounted
Replies: 10
Views: 398

Re: Need a RPi4 case that can be wall mounted

fwiw i have a couple of pi-0-W systems in the standard red base/white top cases mounted on the walls with a thumb nail sized ball of blu-tak..
by PhatFil
Fri Aug 09, 2019 7:31 pm
Forum: Other projects
Topic: How to create a "shift" button for other switches?
Replies: 10
Views: 447

Re: How to create a "shift" button for other switches?

no need for transistors etc in the 'switch' circuits, just a resistor to pull the BUTTON circuit to the known off position. (switches retain the state ie stay on or stay off, while a button is generally 'on' while pressed, an obvious but important distinction ) your 'shift key' can also be a basic b...
by PhatFil
Thu Aug 08, 2019 11:31 pm
Forum: General discussion
Topic: Swapping HDD for Larger Size in NAS
Replies: 9
Views: 236

Re: Swapping HDD for Larger Size in NAS

why not just add the 4tb disk as additional storage?
500gb is still 500gb ) a 2nd hdd enclosure with independent power input should be a bargain on ebay etc what with 2.5" usb powered enclosures being Way more portable..

you can add 6x hdds to a Pi without issues.

Go to advanced search