Hi!
I am working on a project with svyazannoy bluetooth and arduino. The algorithm looks like this:
If you press the button, Arduino sends the symbol "49" to the application.
If the application receives the symbol "49", then the application goes to the site and learns the time and uses html to copy the time and paste it into Label2.
The application receives and sends. The problem is, the app accessing the site does not receive the information. Please help me?
Everything seems to be a mistake in this block
A few months ago, everything worked. It seems that the structure of the site where I take information has changed.
Can you please help?
This is not a mistake. I wrote you in another thread that the owner of the page you are trying to scrape has introduced protection and you will not get information from this page anymore. Look for another site from which you can get time, preferably not by scraping, but through the API
Every API page has FAQ or HOW TO information, you need to look on that site for how to build the query. You probably need to put the api key in the query.
Which response content do you get in the Web.GotText Event?
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
I get it if I click the link:
{"abbreviation":"EDT","client_ip":"194.0.188.113","datetime":"2023-03-27T16:11:32.912591-04:00","day_of_week":1,"day_of_year":86,"dst":true,"dst_from":"2023-03-12T07:00:00+00:00","dst_offset":3600,"dst_until":"2023-11-05T06:00:00+00:00","raw_offset":-18000,"timezone":"America/New_York","unixtime":1679947892,"utc_datetime":"2023-03-27T20:11:32.912591+00:00","utc_offset":"-04:00","week_number":13}
Hello, it turns out I made a mistake with one block. Fixed it. I did the following:
When Label1 receives the time, the application via Bluetooth should only send the hour and minutes via one digit each. Every 50 ms seconds.
If the time is 10:30, Bluetooth sends:
Sometimes it sends characters, now it has stopped sending at all
Now even the time is not displayed on the label
50 ms for bluetooth is enough, I think, because it worked like that on another project