Go to advanced search

by jogl
Sat Aug 05, 2017 11:50 pm
Forum: Off topic discussion
Topic: why was my thread deleted?
Replies: 10
Views: 2666

Re: WTF, why was my thread deleted?

I agree with the no "anything goes".

But I was asking a question about gizmo's and hoping to get responses from like minded techy people (and I did), and now it is gone.
by jogl
Sat Aug 05, 2017 11:26 pm
Forum: Off topic discussion
Topic: why was my thread deleted?
Replies: 10
Views: 2666

why was my thread deleted?

So, my off topic thread, that I posted in the "Off Topic Discussion" was deleted.

Why?
by jogl
Tue Aug 01, 2017 5:07 pm
Forum: General discussion
Topic: How to run a bash script repeatedely and store the data on MySql
Replies: 8
Views: 1378

Re: How to run a bash script repeatedely and store the data on MySql

Since you already have the Python program working adding some code to insert the data into a database sounds like the logical next step. As Dougie mentioned you could use cron to run the script regularly or you could code it in. The python sched (scheduler) works fine for me. There is a bit of a lea...
by jogl
Sun Jul 30, 2017 12:00 pm
Forum: Python
Topic: I give, python, dweet...
Replies: 3
Views: 1124

Re: I give, python, dweet...

Thanks guys, it is working.
by jogl
Fri Jul 28, 2017 11:29 pm
Forum: Python
Topic: I give, python, dweet...
Replies: 3
Views: 1124

I give, python, dweet...

I want to send some data to dweet.io. This is an example from out there: import httplib def printText(txt): lines = txt.split('\n') for line in lines: print line.strip() httpServ = httplib.HTTPConnection("127.0.0.1", 80) httpServ.connect() httpServ.request('GET', "/test.html") response = httpServ.ge...
by jogl
Wed Jul 26, 2017 10:03 am
Forum: Automation, sensing and robotics
Topic: Temperature sensing 0 - 800°C
Replies: 10
Views: 2309

Re: Temperature sensing 0 - 800°C

If you find a one wire sensor that will work let us know. At those temperatures you will have to go with a thermocouple, and then find the best way to interface it with your RPi. There are lots of options for output types on thermocouple signal conditioners. Unfortunately, this would be MUCH more co...
by jogl
Tue Jul 04, 2017 3:32 pm
Forum: Other projects
Topic: Yet Another Raspberry Pi Tablet
Replies: 6
Views: 2571

Re: Yet Another Raspberry Pi Tablet

Beauty.
by jogl
Wed May 17, 2017 9:18 am
Forum: Troubleshooting
Topic: SSH does not always work
Replies: 5
Views: 604

Re: SSH does not always work

Sounds like you will have to hook up a monitor and keyboard and go at it from the RPi side.
by jogl
Tue May 16, 2017 6:58 pm
Forum: Troubleshooting
Topic: SSH does not always work
Replies: 5
Views: 604

Re: SSH does not always work

When it will ping but not ssh can you access your router and see what it says?
by jogl
Tue Apr 18, 2017 5:12 pm
Forum: Troubleshooting
Topic: Run python script at boot
Replies: 3
Views: 694

Re: Run python script at boot

Can you show us your script?

Code: Select all

(sleep 10;/usr/bin/python /home/pi/serial2dbeg.py)&
This code in rc.local worked for me before.
by jogl
Mon Apr 17, 2017 4:28 pm
Forum: Beginners
Topic: Which Pi to use?
Replies: 17
Views: 2112

Re: Which Pi to use?

+1 on start with an RPi3.
by jogl
Mon Apr 17, 2017 4:19 pm
Forum: Other projects
Topic: A home Database.
Replies: 2
Views: 553

Re: A home Database.

I would get my programming working on the RPi first and then go to the trouble of constructing a kiosk after I was satisfied with the software.
by jogl
Tue Apr 04, 2017 9:59 am
Forum: Python
Topic: Suggested Python IDE?
Replies: 8
Views: 10035

Re: Suggested Python IDE?

If ssh-ing in to a console I use Vim or Nano. MC is handy for poking around the file system and you can set it to launch right into vim or nano. If ssh-ing in you can cut and paste from the client computer into the RPi console, which is sometimes handy. This would work for your desire to develop on ...
by jogl
Sat Apr 01, 2017 11:20 pm
Forum: Beginners
Topic: Changing to static IP
Replies: 5
Views: 1172

Re: Changing to static IP

Code: Select all

static ip_address=192.168.1.310/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

interface wlan0

static ip_address=192.168.1.311/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.
310 and 311? Aren't those out of range?
by jogl
Mon Mar 27, 2017 8:28 pm
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

Being an amateur I have a little research to do on the pro's and con's of crontab vs. autostart vs. systemd services. But will do.

Thank you all for the input,
JP.
by jogl
Mon Mar 27, 2017 3:20 pm
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

I tried changing to Type=idle.

When I did that and ran the service, and when it ran at boot, I ended up with just dead screen sessions.

Apparently screen does not work well with "idle", or I have something else going wrong. For now I am back to "forking"

JP.
by jogl
Mon Mar 27, 2017 12:13 am
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

After much more tinkering, the service does not start at boot, but subsequently will start when I: sudo systemctl restart jpzdata.service Looks like a timing issue. Can I put a delay in somehow? Following the advice is this thread I made a script with a time delay: https://www.raspberrypi.org/forums...
by jogl
Sun Mar 26, 2017 9:37 pm
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

I shortened it down to just trying to run screen: [Unit] Description=jpzdata [Service] Type=forking User=pi ExecStart=sudo /usr/bin/screen #ExecStop=/usr/bin/killall -w -s 2 vv WorkingDirectory=/home/pi [Install] WantedBy=multi-user.target and now I keep getting: jogl@rpi164:~ $ sudo systemctl statu...
by jogl
Sun Mar 26, 2017 5:26 pm
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

Now I notice that systemctl says:

Code: Select all

jpzdata.service                          loaded failed failed    jpzdata
by jogl
Sun Mar 26, 2017 5:20 pm
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

I have created this file: [Unit] Description=jpzdata [Service] Type=forking User=pi ExecStart=/usr/bin/screen -d -m -S jpzdata python /home/pi/serial2dbeg.py ExecStop=/usr/bin/killall -w -s 2 jpzdata WorkingDirectory=/home/pi [Install] WantedBy=multi-user.target at: /etc/systemd/system/jpzdata.servi...
by jogl
Sun Mar 26, 2017 1:14 pm
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Re: Start a Python Program at Boot and Access It

Yes I was just looking at how to use screen and then autostart using a user other than root so that I could then ssh in and attach to that screen session. That would work very well for me since I already use screen a lot. Hopefully somebody else has done this and can save me some trial and error. Th...
by jogl
Sun Mar 26, 2017 11:41 am
Forum: Beginners
Topic: Start a Python Program at Boot and Access It
Replies: 11
Views: 1236

Start a Python Program at Boot and Access It

I am running a headless RPi 3, I ssh and VNC into it using TightVNC.

I added this:

Code: Select all

(sleep 10;/usr/bin/python /home/pi/serial2dbeg.py)&
to my rc.local and it works fine.

Is there a way to start the python program at boot and have it in a console that I can then access via ssh or vnc?

Thanks,
JP.
by jogl
Sat Mar 25, 2017 11:56 am
Forum: Beginners
Topic: USB Issues, HD, Arduino
Replies: 6
Views: 1157

Re: USB Issues, HD, Arduino

All is working now, thanks guys.

This is kind of embarrassing, I had a bad USB cable. Funny thing is that it worked with the HD but not the UNO. It was brand new right out of the bag, but from you know where.

Thanks again,
JP.
by jogl
Fri Mar 24, 2017 4:43 pm
Forum: Beginners
Topic: USB Issues, HD, Arduino
Replies: 6
Views: 1157

Re: USB Issues, HD, Arduino

Drive is formatted ext4 and is now set up as suggested and mounts and works fine.

Nothing changes in the /dev/tty*'s when I boot with Arduino connected vs without.

And I have just noticed that with the UUID... in fstab and no hd connected the RPi will not boot up?
by jogl
Fri Mar 24, 2017 10:41 am
Forum: Beginners
Topic: USB Issues, HD, Arduino
Replies: 6
Views: 1157

Re: USB Issues, HD, Arduino

Well, the hard drive is working just fine mounted at /mnt/hd.

So, I guess the problem is now reduced to how do I get a serial port (was ttyUSB0 before this adventure began) working so that I can program Arduino and transmit data serially as before?

Go to advanced search