@Lazar-Demin thank you!
Posts made by Massimiliano della Rovere
-
RE: libusb e pyusb
Hi @Boken-Lin !
Are there any plans to include pylibusb and one of its backends in the next firmware? (I found no mentions of it int changelogs).Thanks.
-
RE: Mini Dock has a problem
Is that the new mini dock?
The on/off switch seems to have a perpendicular angle to the onion side.
-
RE: libusb e pyusb
@Boken-Lin The pyusb library supports 3 backends:
- libusb 0.x
- libusb 1.x (this one is in the Onion Omega firmware already)
- openUSB
The library has some code that needs to be compiled.
-
RE: Python 3.4.3 and sockets
@Jarl-U-Christian-Persson It's worth to say that I'm using external USB storage [1] to install all the python3 modules available[2][3] through opkg [4].
May be you are missing some modules? double check it.[1] https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs - "option extroot with pivot-overlay"
[2] List all the python3 packages available in the repository:
opkg find '* python3 *' (remove the spaces before and after the *)
[3] List of all the python3 packages installed:
opkg list-installed | grep python3
-
RE: Python 3.4.3 and sockets
I receive a very different error.
root@Omega-09E9:/proc# oupgrade -version
Device Firmware Version: 0.0.6 b26
root@Omega-09E9:~/test# python3 --version
Python 3.4.3
root@Omega-09E9:~/test# cat test.py
import socket
import encodings.idna
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostname()
port = 9999
s.bind((host, port))root@Omega-09E9:~/test# python3 test.py
Traceback (most recent call last):
File "prova.py", line 6, in <module>
s.bind((host, port))
socket.gaierror: [Errno -2] Name or service not knownIn my case the error is caused by the fact that the hostname cannot be resolved by any DNS.
A simple solution is adding it to /etc/hosts.
root@Omega-09E9:~/test# cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 Omega-09E9 -
RE: Any techies/writers here interested in writing a e-book for the Omega?
Well I think there are 3 big sections when interacting with the onion:
- OpenWRT (and its differences comparared to a standard linux distribution)
- Peculiar Onion Stuff (the serial console, all its hardware and expansions - datasheets, libraries in the various languages to program them, usb and bluetooth programming, etc)
- Breadboard and electronic components knowledge
-
libusb e pyusb
For the next upgrade it would be nice to have the pyusb package available:
https://github.com/walac/pyusbIt is great, if not essential, to interact with the usb ports in python.
PS also pip3 python-setuptools3 would be nice.
-
RE: List of webcams that don't work
There are no specifications on the logitech website:
http://support.logitech.com/en_gb/product/quickcam-notebookTry using this webcam with (mjpeg) and without (YUV) -y switch with mjpeg-streamer to see if you manage to stream live video
-
RE: Python 3.5 upgrade
@Rudy-Trujillo I'm already using a root FS and installed python.
My post is about the version of python compiled for the OpenWRT distribution (3.4.x instead of 3.5.x)
-
RE: Attached Web cam now what
@Rudy-Trujillo said:
Logictech Truesound
can you please write the exact model?
usually the logitech cams feature a built-in mic; in this case make sure to load the usb sound kernel modules.
this page is a good starting point to find which ones are necessary: https://community.onion.io/topic/377/using-a-usb-sound-card/1 -
RE: List of webcams that don't work
@Theodore-Borromeo you can try the -y switch for that camera: https://wiki.ubuntuusers.de/MJPG-Streamer/ even though, as @Boken-Lin wrote, it will use lots of CPU power.
-
RE: Using the Thermal Printer in Italy
In case anybody wonders what's the name/code of transformer plugs to buy or order them online:
https://en.wikipedia.org/wiki/IEC_60320#Appliance_couplers -
Using the Thermal Printer in Italy
The Thermal Printer transformer power plug is not compatible with the wall power sockets we use in Italy:
Types C, F and L, also know as CEI 23-34 and CEI 23-50 with Residential voltage of 230V @ 50Hz.https://en.wikipedia.org/wiki/Mains_electricity_by_country#Table_of_mains_voltages_and_frequencies
I wonder if the power transformer is multi-voltage and multi-frequency, so the only thing I have to do is changing small cable that plugs in the transformer itself and in the wall.
-
RE: List of webcams that don't work
http://www.acmesystems.it/video_streaming claims the followingf webcams to be compatible:
Microsoft Lifecam HD-3000
Microsoft Lifecam HD-5000
Microsoft Lifecam Cinema 720p HD webcam
Microsoft LifeCam Studio 1080p HD
Logitech Webcam C250 1.3 megapixel webcam
Logitech QuickCam Sphere AF. Motorised 2-megapixel HD sensor webcam with Carl Zeiss optics. -
RE: List of webcams that don't work
@Rudy-Trujillo Just write an email to Logitech asking for specs, I had a problem in the past with a webcam and linux and they were very kind and replied.
It seems that the camera must be UPNP, be an UVC [1] device and support mjepg format for output.
@Boken-Lin are there other limitations? -
Python 3.5 upgrade
Greetings,
I'm planning to write a small event-driven server library to manage some sensors I bought.
Given the overhaul that the asyncio (event driven server) python module received in version 3.5, I'd like to use it rather than the current in 3.4.3 version.Are there any plans to upgrade python to version 3.5 in the near future?
Thanks,
Massimiliano