Go to advanced search

by fosterb
Fri May 20, 2016 6:33 am
Forum: Python
Topic: Cannot post http when running from crontab
Replies: 4
Views: 1550

Re: Cannot post http when running from crontab

That makes sense, great suggestion, will give it a go.
by fosterb
Thu May 19, 2016 9:18 pm
Forum: Python
Topic: Cannot post http when running from crontab
Replies: 4
Views: 1550

Re: Cannot post http when running from crontab

Yes, that works fine. My crontab file contents are as below: @reboot sh /home/pi/SecurityMonitor/launcher.sh >/home/pi/logs/cronlog 2>&1 @reboot sh /home/pi/SecurityMonitor/posterlauncher.sh >/home/pi/logs/cronlogposter 2>&1 and the posterlauncher.sh file contains: #!/bin/sh # posterlauncher.sh cd /...
by fosterb
Thu May 19, 2016 8:08 am
Forum: Python
Topic: Cannot post http when running from crontab
Replies: 4
Views: 1550

Cannot post http when running from crontab

This is my first Raspberry Pi 3 project and I'm also new to Python. I have written a very basic script to pull data from a table and post it to a server. It works fine when I run it in the Idle 2.7 Python window manually, but I have setup a crontab entry to run it on startup and every time it runs l...
by fosterb
Mon Oct 29, 2012 2:17 pm
Forum: General discussion
Topic: Setup Auto Login on Raspbian
Replies: 3
Views: 3163

Re: Setup Auto Login on Raspbian

I've just had a closer look at your script and it is slightly different to mine. I've modified mine from this: ### BEGIN INIT INFO # Provides: vncboot # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start VN...
by fosterb
Mon Oct 29, 2012 1:25 pm
Forum: General discussion
Topic: Setup Auto Login on Raspbian
Replies: 3
Views: 3163

Re: Setup Auto Login on Raspbian

I had already setup a startup script for vnc like the one you've got, and it starts up fine, but unless I login manually after the startup routine finishes I can't connect. Do I need to pass in the login details to vnc somehow? Can't see anywhere for them to go.
by fosterb
Mon Oct 29, 2012 12:17 pm
Forum: General discussion
Topic: Setup Auto Login on Raspbian
Replies: 3
Views: 3163

Setup Auto Login on Raspbian

I'm trying to get my pi setup so that I can power it on and then remote to it via TightVNC without a keyboard or mouse being plugged into it. Everything seems to work now apart from the fact that I have to plug a keyboard in to type in the login details before I can connect through VNC. I've seen a ...
by fosterb
Fri Oct 26, 2012 12:00 pm
Forum: General discussion
Topic: Setting Up VNC - Connection actively refused
Replies: 4
Views: 15018

Re: Setting Up VNC - Connection actively refused

Sorry, I'm a muppet.

I needed to add the :1 to the end of the IP address, working fine now.
by fosterb
Fri Oct 26, 2012 11:16 am
Forum: General discussion
Topic: Setting Up VNC - Connection actively refused
Replies: 4
Views: 15018

Setting Up VNC - Connection actively refused

I've just followed these instructions to get vncserver setup on my raspberry pi: http://elinux.org/RPi_VNC_Server I've also installed TightVNC viewer on my window 7 pc in order to connect to the pi, but having entered the ip address of the pi into TightVNC, all I get is the error message "no connect...

Go to advanced search