I know Elco said he does his development on a windows box, is there any chance you or someone else can give a installation guide on getting it up and running. Looks Like python “pip” doesn’t have a lot of the required python packages, and I’m not all the familiar with python. I’m trying to set up my windows box to host the site, but I’m struggling with the python part of the install.
IIS is easy, and it will run PHP no problem. I’m working with a IIS8 windows 2012 box if that helps any.
@Elco Ok, so I have the web UI up and running in IIS8, changed all the directories security setting to allow the iis user permission to modify the folders that hold both the UI and Python code.
Now my issue is I can’t get the “brewpi.py” script to run…The spark is not recognized on my machine at all, although it does power up, but I can’t find the COM id for the port setting. I just keep getting the below error.
I’m trying to get this fully up and running on my windows box as thats where my DMZ is set up and my router forwards to. I have a pretty complex double NAT setup as I have VOIP for phone and a non static IP.
Also, how does the spark connect to the WIFI? It appears all the current documentation suggest it’s always connected to a PI via usb.
Python Version: 2.7.9
Arduino Version: 1.6.1
Windows Version: Windows Server 2012
Spark Device Info: USB\VID_1D50&PID_607D\6D7F1FA54852
Mar 21 2015 11:32:22 Error opening serial port. Trying alternative serial port
(could not open port 'COM1': WindowsError(2, 'The system cannot find the file sp
Mar 21 2015 11:32:22 Error opening alternative serial port. Script will exit.
Is your controller connected via USB?
(could not open port '/dev/ttyACM1': WindowsError(3, 'The system cannot find the
MY Config.cfg File: (I have tried multiple COM numbers and default ports!)
I was getting “permission denied” errors when the script tried to access the uploaded hex files.
This is because c:/wamp/tmp did not exist, so the default Windows temp directory was used. The uploaded file inherited permissions from the temp directory and was not readable by a normal user account.
Creating the directory c:/wamp/tmp and giving normal users permission for that dir fixed the issue.
Also add the following lines to your <script dir>/settings/config.cfg (adapt for your system):
wwwPath = C:\wamp\www\brewpi
port = COM30
Path to arduino tools (only when using an Arduino, for the Spark this is not needed):