View source: R/add_infrastructure.R
add_infrastructure | R Documentation |
This function adds infrastructure to the DataMuster MongoDB database. You can only access this function if you have read and write permissions.
add_infrastructure(
property,
paddock,
infstype,
assetID,
filename,
active = NULL,
training = NULL,
telemetry = NULL,
date = NULL,
username = NULL,
password = NULL
)
property |
the name of the property to add the infrastructure |
paddock |
the name of the paddock to add the infrastructure |
infstype |
the infrastructure type (e.g. Walk-over-Weighing Unit, EID Reader, Water sensor) |
assetID |
the asset identification number |
filename |
the name allocated to the ALMS unit |
active |
TRUE if the infrastructure is actively recording data or FALSE if the infrastructure is not yet recording data, default is TRUE |
training |
only applicable for Walk-over-Weighing Units, TRUE if the herd is currently under training or FALSE if the herd is already trained, default is FALSE |
telemetry |
only applicable for Walk-over-Weighing Units, TRUE if the Unit emits an hourly telemetry signal or FALSE if the Unit does not emit an hourly telemetry signal, default is FALSE |
date |
the date that the infrastructure was installed in date format, default is today's date |
username |
if you don't have a username set up using the dmaccess function you can pass a username, if no value added then the function looks for a value from dmaccess via keyring |
password |
if you include a username you will also need to add a password, contact Lauren O'Connor if you don't have access |
a message that indicates that the infrastructure has been successfully added
Dave Swain d.swain@cqu.edu.au and Lauren O'Connor l.r.oconnor@cqu.edu.au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.