Tag Archives: python

Raw sockets with Python

What do you do if you want to see if you are receiving any packets on specific network port, well you could use a tool like TCPDump – or you could do something using a short python script. Advertisements

Posted in Networking, Programming, Uncategorized | Tagged | Leave a comment

Generating Checksums using Python

I decided to put together a short python script to generate (and eventually check) a checksum for one or more files.

Posted in Programming | Tagged | Leave a comment

Dates and Locale settings in Python

Just a few notes on how date and time formats can be affected by the locale setting in python.

Posted in Linux, Programming | Tagged | Leave a comment

Python Dates Times and Timezones

Dealing with time zones is hard, you may know what time zone you are in but what happens when you want to convert your local time to that in another timezone?

Posted in Debian, Linux, Programming, Raspbian, Ubuntu | Tagged | Leave a comment

Pycon WiPy boot script

I use the following python script to connect automatically to my wireless network, set the time and configure the FTP service on my device.

Posted in PyCom | Tagged | Leave a comment

Manually configuring the network on my WiPy

When I received my Pycon WiPy 2.0 board the first thing I did was to work out how to connect it to my network, normally you would do this automatically in the ‘boot.py’ script but before you an update this … Continue reading

Posted in PyCom | Tagged | Leave a comment

Displaying a list of the named colours available in Pygame

When using pygame it seems a good idea to use named colours as this makes it a little more obvious what is going on.

Posted in Programming | Tagged , | Leave a comment

Rainbows on a WiPy 2.0

Having got my WiPy connected to my Wireless network I wrote the following script mainly as a way of testing the process of updating main.py (which is the python script that is executed automatically when the4 WiPy 2.0 finishes booting), … Continue reading

Posted in Hardware, PyCom | Tagged , | Leave a comment

Connecting my WiPy to my WiFi

By default the WiPy 2.0 advertises it self as a wireless access point with a default SSID, IP address, username and password. This makes sense as the factory default since unless you use the USB serial console the only way … Continue reading

Posted in Hardware, PyCom | Tagged , , | Leave a comment

Python and the Internet of things with a WiPy 2.0

While browsing the RS catalog the other evening (I lead an exciting life) I came across the WiPy 2.0. It is most certainly NOT the same sort of beast as a Raspberry Pi but it isn’t meant to be! It … Continue reading

Posted in Hardware, PyCom | Tagged , | Leave a comment