jump to navigation

SvxlinkWrapper – Wrapper for SvxLink to provide additional functionally such as QSO logging and auto-connect May 17, 2012

Posted by GuySoft in Hamakor, ITU, linux, open source, programming, python.
Tags: , , , ,

Hey all,

A short post to announce a small piece of software I released today on github for the ham radio people.
I give you SvxlinkWrapper, this wrapper sits on top of Svxlink‘s stdout and stdin and processes it with python. Making it easy to add more advance features to Svxlinik. Since Svxlink is written in C++ and takes a while to compile, this wrapper really speeds up development. Furthermore, it uses straight.plugin making its simple to write more modules by extending SvxlinkwrapperModule and placing it in the modules folder.

Currently the to modules that SvxlinkWrapper has are for auto-connect to Echolink nodes on startup and another for a QSO logger for Echolink connections. There is also a module that should let you send commands over the Echolink chat, if you extend it. This lets me open and close repeater connections directly from the Echolink chat box.

Thats it for today, now that I have more free time, I hope to publish more things, 73

TEDding from the car – gPodder video Plugin for Rockbox April 7, 2011

Posted by GuySoft in Crictor, diy, Electronics, ipod, ITU, linux, open source, podcast, programming, python.
Tags: , , , , , , , , , ,
TEDing from the car

TEDing from the car

Hey all,
After a few weeks of bouncing emails with Thomas Perl I am happy to announce that we have a working plugin for his wonderful podcast application called gPodder. With this plugin installed, any mp4 video podcast that is downloaded with gPodder is automatically converted to a format playable by rockbox MPEG player plugin. Effectively meaning seamless sync of video podcasts to any rockbox enabled device. I am specifically using the Sansa fuze player, but just changing the screen resolution at the top of the plugin should make it work with any other rockbox device, and with the right screen size. The final product for me of all this technical stuff is that I can listen to TED lectures in the car. Or using the verb was coined by my friend Uzair “TEDding” from my car.

How to Install

  • First you should have gPodder installed (available also as “apt-get install gpodder” or any other distribution install equivalent).
  • Second you will need these packages installed too:
     apt-get install python-kaa-metadata  ffmpeg python-dbus
  • Now all that is left is to copy this script to
    mkdir -p ~/.config/gpodder/hooks/
    cp rockbox_mp4_convert.py ~/.config/gpodder/hooks/
  • If your are using a different player from the Sansa Fuse, modify the first lines to your screen resolution:

    make sure to include the .0 at the end.

  • Thats it! Now each time video is download, for example from the TEDTalks Video Podcast it would be converted on arrival, and relinked as the file to be synced.

As usual, I would love to hear feedback from users and suggestions.


Build your own Free SMS to Twitter gateway with open source tools and cheap hardware March 27, 2011

Posted by GuySoft in Crictor, diy, Electronics, Hamakor, IGF, ITU, linux, open source, programming, python.
Tags: , , , , , , , ,
SMS Twitter Gateway

SMS Twitter Gateway logo

Hey all,

I am releasing here set of instructions and source that will enable anyone to set up a phone number, that if you SMS it, will post your massage on to your own twitter account. This service is called “Twiter SMS Gate”. The service handles multiple users, and should be easily modified to support other services like statusnet (and with a bit more code maybe even other social networks). The SMS hardware required is any cheap cellphone that can work with gammu-smsd (mine is a fake Nokia from India). Twiter SMS Gate also lets users easily register to it with their own cellphone.

I hope that people that like this idea would start hosting more SMS gates, as we create a wide network of those around the world. SMS Twitter Gate-IL , The Israeli Gate, has been running for a few weeks now and even got covered in the local media here.

The source is written in Python, which includes the phone hardware hooks, webserver, twitter client and database access.

Here is the cellphone used to run my server, just to show you how simple it is to do this, no super-expensive hardware required! (server is also my personal Linux-running PC:

Fake Nokia Cellphone acting as a dedicated SMS server

Fake Nokia Cellphone acting as a dedicated SMS server

If you have any kind of difficulty setting this up, please give me feedback, so we can make it as easy as possible.

3arabi – Arabic chat to English translator December 4, 2010

Posted by GuySoft in Crictor, Hamakor, ITU, open source, programming, python.
Tags: , , , , ,
3arabi Logo

3arabi Logo

Hi聽 all,

As some might have noticed, Arabic speakers on the net use a form of writing called ‘Arabic chat‘ or 3arabi, which involves using Latin characters and Hindu-Arabic numerals to write words in Arabic. I wrote a small service called 3arabi that lets you translate this Arabic chat directly to English.

Apparently there are tools to do transliteration (converting Latin letters back to Arabic), and also translation. But nothing that does them both. That is why I wrote a small script that uses Google’s transliteration service and ‘Google Translate’. This does the job, but is not perfect, however, it does actually help me understand some messages.

The source is also available in GitHub (its in python). If anyone contributes better code I’ll merge it back to the service.

Thanks to Ira Abramov for hosting the service!

Thanks to Rajesh who wrote the transliteration API though after using it I moved to the javascript google tool with his help.

Thanks Muhammad Khatib who wrote Google Translate python API and for releasing it.



Update: Google seem to be blocking the translation service, thinking its spam, if anyone knows how to contact them and asking them to lift that ban would be appreciated.

Using CHDK to photograph blackboards in University Courses August 5, 2010

Posted by GuySoft in Crictor, diy, Hamakor, ITU, linux, open source, programming, python.
Tags: , , , , , ,
CHDK in University

CHDK used in university for capturing blackboards

Hi all,
During last semester I developed a set of scripts that lets me photograph pictures of the blackboards during my university courses, categorize them while I am taking them and automatically generate PDF document for each course week. Because physics equations are not the simplest things to input in to a laptop in realtime, I have developed the following method. I am writing the post because I have a feeling this tool could help people in many ways, since it did change how I study in lectures.

You can see my blackboard photographs here (and here is a simple pdf example, if you get lost in the Hebrew).

How it works in a nutshell

The Work Flow

The work flow - photograph, store, generate pdfs

During the lesson I take the photographs of the blackboard with a script I wrote for CHDK. In the script you set the course and week of the semester and this is stored per-picture on the SD card.

Bumble-B and an ADC with OpenGL make an oscilloscope February 22, 2010

Posted by GuySoft in Crictor, diy, Electronics, Hamakor, ITU, linux, open source, programming, python.
Tags: , , , , , , ,

Hi all,

During my small semester break I managed to connect my Bumble-b chip to an analog-digital converter (ADC).

With this I can read voltage changes and send the information to the computer to plot live.

Here is a demonstration video:

How its all connected


Pidgin and X-chat plugins to execute a command on new messages February 14, 2010

Posted by GuySoft in Crictor, Hamakor, ITU, linux, open source, programming, python.
Tags: , , , , ,

Hi all,

A while ago, when I coded message alert plugins for pidgin and X-chat so each time I get a new message my bumble-b LED display would flash, so I thought I might release the code here for people to use.

Both plugins will execute a command of your choice when receiving a new message.

Thanks to Simo Mattila who wrote the base code for the pidgin plugin 馃檪

  • Source code for the pidgin plugin
    • You will have to follow the README file and compile the plugin. Then place the created .so file in ~/.purple/plugins/ .
    • In the plugin menu there would be a configuration window to set the command.
  • Source code for the X-chat plugin
    • You will have to set the command inside the python file. Then copy it to ~/.xchat2/
    • The X-chat plugin also is able to return the name of the user that sent the message.

Here is a video of the X-chat plugin in action:

I hope to find more time to posts the things I am doing, but as usual, university takes up all my time. Stay tuned

Nokia N810 Running OLPC Sugar May 1, 2009

Posted by GuySoft in Crictor, Hamakor, ITU, linux, Maemo, olpc, open source, python.
Tags: , , , , ,
Sugar running on the Nokia N810
Sugar running on the Nokia N810

Hey all,
This past week I managed to do something quite interesting. I got聽sugar, running on my Nokia N810, compiled for armel.

The trick that made it work was thanks to easy Debian chroot, that got me access to installing sugar without a few good hours of compilation for arm (and I did that before).

Touchscreen is cool!

The first thing that I found pretty neat was running sugar on a touchscreen device. It really felt better, since most people that I let play with my XO and flip its screen 180 degrees naturally try touching the screen, expecting it had a touchscreen. Sugar was actually quite good with it on the Nokia.


A script to Slice, Encode and Upload videos to Youtube April 17, 2008

Posted by GuySoft in Crictor, Hamakor, linux, open source, podcast, programming, python.
Tags: , , , ,

In the past few days, I wrote a script that will take basically any video file, chop it to equal parts under 10 minutes, and upload the result to youtube.

The effect is that I can publish all of my video podcast to youtube, without the long and painful chopping and uploading of files via a browser.

I based the uploading on a perl script from catonmat. I wrote my extension in python.

Here is a link to the sourcecode (under GPL license)

I would love to receive feedback, and improvments.

PSP Enc – Encoding video for PSP / ipod under linux GUI November 27, 2007

Posted by GuySoft in Crictor, Hamakor, ipod, linux, open source, podcast, programming, psp, python, wxpython.
Tags: , , , , ,

Hello all,

I am starting to work on the first Israeli video podcast, and we are now trying to figure out what format to publish it under. While pondering about this, I wrote a graphical program that will let you convert Video files for PSP format. And it should also run on iPods (however the screen resolution is specifically for PSP).

PSP Enc picture

The program uses a command I found somewhere (you can see it in the code). The GUI is written in wxpython, which I just started learning not long ago. It is really useful for these small apps.

The requirements to get this working are:

  • python
  • ffmpeg
  • python-wxgtk2.6

To run it just type:
python pspenc.py

You can download the program here