Search found 128 matches
- Sat Jan 30, 2021 11:01 pm
- Forum: Python
- Topic: Strange file system behaviour with Python CSV file
- Replies: 2
- Views: 164
Re: Strange file system behaviour with Python CSV file
Many thanks. You were right: pi@Inky:~/scripts/webinky $ ls msg.txt -l -rw-r--r-- 1 pi pi 40 Jan 24 21:19 msg.txt pi@Inky:~/scripts/webinky $ sudo find / -name msg.txt find: â/run/user/1000/gvfsâ: Permission denied /root/msg.txt /home/pi/scripts/webinky/msg.txt pi@Inky:~/scripts/webinky $ sudo ls /r...
- Sat Jan 30, 2021 3:54 pm
- Forum: Python
- Topic: Strange file system behaviour with Python CSV file
- Replies: 2
- Views: 164
Strange file system behaviour with Python CSV file
I have a Python webserver ( msgserver.py ) open which uses Cron to start at boot, accepts messages from a served webpage, and stores the message to a file. Every 5 mins, a separate Python script ( msgdisplay.py ) is called which displays the last message entered on an InkyPhat. Everything works. How...
- Sun May 17, 2020 2:33 pm
- Forum: Python
- Topic: Unable to extract indexed data using split_data_index
- Replies: 2
- Views: 214
Re: Unable to extract indexed data using split_data_index
Thank you. I'm still stuck in my Python 2.7 ways, and hadn't noticed Thonny was defaulting to Python 3.
- Sun May 17, 2020 10:51 am
- Forum: Python
- Topic: Unable to extract indexed data using split_data_index
- Replies: 2
- Views: 214
Unable to extract indexed data using split_data_index
Hello Following a system call to return data, I have placed the string into an index, thus: p=subprocess.Popen(arg,shell=True,stdout=subprocess.PIPE) data = p.communicate() split_data = data[0].split() I know this has worked, because on debugging the index appears in a variable: b'default', b'via', ...
- Mon Aug 07, 2017 1:32 pm
- Forum: Gaming
- Topic: Revert to Raspian bluetooth driver after Sixaxis Retropie install
- Replies: 0
- Views: 668
Revert to Raspian bluetooth driver after Sixaxis Retropie install
Hi folks I'm using the PS3 sixaxis controller with Retropie on a Raspberry Pi 3. The driver warns that this will disable the provided Bluetooth driver in the Raspbian distribution. It's fine and works well. However, does anyone know how to enable the standard driver at a future date (without a fresh...
- Sat Jun 11, 2016 1:48 pm
- Forum: Other projects
- Topic: Running RetroPie's UAE4All with purchased Amiga ROMs
- Replies: 0
- Views: 787
Running RetroPie's UAE4All with purchased Amiga ROMs
I purchased the Amiga Forever Plus pack a while ago, which comes with a set of Kickstart ROMs. The Cloanto webpage suggests that the supplied ROMs should work with Linux versions for UAE, but I am struggling. I have the version of UAE4All as supplied with the RetroPie project. Selection of any ROM c...
- Tue Jan 20, 2015 8:33 pm
- Forum: Troubleshooting
- Topic: A+ problem with Edimax WiFi
- Replies: 1
- Views: 564
Re: A+ problem with Edimax WiFi
I thought it was a tight fit. Just noticed that the pins in the USB socket are bent on both A+'s. Looks like from other posts this is a common problem.
- Tue Jan 20, 2015 8:27 pm
- Forum: Troubleshooting
- Topic: A+ problem with Edimax WiFi
- Replies: 1
- Views: 564
A+ problem with Edimax WiFi
Hi folks. It's there any reason why the A+ isn't able to power-up (or otherwise fail to start) the popular Edimax EW-7811UN dongle? The interface works in every other Pi I have (all variants), but in neither of two A+'s. Note that I have the Unicorn Hat fitted but not activated. Using the official P...
- Sun Jan 11, 2015 2:29 pm
- Forum: Troubleshooting
- Topic: Canon LBP2900B Printer
- Replies: 13
- Views: 10107
Re: Canon LBP2900B Printer
No. It is connected to the USB port of the router (which runs an ARM Linux) and is then available as a shared printer on my Windows boxes - which is my ultimate aim.
- Sat Jan 10, 2015 8:07 pm
- Forum: Troubleshooting
- Topic: Canon LBP2900B Printer
- Replies: 13
- Views: 10107
Re: Canon LBP2900B Printer
What I can't understand is that I CAN get this to work by connecting to my Asus router using the LPR protocol. The Asus router is running Linux on an ARM processor! I can't, however, get this working on my Pi.
- Sat Dec 13, 2014 10:56 am
- Forum: Python
- Topic: Problem displaying signed floats
- Replies: 5
- Views: 1202
Re: Problem displaying signed floats
Now solved using the answer above. Thanks to both of you for your assistance.
- Sat Dec 13, 2014 10:56 am
- Forum: Python
- Topic: Problem displaying signed floats
- Replies: 5
- Views: 1202
Re: Problem displaying signed floats
Struggling to copy out of JuiceSSH on my mobile. The latest 'output' contains text including '-1.8C'; 'matches.group(1)' reports it as '1.8'.DirkS wrote:Can you post examples of 'output' and also of 'matches.group(1)' which is the value that is actually converted.
Gr.
Dirk.
- Sat Dec 13, 2014 10:54 am
- Forum: Python
- Topic: Problem displaying signed floats
- Replies: 5
- Views: 1202
Re: Problem displaying signed floats
matches = re.search("Temp =\s+-([0-9.]+)", output) Match the minus sign inside the grouping parentheses, so that it is included in the string that is converted to float. You do not need two separate cases because you can make the sign optional by following it with a question mark: matches...
- Sat Dec 13, 2014 9:30 am
- Forum: Python
- Topic: Problem displaying signed floats
- Replies: 5
- Views: 1202
Problem displaying signed floats
Hello folks Until this month, my outdoor DHT22 temperature/humidity monitor has been working fine. However, with the cold weather, and temperatures now sub-zero, I've noticed that my routine is failing to handle negative temperatures - instead they are represented as being positive: the sign has bee...
- Sun Dec 07, 2014 11:05 am
- Forum: Networking and servers
- Topic: Edimax speed issues
- Replies: 0
- Views: 505
Edimax speed issues
Hello folks I have four Edimax EW-7811un USB WiFi adapters in use on my Pi's. All are installed with Raspian with no changes to the default wireless config. When connected to laptops and using 'iperf', I regularly see LAN transfer rates of ca. 20Mbit/s. Great, but not spectacular given I'm using an ...
- Sat Dec 06, 2014 8:45 am
- Forum: Advanced users
- Topic: Easy LAN data xfer between Pi's
- Replies: 3
- Views: 1223
Easy LAN data xfer between Pi's
Hi Folks I would like to transfer certain sensor data from the networked Pi I have in the garden for display on a headless Pi with an LCD segmented display. At present the data is being sent to Google Sheets. What is the simplest way, using Python if possible, to send, recieve and interpret network ...
- Sun Nov 23, 2014 12:43 pm
- Forum: Networking and servers
- Topic: RPi Printer Server without CUPS driver
- Replies: 4
- Views: 1965
Re: RPi Printer Server without CUPS driver
Thanks: I couldn't get lpr to work.
- Sun Nov 23, 2014 12:10 pm
- Forum: Networking and servers
- Topic: RPi Printer Server without CUPS driver
- Replies: 4
- Views: 1965
RPi Printer Server without CUPS driver
Hello Folks Can anyone explain how to configure CUPS to print to my unsupported (Canon LBP2900i) laser printer using the source computer's Windows driver? I'm expecting that it should be possible to simply pass-through the raw data unchanged to the printer connected to the RPI's USB port. It may be ...
- Mon Sep 15, 2014 2:30 pm
- Forum: Python
- Topic: tumble dryer controller
- Replies: 3
- Views: 1963
tumble dryer controller
I have a tumble dryer with basic timer settings that I recently decided to control using a Pi and a DHT22 temp/humidity sensor positioned in the exhaust vent. The Pi emails and activates a wireless doorbell when the clothes are regarded as being dry, which is often much sooner than the timer guides ...
- Sat Aug 16, 2014 5:04 pm
- Forum: Python
- Topic: Run command embedded in GMail mail
- Replies: 7
- Views: 2300
Re: Run command embedded in GMail mail
Folks For those who asked me to share the working code, sorry about the delay. I'm using this to reboot the Pi (really as a test in calling basic shell commands) and in running Python scripts: both triggered by email. Remember to use the full path (including for shell commands). This is much better ...
- Sun Aug 10, 2014 6:29 pm
- Forum: Raspberry Pi OS
- Topic: SSH with UPnP
- Replies: 6
- Views: 6816
Re: SSH with UPnP
I don't use port 22, still wouldn't want to leave it open unnecessarily.
How could processing an email from a known sender, then opening a port, be a security problem, given that leaving the port open all the time appears to be advocated by the above responses?
How could processing an email from a known sender, then opening a port, be a security problem, given that leaving the port open all the time appears to be advocated by the above responses?
- Sun Aug 10, 2014 11:05 am
- Forum: Raspberry Pi OS
- Topic: SSH with UPnP
- Replies: 6
- Views: 6816
Re: SSH with UPnP
Which fix? Please elaborate
- Sat Aug 09, 2014 10:10 pm
- Forum: Automation, sensing and robotics
- Topic: RF receiver 433MHZ
- Replies: 37
- Views: 55085
Re: RF receiver 433MHZ
Can I make a suggestion that people try a different approach to control remote sockets? I've found it easier to use the original socket remote and trigger the button contacts using opto-isolators connected to the GPIOs. I've had complete success with sockets and remote doorbells acting as audible al...
- Sat Aug 09, 2014 9:54 pm
- Forum: Raspberry Pi OS
- Topic: SSH with UPnP
- Replies: 6
- Views: 6816
SSH with UPnP
Hello folks. I'm wary about leaving ports permanently open on my router to allow SSH connection to my Pi's from outside the LAN. Is it possible to open ports on demand using UPnP, initiated by the Pi and perhaps following receipt of an email? I know how to get the Pi to respond to emailed commands. ...
- Sun Aug 03, 2014 4:51 pm
- Forum: Python
- Topic: Run command embedded in GMail mail
- Replies: 7
- Views: 2300
Re: Run command embedded in GMail mail
Thanks for the link and the advice. I'm now able to issue a deliberately limited set of instructions to my Pi via email without having to keep a port open at the router, as was the requirement. I've used the built-in Python modules rather than download new for reasons of compatibility and future ava...