Project

General

Profile

Gadgets included in HouseMon base builds

Gadget Version Notes
help 0.9.0 *help command
dbdump 0.9.0 Meant as command line interface to database
dbexport 0.9.0 "
dbput 0.9.0 "
dbget 0.9.0 "
dbkeys 0.9.0 "
dbimport 0.9.0 "
AddTag (F) 0.9.0 When provided a string on .Tag, will turn an incoming message on .In into a tagged message and send on .Out. Tag messages on .In as left unchanged.
*Aggregator 0.9.0 Aggregates /sensor/ data. No *Stddev in this current one
Attach (J) 0.9.0 A Persistent iterator client for database subscriptions
BinaryFill (H) 0.9.0 Given feed data .Len, any messages sent to .In will be expanded to .Len with sequence 0xFF, and reemitted on .Out
CalcCrc16 (H) 0.9.0 Provides a CRC calculation of data sent to .In. CRC16 will be sent as a tagged message on .Out followed by the original input.
Clock (F) 0.9.0 Provide a Duration (e.g “1m30s”) to the .In pin and a message will be sent to .Out every time the duration elapses.
CmdLine (F) 0.9.0 Given specific input on .Type, turn any command line arguments into messages following the .Type instructions.
Concat3 (F) 0.9.0 Waits on each input pin in turn .In1, .In2, .In3 and sends any input to .Out. Messages on .In2 will NOT be processed until .In1 is closed and so forth.
Counter (F) 0.9.0 Counts ALL messages sent to .In and passes them to .Out. When .In is closed the total(int) message count is sent to .Out
DataSub (J) 0.9.0 LevelDB publisher client. Allows notification of database write events via topics specified on .In and resulting data changed sent as tagged messages on .Out. Skips need for a MQTT interface between database and write interested parties.
Delay (F) 0.9.0 Provide a Duration to .Delay pin (“1m30s”) and any message sent to .In will be delayed the specified amount before being sent to .Out
Dispatcher 0.9.0 Specialist gadget for rf12 message handling - probably need replacing with something cleaner
EnvVar (F) 0.9.0 Attempt to use .In contents as name of Environment variable, if found, send contents of ENVVAR to .Out, otherwise send whatever came to .In back to .Out.
FanOut (F) 0.9.0 Every message sent to .In is replicated to all .Out pins. .Out pins use notation .Out: (fan.Out:somename)
FbpParser (J) 0.9.0 Flow syntax parser - work in progress…
Forever (F) 0.9.0 Once started, this gadget waits until the circuit is shut down, doing nothing. Its useful to keep a circuit ‘alive’.
HTTPServer (J) 0.9.0 Creates a Http server. Uses .Port and .Handlers for configuration via Feeds, uses .Out to send specific messages from handlers. For example, any data rec’d from a websocket client can be emitted to .Out if the handler implements it. Note: sub-gadgets wsHead and wsTail are implemented privately within this gadget.
info 0.9.0 help sub-command.
IntelHexToBin (H) 0.9.0 convert any apparent Intel Hex format messages sent to .In to Bin format and emitted on .Out, otherwise pass message through unchanged.
JavaScript (J) 0.9.0 Load javascript via .Cmd, processes .In messages within script if OnIn() implemented, script communication via emitOut to .Out pin
Logger (H) 0.9.0 Specify log directory via .Dir from FEED, log each message sent to .In into a rotational log, when log is cycled, emit name on .Out.
LogReader (H) 0.9.0 Takes a pre built log file name on .Name pin, and extracts line orientated data and emits on .Out pin (.In unused!).
LogReplayer (H) 0.9.0 Acts as a circular buffer of log data sent to .In, re-emitting from its buffer (via .Out) any log lines matching the current time.
LevelDB (J) 0.9.0 A LevelDB interface Gadget, using tagged input on .In and responses via .Out
MQTTPub (J) 0.9.0 A MQTT Publisher client. Use .Port for MQTT broker connection parameter, any Tagged message to .In is published using Tag as Topic and message as data.
MQTTSub (J) 0.9.0 A MQTT Subscriber client. Use .Port for MQTT broker connection parameter, use .In as subscriber topics from circuit Feeds using a tagged message type. Any matching subscriprions will be sent as tagged messages on .Out
MQTTServer (J) 0.9.0 An MQTT Broker, using .Port as input configuration, which is echoed to .PortOut once the server is running.
mqttpub (J) 0.9.0 Meant to be used as a sub-command via CLI, but needs attention (a.Type)
mqttsub (J) 0.9.0 Meant to be used as a sub-command via CLI, but needs attention (a.Type)
NodeMap (H) 0.9.0 Configuration is via .Info pin. Any message sent to .In is matched against an internal lookup to resolve the node to location sttributes. If resolved, additional messages are added to the output pin .Out for further downstream processing.
Node-homePower (H) 0.9.0 RF12 message decoder used via
Node-ookDcf (H) 0.9.0 "
Node-p1scanner (H) 0.9.0 "
Node-radioBlip (H) 0.9.0 "
Node-roomNode (H) 0.9.0 "
Node-smaRelay (H) 0.9.0 "
Node-ookRelay (H) 0.9.0 "
Pipe (F) 0.9.0 Whatever is sent to .In is passed on to .Out
Printer (F) 0.9.0 Prints the message to console using format specified ‘%+V’
PutReadings (H) 0.9.0 Collect map[string]message reading data and emit as a tagged /reading/ message (used as topic/data by database/mqtt)
ReadFileJSON (F) 0.9.0 if .In is a string that represents a readable text file, open and send tag message . If JSON can be parsed, send files contents as next message, otherise send whatever can on .In to .Out.
ReadFileText (F) 0.9.0 if .In is a string, attempt opening as text file, emit tag message , then terminated lines, then tag message via .Out pin, otherwise if not string, pass message through unchanged. i.e if .In string represents a readable text file name emit multiple .Out messages as file contents, otherwise send what came on .In to .Out.
Readings (H) 0.9.0 Attempt to collect tagged messages into single map[string]message format, re emit collection on .Out.
Repeater (F) 0.9.0 All Messages EXCEPT Tag messages sent to .In are repeated to .Out times. Feed .Num takes integer
RpcHandler (J) 0.9.0 A Generic Demo RPC Handler. .In messages and handled and results sent to .Out.
SerialPort (J) 0.9.0 Uses .Port to specify serial port @ 57600bps, All messages sent to .From are line orientated data read from serial port using line terminator. The terminator is not send in the message. Any input sent to .To is forwarded to serial port after some specific preprocessing. Strings sent with added linefeed , byte arrays sent as-is, and integer pulses to DTR pin for milliseconds, a bool toggles RTS.
Sink (F) 0.9.0 Eats ANY message
Sketch-RF12demo (H) 0.9.0 takes expected line orientated serial data (from serial!) and performs basic first stage parsing, emitting subsequent messages on .Out with tagged message format containing node information. Additional ‘state’ information that can be used down-stream is also emitted on .Oob pin containing the overall device parameters etc. Unrecognised output is sent to .Rej
SketchType (J) 0.9.0 Looks for ‘[]’ within message, if found, creates a tagged message on .Out, otherwise passed on message to .Out unchanged.
SplitReadings (H) 0.9.0 Designed to take a ‘/reading/’ tagged message format via .In from PutReadings and split to create individual /sensor/ style tagged messages with are emitted on .Out
Timer (F) 0.9.0 .In takes a Duration (such as ‘1m30s’) and emits the int64 tick value on the .Out pin after the duration expires
TimeStamp (F) 0.9.0 for each .In message, resend the message after first injecting an additional message with the current Timestamp. This results in first sending the Timestamp message and immediately followed by the original message.
Waiter (J) 0.9.0 composite circuit
WebSocket-default (J) 0.9.0 This is a alias for ‘Pipe’
WSLiveReload (J)* 0.9.0 Added node.js live reloading from commandline semaphore, (included as push request)