InfluxDB and Grafana on server without datetime sync - datetime

I’m running an app on raspberry. This raspberry is not connected to internet, and without RTC. So the raspberry datetime is random.
The app push data to GraphQL. So data are stored to the machine timestamp, witch is a random one.
Grafana is connected to GraphQL to read data.
Problem :
Data are stored at the datetime of the serveur, for example 2020-01-01 00h00m00s
Grafana get the datetime of the browser witch is sync with internet datetime, for example 2020-01-01 14h30m12s
My device is not connected to internet, but all apps (data producer app / InfluxDB / Grafana) are connected in localhost. The clock on my device is set randomly. It take probably the last known datetime ?
So data are stored at the datetime of device. But Grafana take the datetime of the browser (my phone / my pc) witch theirs datetime have been sync with UTC. When I tried t visualize data on Grafana, they are absent because they are stored at a datetime in the past.
Question :
How to say at Grafana to use server datetime and not browser one ?
My problem is not related with problem where data are store at UTC and Grafana at UTC+1.

Related

Get time from remote time server in R

How can the current timestamp be queried from a remote server (e.g., NIST, windows time server) using R?
I'm guessing it is possible to obtain time using NIST Internet Time Service (https://www.nist.gov/pml/time-and-frequency-division/services/internet-time-service-its), but unsure how this would be done.

AndroidThings TimeZone for a Date object is GMT+00

I am writing an android things app (dev preview 3) for the raspberry pi 3.
I am connecting the app to a wifi network and when I do a new Date() the time is correct (offset by the timezone - minutes/seconds correct) except for the timeZone which is being set to GMT+00:00 (i.e., timezone 0).
I want to deploy the device into households and need to automatically set their timezone, since I'm connecting to their wifi network, I assume the I should be able to know their timezone. Is this do able or is this just a problem with preview 3 and will be corrected in future releases of Android things?

PingFederate OpenToken Sample Application

I'm trying out the sample applications provided together with the PingFederate .NET Integration Kit. I was able to make it work for the Single Server set-up (my machine served as both the IdP and the SP).
But when I tried setting up two machines like it was specified in this link:
https://documentation.pingidentity.com/display/NETIK/Deploying+the+Sample+Applications
A more realistic scenario is to deploy the applications on a separate IIS server machine
I was able to edit the Adapter Instance and the Default URL but there's this problem of clock skew between servers
Verify that your server clocks are synchronized. If they are not synchronized, you can account for this by adjusting the Not Before Tolerance value in the OpenToken adapter configuration, which is the amount of time (in seconds) to allow for clock skew between servers. The default and recommended value is 0.
I checked the possible values and the max is 3600 seconds.
Question: What if my server has more than an hour of time difference? Is that set-up still possible? (Servers are actually on different time zones.)
The OpenToken uses GMT, so timezones are taken out of the picture - as long as your server is set to the proper time, and actual proper timezone for where it is, it should work just fine. For example, you can have serverA in New York City, and serverB in Los Angeles. If serverA is set to Eastern Time, and serverB is set to Pacific Time, then the OpenToken will work - since it converts times to GMT, the times on the token will be the "same".
Hope that makes sense - I need another cup of coffee this morning. :)

access serial port through internet which is connected to a remote machine

I have a sensor gateway which is connected to the serial port. My java program basically a desktop application which is collecting sensor data and storing in a public mysql database. Now I am wanting to access the serial port through internet with a web application which is using the same public mysql database. I have think a bit but I think it is not a proper way. If I would keep a table in the database, if any command is generated through internet via the web application this table store the command for a period of time and my desktop application continuous monitoring the table if data available get the data and pass it through serial port. I am seeking for a proper way to access serial port through internet/cloud which is connected to remote machine or something like an expert opinion.
That's certainly the simplest method. Much simpler than say a web service that stores it in memory, or again in the database and you get safety which you wouldn't get if you just relied on the file system to lock a file. You might need some method of clearing out the output from the DB.

How to synchronize hour between two Win7 machines to have the same timestamp

I developed a MFC application in C++ which I use to capture data from some USB sensors in order to save the information in a TXT file. For each data, I also save the timestamp with boost function.
I need to use my application also with another pc since I have to acquire data twice and I'd like to know what's the best method to synchronize the data between these two pcs.
I'm using the first pc to create a Wifi network and I'm able to connect the second pc to the first one and then I'm trying to use "net time" to set the NTP service without success.
Is there any tutorial or someone which can explain me how to synchronize date time between two Win7 pcs, please?
Perhaps this command? Run from the cmd prompt.
net time \\MasterPC /set /yes
where MasterPC is the network name of the computer you want to take the time from.

Resources