Skip to content

Adding modules to the log viewer

Arjun V edited this page Mar 3, 2022 · 2 revisions

To add an Arduino to the log viewer web UI, navigate to the Fusor/js/visualization.js file. Then, find the vizChannels variable. Add a line that looks like this:

    'GENERIC.a0': {name: 'MQ-8', shortname: 'MQ-8', unit: 'Volts', factor: 1, min: 0, max: 5, type: "continuous", datatype: "numeric", graph: "yes"}

Here are what the various properties refer to:

name - the name

shortname - the short name

unit- the unit of measurement for that item

factor - whatever to multiply the input reading by to get the output, a value of 1 won't scale it at all

min/max - The minimum and maximum possible readings for this item, used to calculate the percent

graph - Whether or not to display this reading on the graph

Clone this wiki locally