pyev3 icon indicating copy to clipboard operation
pyev3 copied to clipboard

how to you get cwiid

Open will-chantrey opened this issue 7 years ago • 13 comments

hi i am just asking how do you exactly install the cwiid module and how do you even get your python files transferred to your robot and also how do you get the ev3py module installed. does the wii remote connect up to the ev3 robot via bluetooth

please reply

will-chantrey avatar May 28 '18 15:05 will-chantrey

Hello!

You can install cwiid from the debian package repositories using the command sudo apt-get install python-cwiid.

To get files onto my robot I connect it to WiFi then log in from my computer using SSH. Then I use commands like wget and git clone to download my files from the internet. Another way I get files onto the robot is by opening a text editor from ssh (like nano) and pasting the file contents in. Finally, I copy files over directly using an SFTP client like WinSCP.

One more note is that this code repository is no longer maintained and has been replaced by the official ev3dev-lang-python repository. None of the code here still works with modern releases of ev3dev.

G33kDude avatar Jun 23 '18 04:06 G33kDude

also how do you put python 3 into script mode via pUTTY and SHH


From: GeekDude [email protected] Sent: 23 June 2018 04:37:31 To: G33kDude/pyev3 Cc: stephen; Author Subject: Re: [G33kDude/pyev3] how to you get cwiid (#5)

Hello!

You can install cwiid from the debian package repositorieshttps://packages.debian.org/sid/python/python-cwiid using the command sudo apt-get install python-cwiid.

To get files onto my robot I connect it to WiFi then log in from my computer using SSHhttps://www.ev3dev.org/docs/tutorials/connecting-to-ev3dev-with-ssh/. Then I use commands like wgethttps://linux.die.net/man/1/wget and git clonehttps://linux.die.net/man/1/git-clone to download my files from the internet. Another way I get files onto the robot is by opening a text editor from ssh (like nanohttps://linux.die.net/man/1/nano) and pasting the file contents in. Finally, I copy files over directly using an SFTP client like WinSCPhttps://winscp.net/eng/index.php.

One more note is that this code repository is no longer maintained and has been replaced by the official ev3dev-lang-python repositoryhttps://github.com/ev3dev/ev3dev-lang-python. None of the code here still works with modern releases of ev3dev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-399630325, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzKaMittYlBx_infaJDEbgxsoYBuyks5t_cYLgaJpZM4UQWT2.

will-chantrey avatar Jun 23 '18 09:06 will-chantrey

You can start Python 3 by using the python3 command. Either python3 on its own to start an interactive session where you can type code and run it in real time, or python3 filename.py to run a file.

Here is one guide for how to use the command line that you connect to using PuTTY and SSH: https://www.youtube.com/watch?v=oxuRxtrO2Ag

G33kDude avatar Jun 24 '18 04:06 G33kDude

Also yes, the wiimote does connect to the bot over Bluetooth. To connect it you would need to make sure that the bot's Bluetooth is enabled (which can be done from the graphical interface on the brick).

G33kDude avatar Jun 24 '18 04:06 G33kDude

Do you need debian to install cwiid and also what's the difference between libcwiid and cwiid

On 24 Jun 2018 05:48, GeekDude [email protected] wrote:

Also yes, the wiimote does connect to the bot over Bluetooth. To connect it you would need to make sure that the bot's Bluetooth is enabled (which can be done from the graphical interface on the brick).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-399728910, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzIFbIokQjAkZtxFoPYRoRH3lz-C8ks5t_xo4gaJpZM4UQWT2.

will-chantrey avatar Jun 24 '18 10:06 will-chantrey

I gave named it python_wii_driving.py and it is saved in a folder called my projects

I have tried saying python3 python_wii_driving.py and it didn't work and it said can't open file python_wii_driving.py, : "[Errno 2] no such file or directory

On 24 Jun 2018 05:40, GeekDude [email protected] wrote:

You can start Python 3 by using the python3 command. Either python3 on its own to start an interactive session where you can type code and run it in real time, or python3 filename.py to run a file.

Here is one guide for how to use the command line that you connect to using PuTTY and SSH: https://www.youtube.com/watch?v=oxuRxtrO2Ag

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-399728533, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzD7aYykR7tO9ERf-KZJYYLxskd-Vks5t_xhagaJpZM4UQWT2.

will-chantrey avatar Jun 24 '18 10:06 will-chantrey

Also if you do how do you install debian

On 24 Jun 2018 11:05, William Chantrey [email protected] wrote: Do you need debian to install cwiid and also what's the difference between libcwiid and cwiid

On 24 Jun 2018 05:48, GeekDude [email protected] wrote:

Also yes, the wiimote does connect to the bot over Bluetooth. To connect it you would need to make sure that the bot's Bluetooth is enabled (which can be done from the graphical interface on the brick).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-399728910, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzIFbIokQjAkZtxFoPYRoRH3lz-C8ks5t_xo4gaJpZM4UQWT2.

will-chantrey avatar Jun 24 '18 10:06 will-chantrey

i have managed to install debian and i have done the command sudo apt-get install python-cwiid but it says Unable to locate package python-cwiid and i do not know what to do


From: GeekDude [email protected] Sent: 24 June 2018 04:48:56 To: G33kDude/pyev3 Cc: stephen; Author Subject: Re: [G33kDude/pyev3] how to you get cwiid (#5)

Also yes, the wiimote does connect to the bot over Bluetooth. To connect it you would need to make sure that the bot's Bluetooth is enabled (which can be done from the graphical interface on the brick).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-399728910, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzIFbIokQjAkZtxFoPYRoRH3lz-C8ks5t_xo4gaJpZM4UQWT2.

will-chantrey avatar Jun 24 '18 14:06 will-chantrey

You installed debian/ev3dev to a MicroSD card according to the instructions here, right? Make sure after installing that your ev3 has access to the internet and that you update the package lists before you try to install anything with the sudo apt-get update command.

Once you have python-cwiid installed you will need to have a python script that will work with new releases of ev3dev. The one in this repository WILL NOT WORK. I usually have to rewrite my code from close to scratch whenever I bring the ev3 out for demos once a year. This is the newest version of the script I could find on my hard drive:

https://gist.github.com/G33kDude/b75e659a89c05619021cc30e96baf7df

Note that this version will probably ALSO NOT WORK out of the box with the most recent version of ev3dev. My ev3 is over 1300 miles away from me and because of that I cannot help to make the script work if it does not.

G33kDude avatar Jun 30 '18 17:06 G33kDude

Right I have sort of managed to install Debian onto a USB stick and no I don't think I have Debian on the robot, I will check later. I have managed to download a app but when ever I type sudo apt-get install cwiid it says unable to locate package cwiid

Sent from my hudl

On 30 Jun 2018 18:00, GeekDude [email protected] wrote:

You installed debian/ev3dev to a MicroSD card according to the instructions herehttps://www.ev3dev.org/docs/getting-started/, right? Make sure after installing that your ev3 has access to the internet and that you update the package lists before you try to install anything with the sudo apt-get update command.

Once you have python-cwiid installed you will need to have a python script that will work with new releases of ev3dev. The one in this repository WILL NOT WORK. I usually have to rewrite my code from close to scratch whenever I bring the ev3 out for demos once a year. This is the newest version of the script I could find on my hard drive:

https://gist.github.com/G33kDude/b75e659a89c05619021cc30e96baf7df

Note that this version will probably ALSO NOT WORK out of the box with the most recent version of ev3dev. My ev3 is over 1300 miles away from me and because of that I cannot help to make the script work if it does not.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-401553373, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzG0Vj5g1s0Rkx2nmjUinU6aattKAks5uB668gaJpZM4UQWT2.

will-chantrey avatar Jun 30 '18 19:06 will-chantrey

ok thanks for that i have managed to get it but what is pyudev and how do i get it


From: GeekDude [email protected] Sent: 30 June 2018 17:00 To: G33kDude/pyev3 Cc: stephen; Author Subject: Re: [G33kDude/pyev3] how to you get cwiid (#5)

You installed debian/ev3dev to a MicroSD card according to the instructions herehttps://www.ev3dev.org/docs/getting-started/, right? Make sure after installing that your ev3 has access to the internet and that you update the package lists before you try to install anything with the sudo apt-get update command.

Once you have python-cwiid installed you will need to have a python script that will work with new releases of ev3dev. The one in this repository WILL NOT WORK. I usually have to rewrite my code from close to scratch whenever I bring the ev3 out for demos once a year. This is the newest version of the script I could find on my hard drive:

https://gist.github.com/G33kDude/b75e659a89c05619021cc30e96baf7df

Note that this version will probably ALSO NOT WORK out of the box with the most recent version of ev3dev. My ev3 is over 1300 miles away from me and because of that I cannot help to make the script work if it does not.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-401553373, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzG0Vj5g1s0Rkx2nmjUinU6aattKAks5uB668gaJpZM4UQWT2.

will-chantrey avatar Jul 01 '18 11:07 will-chantrey

also the cwiid package still does not work


From: GeekDude [email protected] Sent: 30 June 2018 17:00:44 To: G33kDude/pyev3 Cc: stephen; Author Subject: Re: [G33kDude/pyev3] how to you get cwiid (#5)

You installed debian/ev3dev to a MicroSD card according to the instructions herehttps://www.ev3dev.org/docs/getting-started/, right? Make sure after installing that your ev3 has access to the internet and that you update the package lists before you try to install anything with the sudo apt-get update command.

Once you have python-cwiid installed you will need to have a python script that will work with new releases of ev3dev. The one in this repository WILL NOT WORK. I usually have to rewrite my code from close to scratch whenever I bring the ev3 out for demos once a year. This is the newest version of the script I could find on my hard drive:

https://gist.github.com/G33kDude/b75e659a89c05619021cc30e96baf7df

Note that this version will probably ALSO NOT WORK out of the box with the most recent version of ev3dev. My ev3 is over 1300 miles away from me and because of that I cannot help to make the script work if it does not.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-401553373, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzG0Vj5g1s0Rkx2nmjUinU6aattKAks5uB668gaJpZM4UQWT2.

will-chantrey avatar Jul 01 '18 11:07 will-chantrey

hi i have there is a new piece of software called visual studio code and i am still struggling to find libcwiid what i have been recommended to do by others is to try and install libcwiid-dev and also get libcwiid1 via Ubuntu. the reason i cannot use Debian (not matter how much i would rather to) is because as error always comes up. that i do not want to get into because i just want to keep it simple. whenever i try to run your new python script it always comes up saying no module named cwiid which is inside libcwiid-dev or inside libcwiid1 also it cannot find the pyev3 module either which also needs to be used in the script or the ev3dev.ev3 module which i am trying to use for the remote which comes with it.

please reply


From: GeekDude [email protected] Sent: 30 June 2018 17:00 To: G33kDude/pyev3 Cc: stephen; Author Subject: Re: [G33kDude/pyev3] how to you get cwiid (#5)

You installed debian/ev3dev to a MicroSD card according to the instructions herehttps://www.ev3dev.org/docs/getting-started/, right? Make sure after installing that your ev3 has access to the internet and that you update the package lists before you try to install anything with the sudo apt-get update command.

Once you have python-cwiid installed you will need to have a python script that will work with new releases of ev3dev. The one in this repository WILL NOT WORK. I usually have to rewrite my code from close to scratch whenever I bring the ev3 out for demos once a year. This is the newest version of the script I could find on my hard drive:

https://gist.github.com/G33kDude/b75e659a89c05619021cc30e96baf7df

Note that this version will probably ALSO NOT WORK out of the box with the most recent version of ev3dev. My ev3 is over 1300 miles away from me and because of that I cannot help to make the script work if it does not.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/G33kDude/pyev3/issues/5#issuecomment-401553373, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al3XzG0Vj5g1s0Rkx2nmjUinU6aattKAks5uB668gaJpZM4UQWT2.

will-chantrey avatar Aug 12 '18 16:08 will-chantrey