-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Well... That is all there is at the moment
The .py that the HTML button page triggers is in red on the first page. The HTML with the button sends info to the .py then the .py produces a web page with the results.
The HTML part that gets it going
form action="/cgi-bin/ChipDrop.py" method="post" target="_blank">
select name="ChipSel">
--SNIP--
Then the Python code picks it up here
# Get data from fields
if form.getvalue('ChipSel'):
subject = form.getvalue('ChipSel')
else:
subject = "Not entered"
So all I have is the HTML and one py script to display the config options.
BTW.
I used this to help generate the HTML. No way I typed all of that..
Code:#!/usr/bin/python import os import re import string path="fileS" # insert the path to the directory of interest dirList=os.listdir(path) for fname in dirList: str = fname tx = str.strip('.INC'); sep = '' list = ['<option value="fileS/',str,'">',tx,'</option>'] print sep.join(list)
Dave
Always wear safety glasses while programming.
COOL!!!!Enrolled in a python class starts on 9/15.
Now when I get stuck I know who to ask
Never took a class myselfAnd it probably shows...
Dave
Always wear safety glasses while programming.
Hi guys,
I like the enthusiasm, and it’s a great idea … but …
You may not want to spend too much time on this project.
I can’t say from whom or where right now, but there is already a functioning Configurator that will be available fairly soon.
It covers all the chips, and all the configs, with drop-down boxes and descriptions for each option.
It creates a file that can be INCLUDEd in the code, and each project can have its own config file, instead of the normal default configs in the .inc files.
Or like all INCLUDEs, it can be pasted into the main code itself.
The defaults still have to be commented out, but that may be fixed soon too … maybe.
Sorry for the late notification, but I've been moving out of state and haven't been on-line for a few weeks.
Cheers.
DT
There you go, bursting our bubble, spoiling our fun. (And I use "our" very loosely)
I was looking forward to the open source aspect. Just to have the possibility of adding some bells and whistles would be great. There is a lot that this application could do. Some "PicMultiCalc like" functions could be added ... all digital includes, all sorts of possibilities.
http://www.scalerobotics.com
Leave it to Darrel to be a couple steps ahead of us.
Time wise I probably would not get much done before Darrel's (??) program comes out. So I will wait some.
Who know, maybe it will be open for tweaks. Or not have everything we have talked about. If not then.... We fill the gaps.
What else could we do like this? I like the idea of an open community project.
Dave
Always wear safety glasses while programming.
Thanks Darrel!?!?!? -lol really that is good news. I don't know if I understand from the breif description if it does all we want, missing seems to be initial I/O pin setup. But alas, we will have to wait and see.
As for the community project, that was my 1 big idea. But I am open to any others. another big question for me will be to pay or not to pay, that is the question. Darrel clearly provides us with GREAT code to use as we see fit. So if he IS going to be the author, I would feel compelled to pay some amt for it. Now if he just has a heads up on an update from the PBP folks, well I just bought mine, I would hate to have to give it up for an update this soon.
Guess we wait. In the meantime, I still get to learn python, and that by itself is awesome for me. I may still persue daves efforts as a realtime puzzle to practice with.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Maybe i should have said not to spend time on the CONFIG part, which is what it does, and what I saw you working on so far.
I don't want to stop all the other stuff you could be working on, because that will be very valuable too.
I did ask permission before revealing the configurator (because it's not from me), I just hated to see the time being spent here. But if that time were redirected towards setting up all those crazy internal registers, I'm sure it would be extremely usefull and appreciated by everyone.
DT
Well it looks like we are back to work..
Everything but the configs....
Thanks for the heads up Darrel.
Dave
Always wear safety glasses while programming.
Bookmarks