洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
746
2022-10-22
Iot Device Simulator 模拟设备流数据的应用程序
Iot Device Simulator
Info
This package can be used to deploy an IoT device simulator on your local machine. Can be used in conjunction with SDS to build demo's and prototypes.
Check out this demo video right here: example no SDS
Use
First of all install nodejs from the following location: Node.js Download the stable version (recommended for most users). Follow the Wizard. To test if everything is working, open a command prompt and type (if you already had a prompt open, close it first): $ node --version If you get an error, uninstall and install again. Download Git from following location: Git Follow the wizard (When asked if you want to add to your path, click yes). To test if everything is working, open a command prompt and type (if you already had a prompt open, close it first): $ git --version If you get an error, uninstall and install again. Download and install mongodb from the following location (only needed of you want to stream to other things outside SDS):for Mac: with homebrew or installerfor Windows: mongodb for windows Check to see if you can run mongod from the command prompt. Navigate to a folder on your local machine where you want to store the application. Open a command prompt and navigate to that specific folder (to get the path, just copy paste it from the finder window): $ cd
If you an access-Control-Allow-Origin error install following chrome extension: Allow-Control-Allow-Origin and enable it, make sure the icon is green and then try again. If using other sites, makes sure to turn it off again.
Nudge button
The control panel has the option to adjust the values while streaming of the attributes you entered. For numeric values you will see a slider. For booleans and categorical values you see a dropdown. This is useful for when you want to demo certain events in your streaming logic. Also, the nudge button provides the possibility to simulate a sudden event. For example a door that opens for a short period of time or a package that gets bumped.
SDS
Demo video coming soon
For SDS projects, provide the necessary details in the SDS panel. With the correct credentials, you should see data coming in in the windows of yout SDS project.
Other
Check out this demo video right here: example no SDS
If you skip the SDS project, the app will start streaming data to the following endpoint: /simulator/data as JSON. This can then be consumed by a front end tool capable of doing REST requests. Keep in mind that to use this, you will need to install mongodb on your local machine. (see above).
Every time you press the stop streaming button, the db will be flushed, to avoid taking up to much space when streaming regularly.
ToDo
Form ValidationStylingUse electron to create a native desktop appUse iterator and generators for the stream?...
Contributions
Contributions and ideas are more than welcome!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~