|
Post by Joshi on Jun 22, 2014 11:10:35 GMT -8
Good evening, quite frustrating start and not very encouraging to buy the app: I followed the description how to setup the server on Raspi very carefully. When I start the server with python RaspiConnectServer.py I get the message
Traceback (most recent call last): File "RasPiConnectServer.py", line 27, in <module> import ExecuteServerStatus File "./ExecuteFiles/ExecuteServerStatus.py", line 15, in <module> if (Config.i2c_demo()): AttributeError: 'module' object has no attribute 'i2c_demo'
The only changes I made in Config.py were userid, password, webport and URL.
What is the problem there ? Thank you for putting me on the right track Joshi
|
|
|
Post by SDL on Jun 23, 2014 11:10:13 GMT -8
insert code here Joshi,
I apologize that you had a frustrating evening!
Following is the complete default Config.py file:
#!/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 = True
#WEB_SERVER_PORT is the port that the RasPiConnect Webserver will be responding to requests from the RasPiConnect App WEB_SERVER_PORT = "9600"
#LOCALURL is the address of your pi. If you poke a hole through your firewall and expose it to the Internet, insert that address here #Usually, the port in the URL (9600) will match the WEB_SERVER_PORT above but can be remapped in most routers/firewalls # Note that the address for your SystemURL in the RasPiConnectApp should be of the form: http://192.168.1.120:9600/raspi (see manual for more information)
LOCALURL = "http://192.168.1.9:9600/" print LOCALURL
#USERNAME is the username that you have entered in the RasPiConnect App. It must match and is case sensitive USERNAME = "RasPiConnect"
#PASSWORD is the password that you have entered in the RasPiConnect App. It must match and is case sensitive PASSWORD = "RasPiConnectPassword"
# set to True if you have an I2C bus set up and has an AdaFruit BMP085 and two BlinkM modules (addresses 0xC and 0xB) False if not 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
def version_number(): return VERSIONNUMBER
def debug(): return DEBUG;
def i2c_demo(): return I2CDEMO;
Note that i2c_demo() is defined at the bottom of your file. Did you accidentally remove it? It works fine on our test server.
If this isn't the problem, please post your Config.py file (with your private information deleted!) and we will get to the bottom of it.
Best regards,
BP
|
|