Go to advanced search

by jbonde
Fri Sep 06, 2019 9:03 am
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

Found a solution thanks to the debugging procedure (Method 2) described here https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup/all If opening the application with autostart there is no shell window provided as with the IDE's. Running the app in Thonny and IDLE did sho...
by jbonde
Thu Sep 05, 2019 7:34 pm
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

Thanks for the good thoughts. Answers are no, no, yes and maybe. How can I compare Python versions?
by jbonde
Thu Sep 05, 2019 7:07 pm
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

Thanks! My application works fine GUI-wise when autostarting but without the serial connection. The other features I have programmed works fine so it seems like the USB/serial-port is not activated when running Python3 in a graphics environment.
by jbonde
Thu Sep 05, 2019 5:41 pm
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

Great idea, but closing Thonny and my apllication gives this result when connecting via a terminal session (Putty): pi@rpi4:~ $ sudo pip3 list | grep pyserial pyserial 3.4 So it seems like pyserial is installed? I made a small test script that can be executed same way via terminal and it works there...
by jbonde
Thu Sep 05, 2019 2:50 pm
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

It is present and it works fine if activated from Thonny. This is what is registered with lsusb when moving the device from one USB port to another (no other USB devices attached) pi@rpi4:~ $ lsusb Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux ...
by jbonde
Thu Sep 05, 2019 1:43 pm
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

Yes, it's connected via USB but I have tried different combinations with keyboard/mouse attached and also tested with the GPS as the only USB-device. In any case I can't figure out why it should make a difference to the two ways of running the same program - either as a Python3 call during boot (dis...
by jbonde
Thu Sep 05, 2019 1:24 pm
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Re: Autostart GUI and read serial data

The program runs fine after autostart except for the serial reading so I can freely jump to other features I have written. The only difference using RPi4 instead of RPi3 is that it appears like the GPS is not connected. Exiting the application and running it from Thonny instead makes the port come a...
by jbonde
Thu Sep 05, 2019 7:38 am
Forum: Advanced users
Topic: Autostart GUI and read serial data
Replies: 14
Views: 413

Autostart GUI and read serial data

I have made a touch screen application for yachting where one of the tasks are reading serial input from a GPS via the USB port. Data is displayed in GUI via GUIzero and my python3 script is auto booted with ~/.config/lxsession/LXDE-pi/autostart. So far everything has been fine on a RPi3 but after p...
by jbonde
Thu Oct 23, 2014 10:09 am
Forum: Automation, sensing and robotics
Topic: How to connect rain sensor?
Replies: 2
Views: 3264

Re: How to connect rain sensor?

I have a Hydreon sensor which was very simple to connect to the Rpi. You can see a description of the project here http://jesperbonde.dk/rpi/alarm/
best regards
Jesper
by jbonde
Mon Sep 29, 2014 7:35 pm
Forum: Python
Topic: Gdata insert row
Replies: 5
Views: 997

Re: Gdata insert row

Thanks for your help. Found out it was an error in the def declaration and not the DeleteRow command. Now it works!
by jbonde
Sun Sep 28, 2014 7:26 pm
Forum: Python
Topic: Gdata insert row
Replies: 5
Views: 997

Re: Gdata insert row

The error message says Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 505, in run self.__target(*self.__args, **self.__kwargs) TypeError: delete_row() take...
by jbonde
Sun Sep 28, 2014 3:23 pm
Forum: Python
Topic: Gdata insert row
Replies: 5
Views: 997

Re: Gdata insert row

Thanks Dave but I still get an error:
TypeError: delete_row() takes exactly 2 arguments (0 given)
by jbonde
Sat Sep 27, 2014 7:12 am
Forum: Python
Topic: Gdata insert row
Replies: 5
Views: 997

Gdata insert row

I am using Gdata to populate a Google spreadsheet. It works fine with the InsertRow command which appends new lines but in order to reduce size of the spreadsheet I would like to delete the oldest line (number 2) with the DeleteRow command. I can't figure out how to provide the correct syntax for th...
by jbonde
Fri Apr 04, 2014 5:33 pm
Forum: Beginners
Topic: SMS notifications
Replies: 3
Views: 637

Re: SMS notifications

I have explained the issues you address in my post regarding home alarm systems.
by jbonde
Fri Apr 04, 2014 8:16 am
Forum: Beginners
Topic: Building a custom home alarm system
Replies: 2
Views: 620

Re: Building a custom home alarm system

Hi Steve Thanks for the feed-back! I have now updated my document with the requested details (look in the Programming section). For now I am just sending emails for new events but I have suggested some ways to convert these to SMS text messages if you want instant warnings. Your project looks like i...
by jbonde
Thu Apr 03, 2014 1:29 pm
Forum: Beginners
Topic: Building a custom home alarm system
Replies: 2
Views: 620

Building a custom home alarm system

Living in an old house presents a lot challenges in terms of wiring and modifications if you want to install a surveillance system. The scope for me was to create a system that could give some kind of feed-back from unusual events happening when the family was away. This could be water leaks, smoke ...

Go to advanced search