Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Scratch Connect :An extension for speed communication between Scratch on internet or local network
- Editsira
-
New Scratcher
16 posts
Scratch Connect :An extension for speed communication between Scratch on internet or local network
You can communicate with speed between scratch (off line). Two methods : on a local network ou via internet. A MQTT broker can be use for free easily. The extension is free for use.
Here is the google traduction of the french “documentation”. This sofware is in french, but if there is some persons interested, an english version can be made. It's a beta version.
Download link : http://uptobox.com/rccpc5fj26u4 (free inscription)
Here is the google traduction of the french “documentation”. This sofware is in french, but if there is some persons interested, an english version can be made. It's a beta version.
Download link : http://uptobox.com/rccpc5fj26u4 (free inscription)
Installation instructions.
___________________
1- Download the ZIP ScracthConnect.zip on the provided link.
2- Check that Java is installed:
To do this, execute (menu start) type cmd. A window
Opens. You type “java -version”. If the order
Does not exist or the version is earlier than 1.8, install
Java on your computer in its latest version 1.8.xxx.
The Link: https://www.java.com/en/download/
3- Unzip the Scratch file to a directory you create
wherever you want.
4- The contents of the directory are as follows:
- this document: install.txt
- a java executable file: ScratchConnect.jar,
- a document SRB9999.txt which details the very general content of the
The version (Software Release Bulletin)
- a Scraconnect.s2e file: the extension to load in Scratch off
Line. Make Shift + menu on Scratch, you will see a hidden menu that is
“Import HTTP experimental extension”. The block appears in the blocks
“Add blocks”
- sample files send.sb2 and reception.sb2
- and that's all, it is missing the doc being drafted.
5- Here we go. You click the java program. After launch, there is a
Icon in the spot bar, the “tray”, uhhh, bottom right. You click
Right and you will have several menus that you can explore. Most important
Is “Details”, I let you discover all the functions.
6- Discover the application, if several scratch are on the same network,
They will be able to communicate. You also have a possibility to log in
Between post by internet: named Mqtt Cloud. In local no configuration, …
7- To verify that everything is OK, you have two indicators. The first is
The Scratch Connect icon that “runs” if everything is OK. The second is in Scratch,
In “Add Blocks”, the extension has a small indicator that is green if the
Link is OK with Scratch.
8- You have two examples of Scratch, simplistic but which will allow you
To familiarize yourself with the extension.
9- There is no real documentation, I know.
Small documentation
____________________
Some infos all the same:
COMMANDS (no wait, they are asynchronous, you get the hand
Right away, it's for performance)
- “setuser” is mandatory, it will be sent with messages during the
Sendmessage and recovered by the data “muser” for the receiver (s), and in the
Given “user” for the issuer.
- “settopic” allows to give a name to the exchanges, only the scratch of the same
Name of tpoic exchange messages, retrieved in the data “topic”
- “setoption” for future use, will enable you to know if you want to receive
Own messages, so option other or everyone,
- “sendmessage” to send the message, if you want the return to be
Analyzed and cut into word (s), use the semicolon separator, twice either ;; who
Separates the words (avoids unpleasant work in Scratch).
SENSORS or DATA
- “user” contains the name given by “setuser”,
- “topic” contains topic, topic, … which allows to differentiate subjects
And to receive only messages emitted under this topic. Positioned by “settopic”,
- “message” which contains the message sent by “muser” on the topic it has chosen
- “word1”, “word2”, “word3” which contains the words of the detection message of the separator ;;
NOTE BENE: I know it would be useful to have a block “when a message arrives
On a topic ”, but the Scratch Http interface does not allow it. It works in
Client Http, ie one can only reply to him, never send him data
By initializing an exchange. A small user block can be written easily with a
Infinite loop, not pretty, pretty but good …
Good use. You can post comments on the French forum here, or
Send messages to
“Scratchconnect.extension@gmail.com”
.
Terms of use :
This software is free of right and use and will remain so. It contains software
Open Source and other community components. There is no liability
Of the creator in the use made of it, nor in the eventual effects caused
Directly or indirectly through him
- xero_sense
-
Scratcher
1 post
Scratch Connect :An extension for speed communication between Scratch on internet or local network
DANG THATS COOL!
- Discussion Forums
- » Developing Scratch Extensions
-
» Scratch Connect :An extension for speed communication between Scratch on internet or local network

