Coder Social home page Coder Social logo

turris-gadgets's Introduction

TURRIS:GADGETS demo

Code in this repository is related to the TURRIS:GADGETS project. It is written in Python, which is available by default on router Turris.

Demos

gadget_command.py
Send individual commands to the TURRIS:DONGLE using this utility. You can use it to register individual sensors with the dongle.
gadget_echo.py
Listen to messages received by the dongle.
net_echo.py
Listens to messages received by the dongle and passes them to given IP addresses in UDP datagrams. net_collect.py may be used to capture the messages.
net_collect.py
Simple client which receives messages sent by net_echo.py as UDP datagrams and prints them out.
thermometer.py
Collect temperature measurements from a TP-82N thermometer and store them in a CSV file thermometer.csv. Also uses thermometer.html which may be used to display the collected data in a simple but nice JavaScript chart.
zeromq_echo.py

Another simple echo client. This time it uses ZeroMQ (a very nice broker-less message queue for message transport). See zeromq_collect.py for more details.

Requires the pyzmq external library.

zeromq_collect.py

ZeroMQ client receiving data from zeromq_echo.py. Serves as a demo of an application where the messages may be distributed to several clients, courtesy of ZeroMQ.

Requires the pyzmq external library.

device.py
Not a demo in itself. This is a simple communication library which is used by the other demos.

How to configure Turris for the dongle

The TURRIS:DONGLE uses an USB to serial converter from FTDI. Because of this, the required kernel module must be installed for the communication to work and the /dev/ttyUSBx device to appear.

The module to install is kmod-usb-serial-ftdi. You can do it from the command line:

opkg install kmod-usb-serial-ftdi

turris-gadgets's People

Contributors

sairon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.