add some help urls and tooltip 📚
This commit is contained in:
parent
059f4534ec
commit
f9d90f4375
@ -4,6 +4,7 @@ import { getColour } from "../helpers/colour";
|
||||
Blockly.Blocks["sensebox_phyphox_init"] = {
|
||||
init: function () {
|
||||
this.setColour(getColour().phyphox);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.sensebox_phyphox_init)
|
||||
.appendField(new Blockly.FieldTextInput("Geräte Name"), "devicename");
|
||||
@ -37,6 +38,7 @@ Blockly.Blocks["sensebox_phyphox_experiment"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_experiment_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@ -77,6 +79,7 @@ Blockly.Blocks["sensebox_phyphox_graph"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_graph_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@ -86,6 +89,7 @@ Blockly.Blocks["sensebox_phyphox_timestamp"] = {
|
||||
this.appendDummyInput().appendField(Blockly.Msg.sensebox_phyphox_timestamp);
|
||||
this.setOutput(true);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_timestamp_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@ -107,6 +111,7 @@ Blockly.Blocks["sensebox_phyphox_channel"] = {
|
||||
|
||||
this.setOutput(true);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_channel_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@ -129,6 +134,7 @@ Blockly.Blocks["sensebox_phyphox_sendchannel"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_sendchannel_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@ -141,5 +147,6 @@ Blockly.Blocks["sensebox_phyphox_experiment_send"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_experiment_send_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
@ -159,6 +159,7 @@ Blockly.Blocks["sensebox_lora_ttn_mapper"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_lora_ttn_mapper_tip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_lora_ttn_mapper_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -15,7 +15,7 @@ Blockly.Blocks["sensebox_osem_connection"] = {
|
||||
init: function () {
|
||||
var ssl = "TRUE";
|
||||
this.setTooltip(Blockly.Msg.senseBox_osem_connection_tip);
|
||||
this.setHelpUrl("");
|
||||
this.setHelpUrl(Blockly.Msg.senseBox_osem_connection_helpurl);
|
||||
this.setColour(getColour().sensebox);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.senseBox_osem_connection)
|
||||
|
@ -27,7 +27,7 @@ export const BLE = {
|
||||
sensebox_phyphox_graphStyle: "Stil",
|
||||
|
||||
sensebox_phyphox_init_tooltip:
|
||||
"Initialisere das Bluetooth Bee. Stecke diese auf dem Steckplatz **XBEE1**. Gib dem Phphox Messgerät einen eindeutigen Namen, damit du dieses in der App wiederfindest",
|
||||
"Initialisere das Bluetooth Bee. Stecke diese auf dem Steckplatz **XBEE1**. Gib dem Phyphox Messgerät einen eindeutigen Namen, damit du dieses in der App wiederfindest",
|
||||
sensebox_phyphox_experiment_tooltip:
|
||||
"Erstelle ein Experiment und vergib einen eindeutigen Namen und eine kurze Beschreibung. Füge bis zu 5 verschiedene Graphen in der Ansicht hinzu. ",
|
||||
sensebox_phyphox_graph_tooltip:
|
||||
|
@ -54,4 +54,6 @@ export const LORA = {
|
||||
|
||||
sensebox_lora_ttn_mapper_tip:
|
||||
"Mit einem TTN Mapper kannst du die LoRa-Netzabdeckung in deiner Umgebung aufzeichnen. Die Daten werden dann auf [ttnmaper](https://ttnmapper.org) angezeigt. Den notwendigen Decoder findest du [hier](https://gist.github.com/felixerdy/f959ac03df98c6947f1c7f35d537f23e#file-decoder-js).",
|
||||
sensebox_lora_ttn_mapper_helpurl:
|
||||
"https://sensebox.de/projects/de/2020-03-06-ttn-mapper",
|
||||
};
|
||||
|
@ -2,8 +2,11 @@ export const OSEM = {
|
||||
/**
|
||||
* openSenseMap
|
||||
*/
|
||||
senseBox_osem_connection_tip: "stellt eine WLAN verbindung her",
|
||||
senseBox_send_to_osem_tip: "sende Messwert an",
|
||||
senseBox_osem_connection_tip:
|
||||
"Verwende diesen Block, um deine senseBox mit der openSenseMap zu verbinden. Registriere deine senseBox auf der openSenseMap und trage die IDs und den API-Schlüssel ein. Verwende anschließend den Block ***Sende Messwert an die openSenseMap*** und die Sensor-ID, um die Messwerte zu übertragen.",
|
||||
senseBox_osem_connection_helpurl: "https://www.opensensemap.org/",
|
||||
senseBox_send_to_osem_tip:
|
||||
"Sende mit diesem Block Messwerte an die openSenseMap. Verwende pro Messwert einen Block und trage die zugewiesene Sensor ID ein",
|
||||
senseBox_send_to_osem: "Sende Messwert an die openSenseMap",
|
||||
senseBox_osem_connection: "Verbinde mit openSenseMap:",
|
||||
senseBox_osem_host: "opensensemap.org",
|
||||
|
@ -28,7 +28,9 @@ export const BLE = {
|
||||
sensebox_phyphox_graphStyle: "style",
|
||||
|
||||
sensebox_phyphox_init_tooltip:
|
||||
"Initialise the Bluetooth Bee. Plug it into the **XBEE1** slot. Give the Phphox meter a unique name so you can find it in the app",
|
||||
"Initialise the Bluetooth Bee. Plug it into the **XBEE1** slot. Give the Phyphox meter a unique name so you can find it in the app",
|
||||
sensebox_phyphox_helpurl:
|
||||
"https://sensebox.de/projects/de/2021-12-21-verbindung%20mit%20der%20phyphox%20app",
|
||||
sensebox_phyphox_experiment_tooltip:
|
||||
"Create an experiment and give it a unique name and a short description. Add up to 5 different graphs in the view. ",
|
||||
sensebox_phyphox_graph_tooltip:
|
||||
|
@ -3,9 +3,11 @@ export const OSEM = {
|
||||
* openSenseMap
|
||||
*/
|
||||
|
||||
senseBox_osem_connection_tip: "connect to the openSenseMap",
|
||||
senseBox_osem_connection_tip:
|
||||
"Use this block to connect your senseBox to the openSenseMap. Register your senseBox on the openSenseMap and enter the IDs and the API key. Then use the block ***Send reading to the openSenseMap*** and the sensor ID to transfer the readings.",
|
||||
senseBox_osem_connection_helpurl: "https://www.opensensemap.org/",
|
||||
senseBox_send_to_osem_tip:
|
||||
"sends the measurement to openSenseMap. Make shure to enter the correct BoxID and SensorID",
|
||||
"Send measured values to the openSenseMap with this block. Use one block per measurement value and enter the assigned sensor ID",
|
||||
senseBox_send_to_osem: "Send measurement to openSenseMap",
|
||||
senseBox_osem_connection: "Connect to openSenseMap",
|
||||
senseBox_osem_host: "opensensemap.org",
|
||||
|
Loading…
x
Reference in New Issue
Block a user