Giter VIP home page Giter VIP logo

botqueue's People

Contributors

hoeken avatar jnesselr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

botqueue's Issues

timeout on download complete notification.

[2013-03-13 09:17:54,955] INFO: Download complete: https://botqueue.s3.amazonaws.com/assets/20/c0/aa/0f/d0/nameplate.gcode
[2013-03-13 09:17:54,974] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint
[2013-03-13 09:18:07,533] ERROR: XiaoKong: The read operation timed out
Traceback (most recent call last):
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 140, in run
self.processJob()
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 285, in processJob
self.api.downloadedJob(self.data['job']['id'])
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 227, in downloadedJob
return self.apiCall('downloadedjob', {'job_id' : job_id})
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 76, in apiCall
raise NetworkError(str(ex))
NetworkError: The read operation timed out
[2013-03-13 09:18:07,538] ERROR: The read operation timed out
Traceback (most recent call last):
File "bumblebee.py", line 40, in loadbot
worker.run();
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 160, in run
raise ex
NetworkError: The read operation timed out

Stats page feature requests

I am a big fan of the stats page ever since my friend told me I was at the top of it ;)

I would like to be able to see monthly stats too to give an ongoing picture of botqueue usage as well as a bit more competitions. I'm a massive fan of the software and use it almost exclusively.

New slice config doesn't expire jobs with generated gcode

For example, if I slice a file, teh job fails, then i upload a new profile, it will still use the old sliced file.

Fix: when dropping a job (or expiring a slice config) remove the gcode file if it was generated through slicing.

bumblebee froze up a 72%, but print completed sucessfully

printcore log looks normal:

[2013-04-26 12:13:42,881] INFO: Printer closed, shutting down.
[2013-04-26 12:40:52,295] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 12:40:53,321] INFO: Bot online.
[2013-04-26 14:16:05,001] INFO: Disconnecting from serial
[2013-04-26 14:16:08,988] INFO: Printer closed, shutting down.
[2013-04-26 14:41:11,493] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 14:41:12,511] INFO: Bot online.
[2013-04-26 17:53:12,936] INFO: Disconnecting from serial
[2013-04-26 17:53:16,947] INFO: Printer closed, shutting down.
[2013-04-26 19:14:26,324] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 19:14:27,334] INFO: Bot online.
[2013-04-26 20:07:38,439] INFO: Disconnecting from serial
[2013-04-26 20:07:42,370] INFO: Printer closed, shutting down.
[2013-04-26 20:32:49,745] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 20:32:50,752] INFO: Bot online.
[2013-04-26 21:00:08,624] INFO: Disconnecting from serial
[2013-04-26 21:00:12,564] INFO: Printer closed, shutting down.
[2013-04-26 21:36:56,005] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 21:36:57,013] INFO: Bot online.
[2013-04-26 22:06:56,752] INFO: Disconnecting from serial
[2013-04-26 22:07:00,759] INFO: Printer closed, shutting down.
[2013-04-26 22:22:51,364] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 22:22:52,443] INFO: Bot online.
[2013-04-26 23:12:54,829] INFO: Disconnecting from serial
[2013-04-26 23:12:58,776] INFO: Printer closed, shutting down.
[2013-04-26 23:26:59,430] INFO: Connecting to /dev/ttyACM0 @ 115200
[2013-04-26 23:27:00,464] INFO: Bot online.
[2013-04-27 00:32:28,128] INFO: Disconnecting from serial
[2013-04-27 00:32:32,148] INFO: Printer closed, shutting down.

Last couple of line of info log reveals this:

70.40% :: BotQueue.com' webcam.jpg
[2013-04-27 00:16:40,247] INFO: Morgan0: Webcam Capture started.
[2013-04-27 00:16:43,586] INFO: Morgan0: Webcam: capture complete.
[2013-04-27 00:16:43,591] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - webcamupdate (1 tries remaining)
[2013-04-27 00:16:48,686] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-04-27 00:16:55,321] INFO: Morgan0: print: 71.03%
[2013-04-27 00:16:55,321] INFO: Morgan0: Webcam Command: exec /usr/bin/fswebcam -q --jpeg 60 -d /dev/video0 -r 640x480 --title 'Morgan0 :: 71.00% :: BotQueue.com' webcam.jpg
[2013-04-27 00:16:55,329] INFO: Morgan0: Webcam Capture started.
[2013-04-27 00:16:58,654] INFO: Morgan0: Webcam: capture complete.
[2013-04-27 00:16:58,659] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - webcamupdate (1 tries remaining)
[2013-04-27 00:17:07,543] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-04-27 00:17:10,325] INFO: Morgan0: print: 71.59%
[2013-04-27 00:17:10,325] INFO: Morgan0: Webcam Command: exec /usr/bin/fswebcam -q --jpeg 60 -d /dev/video0 -r 640x480 --title 'Morgan0 :: 71.59% :: BotQueue.com' webcam.jpg
[2013-04-27 00:17:10,335] INFO: Morgan0: Webcam Capture started.
[2013-04-27 00:17:13,673] ERROR: Morgan0: Webcam: Corrupt JPEG data: premature end of data segment
[2013-04-27 00:17:13,673] INFO: Morgan0: Webcam: capture complete.
[2013-04-27 00:17:13,673] ERROR: Morgan0: Errors detected. Bailing.
[2013-04-27 00:17:13,675] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - updatejobprogress (1 tries remaining)
[2013-04-27 00:17:21,293] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-04-27 00:17:25,331] INFO: Morgan0: print: 71.98%
[2013-04-27 00:17:25,331] INFO: Morgan0: Webcam Command: exec /usr/bin/fswebcam -q --jpeg 60 -d /dev/video0 -r 640x480 --title 'Morgan0 :: 71.98% :: BotQueue.com' webcam.jpg
[2013-04-27 00:17:25,338] INFO: Morgan0: Webcam Capture started.
[2013-04-27 00:17:28,676] INFO: Morgan0: Webcam: capture complete.
[2013-04-27 00:17:28,681] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - webcamupdate (1 tries remaining)
[2013-04-27 00:17:36,385] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-04-27 00:17:40,349] INFO: Morgan0: print: 72.40%
[2013-04-27 00:17:40,349] INFO: Morgan0: Webcam Command: exec /usr/bin/fswebcam -q --jpeg 60 -d /dev/video0 -r 640x480 --title 'Morgan0 :: 72.40% :: BotQueue.com' webcam.jpg
[2013-04-27 00:17:40,357] INFO: Morgan0: Webcam Capture started.
[2013-04-27 00:17:43,698] INFO: Morgan0: Webcam: capture complete.
[2013-04-27 00:17:43,703] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - webcamupdate (1 tries remaining)
[2013-04-27 00:17:50,562] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-04-27 00:17:55,373] INFO: Morgan0: print: 72.94%
[2013-04-27 00:17:55,374] INFO: Morgan0: Webcam Command: exec /usr/bin/fswebcam -q --jpeg 60 -d /dev/video0 -r 640x480 --title 'Morgan0 :: 72.94% :: BotQueue.com' webcam.jpg
[2013-04-27 00:17:55,381] INFO: Morgan0: Webcam Capture started.
[2013-04-27 00:17:58,719] ERROR: Morgan0: Webcam: Corrupt JPEG data: premature end of data segment
[2013-04-27 00:17:58,719] INFO: Morgan0: Webcam: capture complete.
[2013-04-27 00:17:58,720] ERROR: Morgan0: Errors detected. Bailing.
[2013-04-27 00:17:58,721] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - updatejobprogress (1 tries remaining)
[2013-04-27 00:32:32,152] DEBUG: Bumbledrive: finishing print.

web controls to heat print head to change plastic

Hi,
First time I've had this problem since using your software: I need to change my filament color and there's no way from the web UI of heating the nozzle, or priming the extruder. Please can you add these controls?

Thanks

botname

If I write in a config correctly a bot name the program gives out error, if not all ok.

Job Ordering > 20 jobs

if more than 20 jobs waiting, not able to create new job and drag it to the front of the list. can only drag items within same page.

SQL server down = API Call fail

[2013-03-25 14:51:24,928] ERROR: Unknown API error: No JSON object could be decoded
[2013-03-25 14:51:24,928] ERROR: response: {'status': '200', 'content-length': '105', 'x-powered-by': 'PHP/5.3.10-1ubuntu3.4', 'vary': 'Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu)', '-content-encoding': 'gzip', 'date': 'Mon, 25 Mar 2013 06:51:05 GMT', 'content-type': 'text/html'}
[2013-03-25 14:51:24,928] ERROR: content: Failed to connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
[2013-03-25 14:51:24,929] ERROR: No JSON object could be decoded
Traceback (most recent call last):
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 76, in apiCall
result = json.loads(content)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 360, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

SSH terminal redirecting to website

My print controller computer has no screen and is accessible only via ssh. When a print is completed the ssh terminal open the botqueue website and does not continue with the next job when I mark that one as complete in the web ui. Any help is appreciated.

more china internet timeout garbage.

[2013-03-13 17:47:39,314] DEBUG: Got message job_start
[2013-03-13 17:47:59,224] ERROR: XiaoKong: timed out
Traceback (most recent call last):
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 140, in run
self.processJob()
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 285, in processJob
self.api.downloadedJob(self.data['job']['id'])
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 227, in downloadedJob
return self.apiCall('downloadedjob', {'job_id' : job_id})
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 76, in apiCall
raise NetworkError(str(ex))
NetworkError: timed out
[2013-03-13 17:47:59,227] ERROR: timed out
Traceback (most recent call last):
File "bumblebee.py", line 40, in loadbot
worker.run();
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 160, in run
raise ex
NetworkError: timed out

question on timelapse from the roadmap

automatically create a timelapse at the end of a successful print - watch your object grow
* timelapse interval should be calculated to last an exact time... 10 seconds or so.

would it make more sense to take a picture on every Z movement then the timelapse should end up being much smoother. Also cheaper webcams would not end up with blurred photos in the timelapse as during z movement the printer is almost static.

While a job is slicing, it is not considered as taken

While a bot has taken a job, and it is slicing, it is not considered 'taken', at least as far as the statistics of available jobs, taken jobs, completed jobs, and failed jobs. Total jobs does show that there is one extra job, but if you add up the other categories, it'll come up one short while slicing, where it should be in the 'taken' category.

BotQueue does not work under anything but the / directory

For example, if I want to force it to use the "bot/" directory (www.example.com/bot/) it will fail to work because it's still looking up all of the resources in the / directory.

This may be some apache magic that I'm failing to grasp. In all honesty, it probably is. But in any case, I'd like to figure out how to get it to work if at all possible.

Slic3r does not work on the Raspberry Pi

Slicing does not work on the Raspberry PI, due to it being an ARM processor. It does work if you install the dependencies, and tell it to run the Slic3r.pl instead. I'll try and get a compiled version of slicer so you don't have to run the perl version and install all of the dependencies.

https://botqueue.s3.amazonaws.com/ request timeout

Hi,
I recently got this:
I was on the dashboard and it redirected to
https://botqueue.s3.amazonaws.com/

with results:
This XML file does not appear to have any style information associated with it. The document tree is shown below.

RequestTimeout

Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.

8F638E3B0D060ED4

yCULPwNx1wbnjH/GKsGe3//1YCC/gyY9aJHkct2CAJEZIZje+8WGzSG604Xj9qiT

Password Reset

Currently, no email is sent after a user makes a username/password reset request. I'm not sure if this is a mis-configuration of www.botqueue.com or if it's a bug in the logic.

Printing time statistics are incorrect

The new 'stats' page shows my total hours of printing as almost 1200 hours. Whereas I've only been using BotQueue for a couple of days now with probably a couple hundred hours of printing at best.

This issue is also visible in the view bot page statistics. Which shows things like my total run time for one of my bots being 1 month when there's no way it's been more than a week :)

James

Screen Shot 2013-02-25 at 8 13 37 PM
Screen Shot 2013-02-25 at 8 13 56 PM

New feature request - webcam view

Any chance of integrating webcam viewer into the website. It would be useful then I could start a print without being in the room.

Slicing while printing previous job?

Hi,
I just put through 3 'plated' prints - by that I mean I filled the entire build area with multiple complex parts and the resulting gcode is about 12MB for each plate. I decided to put the STL plates through botqueue instead of slicing first myself as it takes about 5-10 minutes on my computer to slice.

Is it possible once the first job starts printing to slice the second job and the third job so that when I say the bot is 'ready' to print again it starts immediately rather that slicing for 10 minutes then printing?

Thanks

failed to complete job #1067

not sure what happened... need to look into. this was on job finish?

[2013-03-06 21:12:33,167] ERROR: XiaoKong: Error notifying mothership: You cannot complete this job.
Traceback (most recent call last):
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 337, in processJob
raise Exception("Error notifying mothership: %s" % result['error'])
Exception: Error notifying mothership: You cannot complete this job.
[2013-03-06 21:12:33,170] ERROR: XiaoKong: Error mode: Error notifying mothership: You cannot complete this job.
[2013-03-06 21:12:33,170] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint
[2013-03-06 21:12:54,111] ERROR: XiaoKong: The read operation timed out
Traceback (most recent call last):
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 62, in errorMode
self.dropJob(error)
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 368, in dropJob
result = self.api.dropJob(self.data['job']['id'], error)
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 209, in dropJob
return self.apiCall('dropjob', {'job_id' : job_id, 'error' : error})
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 76, in apiCall
raise NetworkError(str(ex))
NetworkError: The read operation timed out
[2013-03-06 21:12:54,115] INFO: XiaoKong: Setting bot status as error.
[2013-03-06 21:12:54,115] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint
[2013-03-06 21:13:05,384] ERROR: XiaoKong: The read operation timed out
Traceback (most recent call last):
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 140, in run
self.processJob()
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 343, in processJob
self.errorMode(ex)
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 68, in errorMode
result = self.api.updateBotInfo({'bot_id' : self.data['id'], 'status' : 'error', 'error_text' : error})
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 248, in updateBotInfo
return self.apiCall('updatebot', data)
File "/Users/hoeken/github/BotQueue/bumblebee/botqueueapi.py", line 76, in apiCall
raise NetworkError(str(ex))
NetworkError: The read operation timed out
[2013-03-06 21:13:05,385] ERROR: The read operation timed out
Traceback (most recent call last):
File "bumblebee.py", line 40, in loadbot
worker.run();
File "/Users/hoeken/github/BotQueue/bumblebee/workerbee.py", line 160, in run
raise ex
NetworkError: The read operation timed out

Typo on https://www.botqueue.com/help

Hey Zach,

didn't find a better place to post this - it's also source code related. So here we go:

"port" : "/dev/tty.usbmodem123",
    "baud" : "250000"
},

--> the comma after the bracket is wrong and messed up my client, when I copy & pasted this as a template into my config.

  • Source code related, in terms of: You could provide a full template in the original config.json - that would be more convenient.

offtopic: I have the client and webapp running. Tuesday I try to print with my Ultimaker. Totally love the idea and had something like this in mind for quite a while. So good to see you working on this!

Hope to give you plenty of feedback!
Flo

bumblebee doesn't support xterm-color

Using the download from http://dl.botqueue.com/bumblebee/ and OS X 10.7.5 bumblebee.py fails in my default terminal (TERM=xterm-color):

iMac:bumblebee-0.1.0 paul$ python bumblebee.py 
Traceback (most recent call last):
  File "bumblebee.py", line 185, in <module>
    bee.main()
  File "bumblebee.py", line 71, in main
    curses.wrapper(self.mainMenu)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "bumblebee.py", line 80, in mainMenu
    curses.curs_set(0)
_curses.error: curs_set() returned ERR

If I change the terminal type it works OK:

iMac:bumblebee-0.1.0 paul$ TERM=xterm python bumblebee.py 
[ program runs normally ]

The curs_set fails because xterm-color doesn't seem to support the invis option:

iMac:bumblebee-0.1.0 paul$ TERM=xterm-color infocmp | grep civis
iMac:bumblebee-0.1.0 paul$ TERM=xterm infocmp | grep civis
    bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,

Bumblebee requires a restart to pick up new bots

It would be nice if it did a bot update every once in a while to see if any bots were added that are in the configuration. I believe that this will also be one more step towards completely automated configuration.

show filament required and remaining

Showing filament required would be really useful per print.
Expanding on this I would like to input to the website that I have added 100m of filament to printer x and then when it calculates how much filament is required per print it keeps track of how much is left in the printer. Then if you click 'im ready' for a particular printer when a job is finished it will tell warn you if it is going to run out. It's often hard to tell whether there are 15m left on a roll or not so I never know if a print will run dry in the middle of the night.

ViewException: The bot.set_status page does not exist

Hey, if you try and take a bot offline that is working, it throws this nasty bit:

Fatal error: Uncaught exception 'ViewException' with message 'The bot.set_status page does not exist!' in /home/ubuntu/Dev-BotQueue/framework/view.php:54 Stack trace: #0 /home/ubuntu/Dev-BotQueue/framework/controller.php(169): View->render(Array) #1 /home/ubuntu/Dev-BotQueue/web/dispatcher.php(94): Controller->renderView('set_status') #2 {main} thrown in /home/ubuntu/Dev-BotQueue/framework/view.php on line 54

Permission denied from AWS

I uploaded a gcode file but my bot was unable to process it because it is 403 on the AWS site. info.log below.

Also, it might be helpful if the last few lines of the log file were 'tail'ed on the bumblebee.py console -- or maybe it could be toggled by hitting a key. As it is they just flash on the screen for a brief moment then get cleared. I tried to implement it but I don't really know enough python.

[2012-10-05 17:42:04,151] INFO: PxT's Printrbot: Looking for new job.
[2012-10-05 17:42:11,661] INFO: PxT's Printrbot: grabbed job Upper+gear_v2.gcode
[2012-10-05 17:42:21,663] INFO: PxT's Printrbot: downloading https://botqueue.s3.amazonaws.com/assets/e7/60/ec/2a/2d/Upper+gear_v2.gcode to ./cache/Upper+gear_v2.gcode.
[2012-10-05 17:42:22,441] ERROR: PxT's Printrbot: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/Users/paul/src/github/BotQueue/bumblebee/workerbee.py", line 127, in run
self.processJob()
File "/Users/paul/src/github/BotQueue/bumblebee/workerbee.py", line 307, in processJob
self.downloadJob()
File "/Users/paul/src/github/BotQueue/bumblebee/workerbee.py", line 216, in downloadJob
urlFile = self.openUrl(self.data['job']['file']['url'])
File "/Users/paul/src/github/BotQueue/bumblebee/workerbee.py", line 272, in openUrl
urlfile = urllib2.urlopen(request)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error
return self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

resizing bumblebee terminal window cause crash

On resizing the bumblebee terminal window everything stopped working.
Had to close the terminal.

I am now running it from outside the GUI in a different session to prevent similar problems...

BotQueue not showing full dashboard

I decided to pull the upstream/master (your master branch) in, and updated my server. I got this strange message:

PHP Fatal error: Uncaught exception 'ViewException' with message 'The main.dashboard_ page does not exist!' in /var/www/BotQueue/framework/view.php:54
Stack trace:
#0 /var/www/BotQueue/framework/controller.php(169): View->render(NULL)
#1 /var/www/BotQueue/views/main/dashboard.php(19): Controller->renderView('dashboard_', Array)
#2 /var/www/BotQueue/framework/view.php(52): include('/var/www/BotQue...')
#3 /var/www/BotQueue/framework/controller.php(169): View->render(Array)
#4 /var/www/BotQueue/views/main/home.php(21): Controller->renderView('dashboard')
#5 /var/www/BotQueue/framework/view.php(52): include('/var/www/BotQue...')
#6 /var/www/BotQueue/framework/controller.php(169): View->render(Array)
#7 /var/www/BotQueue/web/dispatcher.php(96): Controller->renderView('home')
#8 {main}

thrown in /var/www/BotQueue/framework/view.php on line 54

I'm not sure at all what is causing it.

local copy to stop internet blackouts

Hi,
I'd like to run botqueue locally to get around my internet dying every hour or so which causes issues using botqueue.

Do you have a wiki to help me install locally?

hugh

404 Error Causes Bumblebee to crash

[2013-02-13 11:43:58,453] ERROR: FXiaoKong: Invalid response 404.
Traceback (most recent call last):
File "/Users/hoeken/github/DevQueue/bumblebee/workerbee.py", line 141, in run
self.getOurInfo() #if there was a problem with the job, we'll find it by pulling in a new bot state and looping again.
File "/Users/hoeken/github/DevQueue/bumblebee/workerbee.py", line 167, in getOurInfo
result = self.api.getBotInfo(self.data['id'])
File "/Users/hoeken/github/DevQueue/bumblebee/botqueueapi.py", line 245, in getBotInfo
return self.apiCall('botinfo', {'bot_id' : bot_id})
File "/Users/hoeken/github/DevQueue/bumblebee/botqueueapi.py", line 82, in apiCall
raise NetworkError(str(ex))
NetworkError: Invalid response 404.

Offline botfarm - local storage vs cloud storage

Some users may preffer to use botqueue just as an automated controller for their bot farm but would rather preffer not to upload/download stl + gcode from Amazon. Since each node can run its slicer instance, for those users botqueue could perfeclty work without internet access in a local area cabled network.

Ideal workflow would be to slice the next job while printing the current one. botqueue would only point nodes (PCs with bumblebee+printcore and a couple 3d printers) to STL files stored in the botqueue server (not on Amazon storage).

I think that an optional local storage config could be good for users not interested in buying Amazon storage services or for users that lack reliable internet access.

happy hacking,
Felipe Sanches
http://metamaquina.com.br/

slic3r: Syntax error: Unterminated quoted string

Basically, it fails to slice the job, for some unknown reason. Something about an unterminated quoted string. I don't know if it's talking about the stl file or what. The file does have a hole in it. so I ran it through netfabb, but it had the same error.

[2013-02-13 05:53:58,928] INFO: Jasmine: Looking for new job.
[2013-02-13 05:53:58,931] DEBUG: Calling http://dev.botqueue.com/api/v1/endpoint
[2013-02-13 05:53:59,112] DEBUG: loading json
[2013-02-13 05:53:59,120] DEBUG: Calling http://dev.botqueue.com/api/v1/endpoint
[2013-02-13 05:53:59,392] DEBUG: loading json
[2013-02-13 05:53:59,403] INFO: Jasmine: grabbed job Paste_Pusher_Animal_Bear.STL
[2013-02-13 05:53:59,419] INFO: Downloading http://devqueue.s3.amazonaws.com/f4/d8/9f/76/2a/Paste_Pusher_Animal_Bear.STL to /home/pi/BotQueue/bumblebee/cache/13202228fc8dcb56ad0902dec99fd1c2-Paste_Pusher_Animal_Bear.STL
[2013-02-13 05:53:59,424] DEBUG: Got message job_start
[2013-02-13 05:53:59,428] DEBUG: Got message job_update
[2013-02-13 05:53:59,958] DEBUG: Got message job_update
[2013-02-13 05:54:00,487] DEBUG: Got message job_update
[2013-02-13 05:54:01,007] DEBUG: Got message job_update
[2013-02-13 05:54:01,408] INFO: Download complete: http://devqueue.s3.amazonaws.com/f4/d8/9f/76/2a/Paste_Pusher_Animal_Bear.STL
[2013-02-13 05:54:01,431] DEBUG: Starting slice.
[2013-02-13 05:54:01,440] DEBUG: Config file: /tmp/tmpY7Ac80
[2013-02-13 05:54:01,444] DEBUG: Output file: /tmp/tmpQ1hs_B
[2013-02-13 05:54:01,486] DEBUG: Slicer path: /home/pi/BotQueue/bumblebee/slicers/slic3r-0.9.8/linux/bin/slic3r
[2013-02-13 05:54:01,488] DEBUG: Slice Command: /home/pi/BotQueue/bumblebee/slicers/slic3r-0.9.8/linux/bin/slic3r --load /tmp/tmpY7Ac80 --output /tmp/tmpQ1hs_B /home/pi/BotQueue/bumblebee/cache/13202228fc8dcb56ad0902dec99fd1c2-Paste_Pusher_Animal_Bear.STL
[2013-02-13 05:54:01,510] DEBUG: Slic3r started.
[2013-02-13 05:54:01,527] DEBUG: Got message job_update
[2013-02-13 05:54:02,047] DEBUG: Got message job_update
[2013-02-13 05:54:06,945] DEBUG: Got message job_update
[2013-02-13 05:54:06,948] DEBUG: Got message job_update
[2013-02-13 05:54:02,581] ERROR: Slic3r: /home/pi/BotQueue/bumblebee/slicers/slic3r-0.9.8/linux/bin/slic3r: 1: /home/pi/BotQueue/bumblebee/slicers/slic3r-0.9.8/linux/bin/slic3r: Syntax error: Unterminated quoted string
[2013-02-13 05:54:06,955] DEBUG: Got message job_update
[2013-02-13 05:54:06,958] DEBUG: Got message job_update
[2013-02-13 05:54:06,962] DEBUG: Got message job_update
[2013-02-13 05:54:06,965] DEBUG: Got message job_update
[2013-02-13 05:54:06,969] DEBUG: Got message job_update
[2013-02-13 05:54:06,972] DEBUG: Got message job_update
[2013-02-13 05:54:06,976] DEBUG: Got message job_update
[2013-02-13 05:54:07,082] DEBUG: Got message job_update
[2013-02-13 05:54:07,965] DEBUG: Got message job_update
[2013-02-13 05:54:08,025] DEBUG: Jasmine: Moved slice output to /home/pi/BotQueue/bumblebee/cache/d41d8cd98f00b204e9800998ecf8427e-Paste_Pusher_Animal_Bear.gcode
[2013-02-13 05:54:08,030] INFO: Jasmine: Finished slicing, uploading results to main site.
[2013-02-13 05:54:08,873] ERROR: No JSON object could be decoded
Traceback (most recent call last):
File "/home/pi/BotQueue/bumblebee/botqueueapi.py", line 123, in apiUploadCall
result = json.loads(respdata)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[2013-02-13 05:54:08,891] ERROR: FJasmine: No JSON object could be decoded
Traceback (most recent call last):
File "/home/pi/BotQueue/bumblebee/workerbee.py", line 134, in run
self.sliceJob()
File "/home/pi/BotQueue/bumblebee/workerbee.py", line 248, in sliceJob
result = self.api.updateSliceJob(job_id=self.data['job']['slicejob']['id'], status=sushi.status, output=sushi.output_log, errors=sushi.error_log, filename=uploadFile)
File "/home/pi/BotQueue/bumblebee/botqueueapi.py", line 251, in updateSliceJob
return self.apiUploadCall('updateslicejob', {'job_id':job_id, 'status':status, 'output':output, 'errors':errors}, filepath=filename)
File "/home/pi/BotQueue/bumblebee/botqueueapi.py", line 132, in apiUploadCall
raise NetworkError(str(ex))
NetworkError: No JSON object could be decoded
[2013-02-13 05:54:08,904] ERROR: No JSON object could be decoded
Traceback (most recent call last):
File "bumblebee.py", line 39, in loadbot
worker.run();
File "/home/pi/BotQueue/bumblebee/workerbee.py", line 160, in run
raise ex
NetworkError: No JSON object could be decoded

Thread call interrupted

[2013-03-25 10:33:43,332] DEBUG: Starting slice.
[2013-03-25 10:33:43,338] DEBUG: Config file: /tmp/tmpNGOL7L
[2013-03-25 10:33:43,341] INFO: Using cached file /home/pi/BotQueue/bumblebee/cache/cb9783a8c423a091b71caae584542246-invaders_v2_1.stl
[2013-03-25 10:33:43,353] DEBUG: Output file: /tmp/tmpsUA__k
[2013-03-25 10:33:43,363] DEBUG: Slicer path: /home/pi/BotQueue/bumblebee/slicers/slic3r-0.9.8/raspberrypi/slic3r
[2013-03-25 10:33:43,367] DEBUG: Slice Command: /home/pi/BotQueue/bumblebee/slicers/slic3r-0.9.8/raspberrypi/slic3r --load /tmp/tmpNGOL7L --output /tmp/tmpsUA__k /home/pi/BotQueue/bumblebee/cache/cb9783a8c423a091b71caae584542246-invaders_v2_1.stl
[2013-03-25 10:33:43,417] DEBUG: Slic3r started.
[2013-03-25 10:33:46,826] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:33:51,638] DEBUG: Slic3r: => Processing triangulated mesh
[2013-03-25 10:34:01,586] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:34:13,425] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:34:14,104] DEBUG: Slic3r: => Generating perimeters
[2013-03-25 10:34:25,182] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:34:37,084] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:34:42,147] DEBUG: Slic3r: => Detecting solid surfaces
[2013-03-25 10:34:45,858] DEBUG: Slic3r: => Preparing infill surfaces
[2013-03-25 10:34:46,863] DEBUG: Slic3r: => Detect bridges
[2013-03-25 10:34:48,111] DEBUG: Slic3r: => Generating horizontal shells
[2013-03-25 10:34:49,107] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:34:49,116] DEBUG: Slic3r: => Combining infill
[2013-03-25 10:34:50,120] DEBUG: Slic3r: => Infilling layers
[2013-03-25 10:35:01,296] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:35:13,785] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:35:18,182] DEBUG: Slic3r: => Generating skirt
[2013-03-25 10:35:19,187] DEBUG: Slic3r: => Exporting G-code to /tmp/tmpsUA__k
[2013-03-25 10:35:25,706] DEBUG: Calling https://www.botqueue.com/api/v1/endpoint - listbots (1 tries remaining)
[2013-03-25 10:36:06,801] DEBUG: Slic3r: Done. Process took 2 minutes and 15.163 seconds
[2013-03-25 10:36:07,807] DEBUG: Slic3r: Filament required: 3426.5mm (8.2cm3)
[2013-03-25 10:41:55,207] ERROR: DaYin: [Errno 4] Interrupted system call
Traceback (most recent call last):
File "/home/pi/BotQueue/bumblebee/workerbee.py", line 134, in run
self.sliceJob()
File "/home/pi/BotQueue/bumblebee/workerbee.py", line 230, in sliceJob
self.pipe.send(msg)
IOError: [Errno 4] Interrupted system call
[2013-03-25 10:41:55,254] ERROR: [Errno 4] Interrupted system call
Traceback (most recent call last):
File "bumblebee.py", line 40, in loadBot
worker.run();
File "/home/pi/BotQueue/bumblebee/workerbee.py", line 158, in run
raise ex
IOError: [Errno 4] Interrupted system call

Probably just the pi misbehaving. Shame on you Pi!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.