Fantastic! I'm trying to replicate it, but it gives me this error: execfile('/plotter/plotter.py') Traceback (most recent call last): File "", line 1, in OSError: [Errno 2] ENOENT Can you help me? Thank you
Hey Luca. The most likely explanation is that the file plotter.py is not found in the folder /plotter/. Could you verify, that the file has been copied successfully? The is possible with the ls command when connected to the hub
@@marcos913 Hi, yes the file was present together with cube.txt. I'll check better tonight, thanks for the reply. I'm a beginner, this project is amazing! I'll probably still need some help)))...thanks
@@lucacusanno105 I created a "/plotter/" folder on the hub, to save all files regarding the plotter in there. This is the mkdir command. But it will work in other locations as well, as long as you reference the files correctly.
Hi Jason. It depends on your OS. On macOS you should find it by typing "ls /dev/cu.*" in your terminal. Not 100% sure about Linux, but it should also be under "/dev/". My guess would be "ls /dev/tty*". On windows I would assume it would be some kind of COM port. If you are on windows you should probably search for using rshell on windows. I hope that helps
@@marcos913 Perfect. I was working on a Windows machine, but had switched over to a Mac. Was able to get rshell connected, but copying to /plotter/ failed. My best guess is that I need to create that folder in /pyboard prior, just assuming that it won't create the directory into which the file is to be copied on the board.
@@jasoncrow4704 You are most likely right. You can create the folder using "mkdir /plotter". I should add this to the instructions, thanks for pointing out
@@marcos913 Hi Marco... I am slowly getting this thing to work. I can communicate with the Hub. I am now trying to run your code, but I get an 'invalid syntax' error when I try and use execfile. The issue could still have something to do with the directory - trying to execute the script in the plotter folder on the Hub? Not sure. Any ideas?
@@jasoncrow4704 Hm, my guess would be that the files were transferred incompletely, rshell failed me a coupe of times.. You can try to compare the file sizes on your machine and on the hub using "ls -l" or print the file using "cat plotter.py" and see if something is missing at the end. Using a connection via usb cable instead of bluetooth seemed to be more reliable. Also, as I have written on my homepage, for large files I started using ampy which was far more reliable
And instead do the same thing but with the horizontal plotter with wheels?
Really really awesome!!!
This is so awesome 👏
Good job!!!
how do you transform the svg to x and y coordinates and where do I put them in the program once I have them?
maybe you could do a whole tutorial video from start to finish. It would help a lot of non-coders(hint: me)
@@reelbricks Hi Evan. Did you see the article I wrote at voot.de/projects/lego-wallplotter/ ? It is explaining all steps in detail.
@@marcos913 thank you
Fantastic!
I'm trying to replicate it, but it gives me this error:
execfile('/plotter/plotter.py')
Traceback (most recent call last):
File "", line 1, in
OSError: [Errno 2] ENOENT
Can you help me?
Thank you
Hey Luca. The most likely explanation is that the file plotter.py is not found in the folder /plotter/. Could you verify, that the file has been copied successfully? The is possible with the ls command when connected to the hub
@@marcos913 Hi, yes the file was present together with cube.txt. I'll check better tonight, thanks for the reply. I'm a beginner, this project is amazing! I'll probably still need some help)))...thanks
But should the /plotter/ folder be created in the hub?
@@lucacusanno105 I created a "/plotter/" folder on the hub, to save all files regarding the plotter in there. This is the mkdir command. But it will work in other locations as well, as long as you reference the files correctly.
@@marcos913 After various tests, with the USB cable I succeeded! Now I wanted to try to communicate with bluetooth, but with rshell it doesn't work
Hi Marco, How do you find the device name for the Lego that you list when copy the script to it - rshell -p /dev/cu.LEGOHub...?
Hi Jason. It depends on your OS. On macOS you should find it by typing "ls /dev/cu.*" in your terminal. Not 100% sure about Linux, but it should also be under "/dev/". My guess would be "ls /dev/tty*". On windows I would assume it would be some kind of COM port. If you are on windows you should probably search for using rshell on windows. I hope that helps
@@marcos913 Perfect. I was working on a Windows machine, but had switched over to a Mac. Was able to get rshell connected, but copying to /plotter/ failed. My best guess is that I need to create that folder in /pyboard prior, just assuming that it won't create the directory into which the file is to be copied on the board.
@@jasoncrow4704 You are most likely right. You can create the folder using "mkdir /plotter". I should add this to the instructions, thanks for pointing out
@@marcos913 Hi Marco... I am slowly getting this thing to work. I can communicate with the Hub. I am now trying to run your code, but I get an 'invalid syntax' error when I try and use execfile. The issue could still have something to do with the directory - trying to execute the script in the plotter folder on the Hub? Not sure. Any ideas?
@@jasoncrow4704 Hm, my guess would be that the files were transferred incompletely, rshell failed me a coupe of times.. You can try to compare the file sizes on your machine and on the hub using "ls -l" or print the file using "cat plotter.py" and see if something is missing at the end. Using a connection via usb cable instead of bluetooth seemed to be more reliable. Also, as I have written on my homepage, for large files I started using ampy which was far more reliable