Skip to main content

It is a module to make easier communication with MySensor's network.

Project description

It is a set of tools to iniate MySensor’s sketches (nodes and gateways) which can be compiled out of box. You also can compile, upload (you need to download Arduino IDE, it uses its tools to compile and upload) your sketches and connect to your MySensor’s network and get some status of it.

Dependencies

You may see all the dependeciens inside requirements.txt

or can use:

$ pip install -r requirements.txt

Install

$ sudo python setup.py install

Usage

This tool has, currently, three commands (create, compile and upload). You can use -h option in all commands to see their usage.

Creating sketches

You can create sketches using simple commands.

Creating a node sketch with default name (node)

$ mysbox create node

Creating a node sketch with a different name, internal sketch name and version

$ mysbox create node my_light -n “My Light” -v 1.1

Creating a gateway sketch with default name (gw_node)

$ mysbox create gw

Compiling

You also can compile your sketches using this tool. After you’ve executed any command of mysbox, it should create an settings file in your home folder (~/.mysboxrc). In that file, all settings are required.

You must install MySensors library in any folder that you put into .mysboxrc

Listing all available boards

$ mysbox compile -l

Compiling a simple node to Arduino Uno

$ mysbox compile -b uno node/node.ino

Uploading

You also can upload your sketches using this tool. After you’ve executed any command of mysbox, it should create an settings file in your home folder (~/.mysboxrc). In that file, all settings are required. However for this command, only arduino_tools is required.

Listing all available boards

$ mysbox upload -l

Compiling a simple node to Arduino Uno

$ mysbox compile -b uno node/build_mys/node.ino.hex /dev/ttyUSB0

Support

It was only tested on Linux envrionment. However, it should work on Windows and OS X systems. Operating System: - Linux

It was only tested with Python 3.4, but it should work with any Python 3.x. Python Version: - 3.4

What’s news

  • Support to create node and modify some arguments

  • Support to create serial

  • Support to compile sketch using arduino ide tools

  • Support to upload hex file using arduino ide tools(avrdude)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysbox-0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

mysbox-0.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file mysbox-0.1.tar.gz.

File metadata

  • Download URL: mysbox-0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mysbox-0.1.tar.gz
Algorithm Hash digest
SHA256 54efb2bfbd9e6e93d57891fe1c1d712a67ce0185e7298fd0ae07d24397f7e6bf
MD5 f97d2fa64e3f58a6363683029cc3a3d2
BLAKE2b-256 235e9c681e08561f9c30df8fdab43dd60c993f434ec105d7cbcdb1e52efb265d

See more details on using hashes here.

File details

Details for the file mysbox-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mysbox-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa55dfee8c15896f3dc71139f2f47a76df8a9e7539cd087c75d6a5b9717c2d9b
MD5 0d5a46427ccb7e3e9bf4d5c372142016
BLAKE2b-256 ba78d3acae2a5db5477e0abc7b35c0733d95ac0af2cd89ed38ee9eb9d55b70f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page