NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » feed-reader.py
April 22, 2011 by ta27544 |
Having trouble running the feed reader script it says it's having trouble connecting. I am not sure which port i should use and how to find it??
|
---|---|
April 23, 2011 by Ralphxyz |
Hi ta27644, [quote]"I am not sure which port i should use and how to find it??"[/quote] Do you have a web server running? localhost and port 80 are usually referencing a web server. I never got as far as the feed-reader.py so I can not be more helpful. Ralph |
April 23, 2011 by ta27544 |
No i just changed it to port 80, the port is defaulted to 7777 in the script but I am unsure how to point it to a rss feed. |
April 24, 2011 by hevans (NerdKits Staff) |
Hi ta37544, feed_reader.py is doing two separate things as part of its control flow, and I think that is what is confusing you. The first thing it does is connect to serial_comm.py presumably running on the same machine to ask it how many messages it currently has in its buffer. After that (if feed_reader.py wishes to send more lines), it connects to feed_url and pulls the feed. I think you are probably getting the connection error because serial_comm.py isn't running. Humberto |
April 26, 2011 by ta27544 |
okay update .......I ran serial_comm.py first and this is what happens
Next in a new tab of terminal I run feed-reader.py and this is what happens
So i am almost there its just not scrolling on the display....by the way when i run these scripts the chip is in run mode and the usb is still plugged in....what do think the problem could be?? |
April 27, 2011 by hevans (NerdKits Staff) |
Hi ta27544, Well it looks like you have the feedreader part working. Did you go through the LED Array Guide in its entirety before attempting to make feedreader.py work? Does the LED Array work if you load the test programs, or if you attempt to just send data to it over minicom? Humberto |
April 27, 2011 by ta27544 |
Yes the test programs work fine |
May 03, 2011 by ta27544 |
Is there anything I need to change i the serial-comm.py or feed reader.py file ? |
May 03, 2011 by hevans (NerdKits Staff) |
Hi ta27544, There shouldn't be anything you need to change. Unless you want it to do something different than what it already does. Remember serial_comm.py takes its info over standard input. Are you piping the output of feedreader.py to serial_comm.py.
Humberto |
Please log in to post a reply.
Did you know that multiple microcontrollers can communicate with each other? Learn more...
|