How do I create a webpage that reports data on a local network? - matlab

I need some advice and guidance with starting a project. I have a MATLAB program that outputs data into a JSON file and a folder of images. I would like to have a webpage accessible through a local network that visualizes this data. My input data is well defined and I will visualize the data using d3js, but I do not know the rest.
How to setup a webpage for a local network?
How do I create a webpage that will periodically check the contents of the JSON file and update the display with the latest data?

Related

What's the best way to save online Image in sqflite, flutter?

I'm using sqflite to create my SQL database and save the data I receive from the RESTful API locally. I get the image link from the API but I have no idea how to store it. should I heard I can use BLOB (Uint8List) and cached_network_image. which of these two (or another way!) would u suggest and how to do it exactly?
I tried to save the Image link as String, but it did not satisfy my needs because I need to load my images once and load them locally next times.
Last time I searched on this topic, storing the image as a file on the device and as a string with the filename in the db was the proposed solution

Is there a way of retrieving data from a Google Cloud Database from MATLAB programmatically?

I am creating a standalone MATLAB application which is going to be distributed to 2 different users. I would like each instance of my application to connect to Google Cloud Database (MySQL), retrieve some data, manipulate it in the user's local computer and then send the data back to be stored in Google Cloud Database.
Is there way of connecting MATLAB directly to Google Cloud Database programmatically? (e.g. WITHOUT exporting a .csv file from the database manually first)
Thanks for any help.
Obviously, I tried exporting the data manually as a .csv file and it works. Just looking for a way of automating this process from within MATLAB. Therefore, previous answers regarding the method of exporting a CSV first does not apply to me.

How to send data to PC quick and easy without using API

I have a flutter application that is meant for collecting data on road usage, and I would like to carry out analysis after collection of data.
I've saved the file and I am able to read the file via readAsString and writeAsString to
'data/user/0/com.example.flutter_example_app/app_flutter/fault_report.txt'
How can I access the data quickly and easily without having to integrate too much stuff [For instance, opening an API and writing to cloud and etc]?
The app is supposed to be just a collection method and all analysis will be carried out afterward.
It depends on how ofter you would like to retrieve your data. If you only want to get the data once in a while, you can use File Explorer, Bluetooth file sharing, Cloud Drive or etc. to retrieve your data. But if you want to retrieve data more often, making some simple api will not take too much time.

How to prevent edit game data JSON file in mobile game?

I'm making mobile 2D puzzle game by Unity
using LitJson, Save&Load game data by .json file (public data)
I made class Userdata, in the class there are money and items.. also read & write by json
But I don't want to edit this json file who downloaded apk
How to prevent this?
You cannot completely protect data stored in the application. The most secure way to prevent players/ users from altering (save)game data, is to store them on a remote storage/database.
Taking database as an example, you could write PHP scripts which serve as middleman communicating between the database and your application.
In these scripts you would generally determine the logic and security handling on who gets to retrieve/ send what data to which table.
you can use binary formter as it will save your data in binary encrypted formate.
while this still can be decrypted, but will minimize the chances for regular users
Edit: Binary formater is no longer secured to be used, use binary writer instead for data about monetizing.

Write Data from Model back into json File UI5

Is it possible to write Data from an UI5 JSON Model back into a local JSON File.
Maybe by using: new sap.ui.core.util.MockServer({....
The MockServer emulates an OData Service and there it should be possible to save Data.
Since you are working in a browser you cannot access the file system. You will have to either implement a back-end service that saves your data or you can save the data from the JSONModel in local storage.
With local storage the changed data will of course only be available in the browser where you saved it.
See for example
https://developer.mozilla.org/en/docs/Web/API/Window/localStorage
https://openui5.hana.ondemand.com/#docs/api/symbols/jQuery.sap.storage.html