Issue with actual data visualization on thingsboard widget - thingsboard

I tried to fetch weather data from openweathermap using api call on thingsboard using rule chain rest api call. successfully I fetched all data, but I am facing issue with visualizing that data on timeseries widget card on dashboard. Issue is data which are shown on timeseries widget contains brackets.
Here by I am attaching an image of dashboard.
enter image description here
Can anyone help me to resolve this issue?
Thanks in Advance....

Related

Using IMPORTXML in Google Sheets to scrape data from Transfermarkt

I'm trying to see if it's possible to scrape data from Transfermarkt.com to import into a Google Sheets doc.
Currently, I'm trying to import the team data from a player's profile page (see example URL here: https://www.transfermarkt.co.uk/joao-palhinha/profil/spieler/257455) but in future may want to import other data as well.
I wonder if it's possible to scrape data in this way from Transfermarkt, but if it is, any advice on what I'm doing wrong would be very much appreciated!
Right now I'm using, =IMPORTXML(B1,"/html/body/div[3]/main/header/div[4]/div/span[1]/a") where the URL is in B1. I copied the Full XPath from the HTML, but have also tried this by copying just the XPath too.
It says Loading for a few seconds before returning N/A, with an error message 'Resource at URL not found'.
I'm expecting the result in this instance to be Fulham.
Thanks

IMPORTHTML-function in Google Sheets pulls wrong data

I am trying to scrape the current gas prices in a German city by using the IMPORTHTML-function in Google Sheets. The function seems to work, at least the data is being imported into my sheet. When taking a closer look, one recognizes, that the data inserted into the sheet differs from the current data displayed on the webpage I am scraping.
This is the function I inserted into my Google sheet:=IMPORTHTML("https://www.benzinpreis.de/aktuell/super_e5/deutschland/nordrhein-westfalen/koeln/koeln/koeln"; "table";4)
I took a screenshot of the differing values:
Does anyone have an idea where I made a mistake?
You may consider using external tools which can render JS website OR debug if the website makes some AJAX call, and get raw JSON instead of trying to fight with HTML.
It looks like the website uses this xhr request to get the actual data in JSON:
https://www.benzinpreis.de/bpmap-callback.php?lat_min=50.86707808969461&lat_max=51.01850632466553&lng_min=6.700286865234375&lng_max=7.215270996093751&action=getTankstellen
( see Chrome Dev Tools Network tab for detailed information )
then you might use ImportJSON to import data into your Google Sheet.
https://workspace.google.com/marketplace/app/importjson_import_json_data_into_google/782573720506
Discovering hidden APIs using Chrome Dev Tools:
https://www.youtube.com/watch?v=kPe3wtA9aPM

GetStream feeds without enrichment

Because of some requirements, we don't want to use the enrichment system where stream gets from its own collection the data objects.
In fact, we want to do it as the backend would do, using our own database, but directly from the client (because we don't use any database)
However, when retrieving the activities, we get the following: (iOS)
JSON decoding error: The data couldn’t be read because it isn’t in the correct format..
We create activities in the way that, actor is User:UserID, Object is Object:PostID, Verb:ActionEnum.
That's all we do.. but one more time, we are facing issues on iOS SDK..
Why?
To anyone having this issue, it was coming from the iOS SDK itself... It turned out that, using the REST API from our client solved the issue, but we had to use the "extra" field part of Go to deliver our required data :)
Hope it helps

thingsboard widget graph unable to show data beyond 6-7hours

i've created a custom widget on thingsboard but it's unable to show data beyond 6-7hours. Refer screenshot below.
Tried searching the postgre db tables but unsure where the device telemetry data are stored.. perhaps there is a data capped somewhere..
Any advise please?
Thanks!
screenshot of widget:
Go to ThingsBoard database on postgres.
Check tables ts_kv and ts_kv_latest you will see your data.

Issues on fetching stock data at specific time in google sheet

I want to fetch stock value at specific time(for example 10:00:00) in google sheet.
I'm using the following function but it's not working for me.
=GOOGLEFINANCE(A4,"price",time(10,00,00))
It shows an error as The query has returned no data
Kindly suggest the way to get it using googlefinance or by any other way.
Thanks.

Resources