Go to advanced search

by Rudestlink
Sat Jul 01, 2017 2:05 pm
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10512

Re: python script at startup

I notice the problem script is using MQTT. I had similar issues running a script using MQTT from cron upon reboot. The fix ended up bring to put a 60 second sleep inside the script before the script does anything (ie after the imports). My guess is it was trying to use something not yet available at...
by Rudestlink
Wed Jun 07, 2017 3:22 am
Forum: Python
Topic: Running python script at startup...
Replies: 7
Views: 1914

Re: Running python script at startup...

Little snippet of Python3 code that I use to see if a particular process is running. Having a While loop to delay the start of the 'meat' of the program until the MySQL process is running may give you what you need. import subprocess def running(processname): try: result = subprocess.check_output("p...
by Rudestlink
Fri Apr 14, 2017 11:14 pm
Forum: General discussion
Topic: send sms using raspberry pi without gsm modem
Replies: 10
Views: 4605

Re: send sms using raspberry pi without gsm modem

At least with my At&t service I can reply to the message on the phone or compose an sms to the email and it goes out. The difficult bit was getting the script to access the right folder on the email server to find the email but I did get a simple ping pong script in python running before I lost inte...
by Rudestlink
Fri Apr 14, 2017 1:51 am
Forum: Beginners
Topic: Starting terminal on boot.
Replies: 5
Views: 918

Re: Starting terminal on boot.

Assuming you mean booting to the command line check the 3rd option on here https://www.raspberrypi.org/documentati ... -config.md
by Rudestlink
Thu Apr 06, 2017 2:58 am
Forum: Other projects
Topic: Case with LCD Question
Replies: 1
Views: 964

Re: Case with LCD Question

The mechanical drawing on https://www.raspberrypi.org/documentati ... /README.md shows the location of the combined aerial.
by Rudestlink
Sun Apr 02, 2017 4:58 am
Forum: Beginners
Topic: Help with school project: Activity Board
Replies: 3
Views: 538

Re: Help with school project: Activity Board

It sounds like you may want to look into something like pi presents https://pipresents.wordpress.com or kiosk mode.
by Rudestlink
Fri Mar 03, 2017 2:50 pm
Forum: Python
Topic: Gpiozero code for time button held
Replies: 2
Views: 1535

Re: Gpiozero code for time button held

Thanks for looking over it. The code is fairly general since its designed to be for multiple different projects all based around a headless Pi0 it would load in the background at startup and allow interaction without just a 1 button 1 led interface in some ways it would be like a shutdown button scr...
by Rudestlink
Thu Mar 02, 2017 9:55 pm
Forum: Python
Topic: Gpiozero code for time button held
Replies: 2
Views: 1535

Gpiozero code for time button held

I'm working on a project using a single button and an LED to run multiple different functions. The basic functionality is that holding the button causes the led to blink and releasing the button at a certain number of blinks (measured by time) will run the corresponding function, the following code ...
by Rudestlink
Thu Nov 17, 2016 2:10 am
Forum: Beginners
Topic: Using Sainsmart RGB Screen With Adafruit Python Library
Replies: 4
Views: 1161

Re: Using Sainsmart RGB Screen With Adafruit Python Library

You are very welcome it is nice to know that other people can steal benefit from my work in the same way I steal benefit from other people's work :D As to the logic behind it apart from noticing I made a typo in wake_screen that I've since corrected looking over it I'm not sure exactly where it come...
by Rudestlink
Fri Oct 07, 2016 3:26 am
Forum: General discussion
Topic: data transfer between pi and kindle fire
Replies: 5
Views: 1483

Re: data transfer between pi and kindle fire

The Amazon App store is pretty bare compared to the play store but I use the free RaspManager app from it to transfer files between pi and kindle. Not the most polished interface but very simple once you know where the correct folders are. It also does terminal access, ability to shutdown/reboot the...
by Rudestlink
Sat Sep 03, 2016 3:40 pm
Forum: General discussion
Topic: Year Long Raspberry Pi Time Lapse
Replies: 1
Views: 477

Re: Year Long Raspberry Pi Time Lapse

How about instead of having one script that runs all year and takes a photo everyday. Have a script that runs daily to take one photo and ends until the next time. If you are using poe then you should be able to get a reliable time signal from the internet. If not then you could get a real time cloc...
by Rudestlink
Mon Aug 15, 2016 2:20 am
Forum: Beginners
Topic: Using Sainsmart RGB Screen With Adafruit Python Library
Replies: 4
Views: 1161

Re: Using Sainsmart RGB Screen With Adafruit Python Library

Just as a follow up in case it helps anyone else I was able to add the following to the Adafruit python library in the Adafruit_RGBCharLCD class (along with an import smbus) and can now sleep and wake the screen as and when needed with the comands lcd.sleep_screen() and lcd.wake_screen(). def sleep_...
by Rudestlink
Sat Aug 06, 2016 8:06 pm
Forum: Beginners
Topic: Using Sainsmart RGB Screen With Adafruit Python Library
Replies: 4
Views: 1161

Using Sainsmart RGB Screen With Adafruit Python Library

A while back I picked up the "SainSmart I2C IIC Interface RGB LED Screen LCD 1602 + Keypad For Raspberry Pi" https://amzn.com/B00SMHSTL0 . I've got it working with the Adafruit python libraries with the exception of the backlight Initializing the display turns the backlight on but I have to complete...
by Rudestlink
Sat May 21, 2016 1:06 am
Forum: Teaching and learning resources
Topic: Any other Python noobies on here?
Replies: 5
Views: 3061

Re: Any other Python noobies on here?

Although that book wasn't out when I was hitting my learning wall I will second Al Sweigart as a good resource. His prior books can be found on. https://inventwithpython.com/
by Rudestlink
Tue May 17, 2016 12:37 pm
Forum: General discussion
Topic: How to test Tx and Rx pins?
Replies: 4
Views: 6172

Re: How to test Tx and Rx pins?

I forget the exact details but to put you in the correct direcion.

Connect tx and rx, use minicom with local echo turned off.
If you get your typing on the screen then tx and rx are working.
by Rudestlink
Tue May 10, 2016 3:01 am
Forum: Beginners
Topic: How to dynamically change webpage
Replies: 1
Views: 390

Re: How to dynamically change webpage

While not a total solution this might be a good place to start.
https://www.danpurdy.co.uk/web-developm ... -tutorial/
by Rudestlink
Tue Mar 15, 2016 11:56 pm
Forum: Troubleshooting
Topic: Neo-6m GPS no output
Replies: 1
Views: 868

Re: Neo-6m GPS no output

Apparently I messed up soldering the ground pin. Re-soldered and now i am getting NMEA messages.
by Rudestlink
Sun Mar 06, 2016 2:23 am
Forum: General discussion
Topic: Ditch the locking micro-SD slot and go for a regular one.
Replies: 36
Views: 9800

Re: Ditch the locking micro-SD slot and go for a regular one

Speculative Pi 4 feature: Dual Micro SD slots, friction grip on top, spring loaded on the bottom. Plus a full sized SD card slot on the side to keep the real old school people happy.
by Rudestlink
Fri Mar 04, 2016 6:51 pm
Forum: Troubleshooting
Topic: Neo-6m GPS no output
Replies: 1
Views: 868

Neo-6m GPS no output

I've done extensive searching on and off the forums without any luck. I just purchased a neo-6m I've connected it to the 3.3v to VCC ground to ground and TX and RX swapped I followed the steps in https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/using-uart-instead-of-usb with the ...
by Rudestlink
Fri Aug 21, 2015 5:28 am
Forum: General discussion
Topic: I2C and SMBUS
Replies: 4
Views: 2166

Re: I2C and SMBUS

Funnily enough I've been struggling with this the last few days, if you are using python 3 then this link (that I found somewhere else on the forum) at least has allowed me to get past the import error http://www.linuxcircle.com/2015/05/03/how-to-install-smbus-i2c-module-for-python-3/ will be a whil...
by Rudestlink
Tue Mar 03, 2015 2:10 am
Forum: Beginners
Topic: Unicode Characters in Terminal
Replies: 2
Views: 1838

Re: Unicode Characters in Terminal

Do you mean a terminal emulator in the GUI (which one), or the kernel text console? It appears I was talking about both, on Mint I was using a terminal emulator, on the Pi I was working with the command line directly. I used startx to get into the GUI on the pi and launched the terminal emulator an...
by Rudestlink
Mon Mar 02, 2015 5:36 am
Forum: Beginners
Topic: Unicode Characters in Terminal
Replies: 2
Views: 1838

Unicode Characters in Terminal

Long time lurker first time poster, I've searched the forums and the web without meaningful results. I've created a simple maze game in Python 3 using Unicode characters for the walls and start and end pieces of the maze. When I run the program on the terminal of my Linux Mint machine it loads corre...

Go to advanced search