This application is a fully web-based version of our popular Yocto-Visualization V2 desktop application meant to quickly visualize data from Yoctopuce sensors.
It can easily be embedded in any web page to provide real-time graphs of Yoctopuce sensors, including datalogger access.
The source code include some preprocessor directive encoded within TypeScript comments (aka //#ifdef ... //#endif) to produce a read-only version of the application, without the code needed to configure widgets. The build process can therefore build two different minified versions: full and read-only.
src/** full source code (TypeScript)
obj/debug/** default location for transpiled code, for debug purposes
obj/full/** preprocessor output and transpiled files, full version
obj/rdonly/** preprocessor output and transpiled files, read-only version
dist/es2015/** production code (both regular and minified), compatible with EcmaScript 2015+
dist/es2017/** production code (both regular and minified), compatible with EcmaScript 2017+
bin/** build tools and debugging tools
If you need to rebuild, make sure Node.js is installed on your computer, go to the archive top level and type:
npm install
npm run build
After compilation You are supposed to upload the contents of es2015 or es2017 to a web server. If you don't have any web server at hand, we provided a simple one for testing purpose , just go to the top level and type:
npm run app-server
This will start a web browser with a demo, you will not be able to properly save because in this demo there is nowhere to save the configuration.
We provided an installer allowing an easy install on
YoctoHub,
Virtualhub and
Virtualhub (for web).
Just go to the top level and type:
npm run installer
Note: if YoctoVisualisation must be run on a Virtualhub (native version), the virtualhub filesystem must be enabled: make sure the virtualhub is started with the -F option.
The same installer is also available from the Yoctopuce tool page.
Yocto-Visualization (for web) uses the PAKO javascript library by Vitaly Puzrin and Andrei Tuputcyn, ported to TypeScript by Yoctopuce.
Copyright (C) 2015 and beyond by Yoctopuce Sarl, Switzerland.
Yoctopuce Sarl (hereafter Licensor) grants to you a perpetual non-exclusive license to use, modify, copy and integrate this file into your software for the sole purpose of interfacing with Yoctopuce products.
You may reproduce and distribute copies of this file in source or object form, as long as the sole purpose of this code is to interface with Yoctopuce products. You must retain this notice in the distributed source file.
You should refer to Yoctopuce General Terms and Conditions for additional information regarding your rights and obligations.
THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.