Post by macweenie on Dec 22, 2013 20:57:32 GMT -8
I still couldn't piece it together enough to get the app working. Below are my Config.py changes and below that just one of the recurring errors I get when I try to do the python RasPiConnectServer.py thing. Now I realize it says that it is myistatportal but it just resolves to my external URL (currently 67.167.183.180), the name shouldn't matter. The user name and password I used in the iPad settings are also the very same I use in the Config.py file (case sensitive and all). I have tried it with my local URL, with the external URL, and with the domain name - none of them seem to work. What am I doing wrong?
#!/usr/bin/python
Filename: Config.py# Version 2.9 09/07/13 BP MiloCreek
# set to True if you wish to see debugging output from the server otherwise False
DEBUG = False
#WEB_SERVER_PORT is the port that the RasPiConnect Webserver will be responding to requ$
WEB_SERVER_PORT = "9600"
#LOCALURL is the address of your pi. If you poke a hole through your firewall and expos$
#Usually, the port in the URL (9600) will match the WEB_SERVER_PORT above but can be re$
# Note that the address for your SystemURL in the RasPiConnectApp should be of the form$
LOCALURL = "http://myistatportal.ddns.net:9600/raspi"
print LOCALURL
#USERNAME is the username that you have entered in the RasPiConnect App. It must match$
USERNAME = "username"
#PASSWORD is the password that you have entered in the RasPiConnect App. It must match$
PASSWORD = "password"
# set to True if you have an I2C bus set up and it has an AdaFruit BMP085 and two Blink$
I2CDEMO = False
#RASPICONNECTSERVER Version Number. Do not change!
VERSIONNUMBER = '2.9'
def localURL():
return LOCALURL
def password():
return PASSWORD
def username():
return USERNAME
def web_server_port():
return WEB_SERVER_PORT
********************************************************
pi@Rpi-01 ~/RasPiConnectServer $ cd /home/pi/RasPiConnectServer/config
pi@Rpi-01 ~/RasPiConnectServer/config $ nano Config.py
pi@Rpi-01 ~/RasPiConnectServer/config $ cd /home/pi/RasPiConnectServer
pi@Rpi-01 ~/RasPiConnectServer $ python RasPiConnectServer.py
Traceback (most recent call last):
File "RasPiConnectServer.py", line 16, in <module>
import Config
File "./config/Config.py", line 2
Filename: Config.py# Version 2.9 09/07/13 BP MiloCreek
^
SyntaxError: invalid syntax
pi@Rpi-01 ~/RasPiConnectServer $
pi@Rpi-01 ~/RasPiConnectServer $ cd /home/pi/RasPiConnectServer/config
pi@Rpi-01 ~/RasPiConnectServer/config $ ls
Config.py Config.pyc __init__.py
pi@Rpi-01 ~/RasPiConnectServer/config $ cd /home/pi/RasPiConnectServer
pi@Rpi-01 ~/RasPiConnectServer $ ls
Adafruit RasPiConnectServer.py Templates nohup.out
ClientXMLConfigFiles RasPiConnectServer.pyc config sounds
ExecuteFiles RasPilib license startserver.sh
README.md ReadMe local static
pi@Rpi-01 ~/RasPiConnectServer $ python RasPiConnectServer.py
#!/usr/bin/python
Filename: Config.py# Version 2.9 09/07/13 BP MiloCreek
# set to True if you wish to see debugging output from the server otherwise False
DEBUG = False
#WEB_SERVER_PORT is the port that the RasPiConnect Webserver will be responding to requ$
WEB_SERVER_PORT = "9600"
#LOCALURL is the address of your pi. If you poke a hole through your firewall and expos$
#Usually, the port in the URL (9600) will match the WEB_SERVER_PORT above but can be re$
# Note that the address for your SystemURL in the RasPiConnectApp should be of the form$
LOCALURL = "http://myistatportal.ddns.net:9600/raspi"
print LOCALURL
#USERNAME is the username that you have entered in the RasPiConnect App. It must match$
USERNAME = "username"
#PASSWORD is the password that you have entered in the RasPiConnect App. It must match$
PASSWORD = "password"
# set to True if you have an I2C bus set up and it has an AdaFruit BMP085 and two Blink$
I2CDEMO = False
#RASPICONNECTSERVER Version Number. Do not change!
VERSIONNUMBER = '2.9'
def localURL():
return LOCALURL
def password():
return PASSWORD
def username():
return USERNAME
def web_server_port():
return WEB_SERVER_PORT
********************************************************
pi@Rpi-01 ~/RasPiConnectServer $ cd /home/pi/RasPiConnectServer/config
pi@Rpi-01 ~/RasPiConnectServer/config $ nano Config.py
pi@Rpi-01 ~/RasPiConnectServer/config $ cd /home/pi/RasPiConnectServer
pi@Rpi-01 ~/RasPiConnectServer $ python RasPiConnectServer.py
Traceback (most recent call last):
File "RasPiConnectServer.py", line 16, in <module>
import Config
File "./config/Config.py", line 2
Filename: Config.py# Version 2.9 09/07/13 BP MiloCreek
^
SyntaxError: invalid syntax
pi@Rpi-01 ~/RasPiConnectServer $
pi@Rpi-01 ~/RasPiConnectServer $ cd /home/pi/RasPiConnectServer/config
pi@Rpi-01 ~/RasPiConnectServer/config $ ls
Config.py Config.pyc __init__.py
pi@Rpi-01 ~/RasPiConnectServer/config $ cd /home/pi/RasPiConnectServer
pi@Rpi-01 ~/RasPiConnectServer $ ls
Adafruit RasPiConnectServer.py Templates nohup.out
ClientXMLConfigFiles RasPiConnectServer.pyc config sounds
ExecuteFiles RasPilib license startserver.sh
README.md ReadMe local static
pi@Rpi-01 ~/RasPiConnectServer $ python RasPiConnectServer.py