Hoektronics / BotQueue

Control your 3D printer(s) through the Internet.
https://www.botqueue.com
GNU General Public License v3.0
166 stars 41 forks source link

Solidoodle2 Marlin temperature['extruder_target'] = matches[1] giving list index out of range error #80

Closed davidchua closed 11 years ago

davidchua commented 11 years ago

Hi all,

I'm running bumblebee-0.3 on my Raspberry Pi with a Marlin firmware Solidoodle2.

When I send a job over, bumblebee seems to respond but it gives me the following error on the client.

BotQueue v0.2 Time: Sun Jun 30 02:53:58 2013

    ID              BOT NAME      STATUS  PROGRESS    JOB ID      STATUS
   279                dfgfdg     working    0.01%      2830       taken

q = quit program

Network Status: ONLINEException in thread Thread-2: Traceback (most recent call last):

File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run()

File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)

File "/home/pi/bumblebee-0.3/drivers/printcore.py", line 167, in _listen
self.temperatures['extruder_target'] = matches[1] IndexError: list index out of range

On Botqueue, the job has a status of "Taken" but Bed Temperature and Extruder Temperature in the Temperature Log shows no temperature reading.

No Temperature

hoeken commented 11 years ago

It appears to be parsing the temperature wrong. Could you open a host program like pronterface and enter M105 and then post the results here? We'll get this fixed ASAP.

On Sunday, June 30, 2013, David Chua wrote:

Hi all,

I'm running bumblebee-0.3 on my Raspberry Pi with a Marlin firmware Solidoodle2.

When I send a job over, bumblebee seems to respond but it gives me the following error on the client.

BotQueue v0.2 Time: Sun Jun 30 02:53:58 2013

ID              BOT NAME      STATUS  PROGRESS    JOB ID      STATUS

279 dfgfdg working 0.01% 2830 taken q = quit program

Network Status: ONLINEException in thread Thread-2: Traceback (most recent call last):

File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run()

File "/usr/lib/python2.7/threading.py", line 505, in run self.target(_self.__args, *_self.kwargs)

File "/home/pi/bumblebee-0.3/drivers/printcore.py", line 167, in _listen self.temperatures['extruder_target'] = matches[1] IndexError: list index out of range

On Botqueue, the job has a status of "Taken" but Bed Temperature and Extruder Temperature in the Temperature Log shows no temperature reading.

[image: No Temperature]https://a248.e.akamai.net/camo.github.com/a0e823f3f7a40a9db1e1ef6d9e02ceffe1b89863/687474703a2f2f696d61676562696e2e6f72672f696e6465782e7068703f6d6f64653d696d6167652669643d323632393335

— Reply to this email directly or view it on GitHubhttps://github.com/Hoektronics/BotQueue/issues/80 .


Zach Hoeken Smith

Work: www.haxlr8r.com Blog: www.hoektronics.com Twitter: @hoeken Skype: chilldude22 QQ: 1489598623 China: +86-186-8209-7069

Jnesselr commented 11 years ago

I'm pretty sure I know what the problem is, but is there any way you can send "M105" to your printer and post it's output here? On Jun 29, 2013 10:02 PM, "David Chua" notifications@github.com wrote:

Hi all,

I'm running bumblebee-0.3 on my Raspberry Pi with a Marlin firmware Solidoodle2.

When I send a job over, bumblebee seems to respond but it gives me the following error on the client.

BotQueue v0.2 Time: Sun Jun 30 02:53:58 2013

ID              BOT NAME      STATUS  PROGRESS    JOB ID      STATUS

279 dfgfdg working 0.01% 2830 taken q = quit program

Network Status: ONLINEException in thread Thread-2: Traceback (most recent call last):

File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run()

File "/usr/lib/python2.7/threading.py", line 505, in run self.target(_self.__args, *_self.kwargs)

File "/home/pi/bumblebee-0.3/drivers/printcore.py", line 167, in _listen self.temperatures['extruder_target'] = matches[1] IndexError: list index out of range

On Botqueue, the job has a status of "Taken" but Bed Temperature and Extruder Temperature in the Temperature Log shows no temperature reading.

[image: No Temperature]https://a248.e.akamai.net/camo.github.com/a0e823f3f7a40a9db1e1ef6d9e02ceffe1b89863/687474703a2f2f696d61676562696e2e6f72672f696e6465782e7068703f6d6f64653d696d6167652669643d323632393335

— Reply to this email directly or view it on GitHubhttps://github.com/Hoektronics/BotQueue/issues/80 .

Jnesselr commented 11 years ago

Looking back at the code, the actual parsing line should be: self.temperatures['extruder_target'] = matches[0][1]

matches[1] should throw an IndexError because it doesn't exist.

Did you by change change the file? Are you at the most recent point on the master branch?

davidchua commented 11 years ago

@hoeken @Jnesselr thanks for looking into this!

Here's my M105 output:

3:06:10 M105
3:06:10 ok T:49.5 /3.0 B:48.8 /3.0 @:0

I had not changed the file and used the latest 0.3 version on http://dl.botqueue.com/bumblebee/

hoeken commented 11 years ago

oh, i just realized you're running an old version of botqueue. either upgrade to the latest in github or wait for 0.4 which will be released this week.