/      日本語

Sensor Graph

Operation instructions for the Sensor Graph screen

Windows   macOS   Linux   RasPi

Example of data display

Example of data display

Overview

Various sensor data are recorded in an SQLite database and displayed on the screen in graph format. The database file can also be accessed by external applications.

  • The database uses SQLite (sqlite3) and is stored in the file {MW_STAGE Install}/log/{executable_name}_WSns.sqlite.
  • Screen navigation is [List (with graph preview)] > [24-hour Data] > [Live View].
    • From [24-hour Data], you can further navigate to [Year], [Month], and [Day (with graph preview)] selection screens.
  • About the [Live] display screen:
    • Select a specific node from the list.
    • Displays real-time data every second, showing data from the past 450 seconds.
  • About the [24-hour Data] display screen:
    • Displays data for a specific day.
    • Updates every second; if multiple data points occur during that time, some are thinned out.
    • Except at maximum zoom (1 pixel = 1 second), the average value for the data within each pixel range is displayed.
    • If values exceed the screen, measurement points are shown at the top or bottom edges.
    • If the current time is included, the display updates with new data.
    • Mouse wheel or cursor keys and : zoom in/out on the time axis.
    • Moving the mouse pointer: briefly displays the data corresponding to the time under the pointer.
      • Cursor keys and : move to the adjacent data point.
    • Mouse click & drag: scroll (only when zoomed).
    • When zoomed, scrollbar operation is also possible.
    • The [CSV Export] function outputs all data in the database.

Operations

OperationDescription
Mouse drag
(graph area)
Move the displayed sample position when zoomed.
Mouse drag
(bottom scrollbar)
Move the displayed sample position.
Cursor keys
Move the sample display area.
Cursor keys
Zoom in/out on the sample horizontal axis.
[Live]Switch to the view displaying the latest data updated every second.
[24-hour Data]Switch to the daily graph view.
[<<List]Switch to the list selection screen.
[Year] [Month] [Day]Select a specific date by year, month, and day.
[Latest]Switch to today’s data.
[CSV Export]Export one day’s data to a CSV file.
In the list, [Display]Change the list display mode.
In the list, [Sort]Change the list sorting order.
In the list, [↑]Reverse the list sorting order.

Editing Sensor Node Notes (Supplementary Information)

v1.3.9+

In the “24-hour Data” screen, left-clicking on the sensor node’s note area at the top right of the screen allows you to edit the note using a prompt.

Editing sensor node notes

Editing sensor node notes (IME enabled)

KeyDescription
Normal half-width charactersIf you directly enter normal half-width alphanumeric characters, they are displayed on the screen.
Input via IMEInput from IME is displayed as intermediate characters at the top left of the screen.
Press ENTER to confirm the input string.
BSDeletes the last character displayed.
ENTERReflects the entered string in the database.

Screen Navigation

The basic screens are divided into three types: List, 24-hour, and Live.

[List] <--> [24-hour] <--> [Live]
              ↓↑
          [Year/Month/Day Selection]

Starting Sensor Graph Mode on Launch

Specify 32 in [STAGE Common Settings → Launch App Specification].

About the Database Tables

sensor_data

Stores received data.

Column NameTypeDescription
_uqidINTEGERSequential number used in the database
sidINTEGER
int32_t
Serial number stored as int32_t type.
For example, a serial number “8123abcd” is stored as the integer value -2,128,368,691.
tsINTEGER
int64_t
Timestamp when the system received the packet, stored as int64_t.
UNIX epoch (seconds since 1970).
ts_msecINTEGERMilliseconds part of the timestamp.
yearINTEGERYear part of the local time from the timestamp.
monthINTEGERMonth part of the local time from the timestamp.
dayINTEGERDay part of the local time from the timestamp.
hourINTEGERHour part of the local time from the timestamp.
lidINTEGERIdentifier such as LID assigned by the user.
lqiINTEGERLink Quality Indicator, an estimate of reception strength.
pkt_seqINTEGERPacket sequence number. The range of values depends on the firmware.
pkt_typeINTEGERType of wireless packet.
2 PAL AMB 6 ARIA 1 PAL MAG *3 PAL MOT 5 CUE 0x101 App_Twelite *0x103 App_IO
*Currently unsupported types
valueREALMeasured value (definition varies by packet type).
pkt_type->
2,6: Temperature [°C]
1: Magnet detection (00->No magnet, 01->N pole, 02->S pole)
3,5: X-axis acceleration (average if multiple samples in packet) [G]
0x101,103: Input IO bitmap (same as lower 8 bits of val_dio)
value1REALMeasured value (definition varies by packet type).
pkt_type->
2,6: Humidity [%]
1: Unused
3,5: Y-axis acceleration (average if multiple samples in packet) [G]
0x101: ADC1 [V]
103: Unused
value2REALMeasured value (definition varies by packet type).
pkt_type->
2: Illuminance [lx]
6: Unused
1: Unused
3,5: Z-axis acceleration (average if multiple samples in packet) [G]
0x101: ADC2 [V]
103: Unused
value3REALMeasured value (definition varies by packet type).
pkt_type->
2: Unused
6: Unused
1: Unused
3,5: Unused
0x101: ADC3 [V]
103: Unused
val_vcc_mvINTEGERPower supply voltage [mV]
val_dioINTEGER
int32_t
b0..b7: Values of DI1..DI8 (1 is LOW, 0 is HIGH level)
b24..b25: Magnet value (if b28 is 1): 00->No magnet, 01->N pole, 10->S pole
b28: If 1, magnet data is stored in b24..b25
b31: Periodic transmission bit (magnet only)
val_adc1_mvINTEGERADC1 measurement value for pkt_type->
1,2,3,0x101
val_adc2_mvINTEGERADC4 measurement value for pkt_type->
0x101
val_auxINTEGERFor storing other data
ev_srcINTEGEREvent source
ev_idINTEGEREvent ID
pal_type->
5: Dice (1...6)
16→MOVE etc.Refer to documentation
ev_paramINTEGEREvent parameter

sensor_node

Stores text notes (supplementary information) for sensor nodes.

Column NameTypeDescription
sidINTEGERSID as described above
sid_textTEXTString representation of SID converted to hexadecimal for readability
descTEXT
UTF-8
Note (supplementary information) corresponding to the SID, displayed in lists, etc.

sensor_last

Manages the timestamp of the last received data.

Column NameTypeDescription
sidINTEGERSID as described above
tsINTEGERTimestamp of the last reception
lidExcerpt of data from the last reception below
lqi
pkt_type
value
value1
value2
value3
val_vcc_mv
val_dio
ev_id