Contenido principal

Resultados de

i want to send temperature read to field1 and ecg read to field2
how can i write the code
and i have another problem that i don't have ecg code to thingspeak

I wanted to ask of 3M messages of thingspeak free account will renew every year? Thank You

Amro Abu draz
Amro Abu draz
Última actividad el 16 de Mayo de 2022

I want code for plotting windrose in matlab
I have 2 type of data for plot that is wind speed and wind direction
pls I want it quickly .
Kirito23
Kirito23
Última actividad el 14 de Mayo de 2022

Hi, How can I draw windrose on matlab,I have attached sample data for you, sorry for the inconvenience

WHAT DOES THIS MEAN PLS?
Need help :(
Warning: 'Unable to read 500 points as requested. Only 0 points available in the channel.
Lorenzo Scavarda
Lorenzo Scavarda
Última actividad el 8 de Jun. de 2022

Good morning,
I'm working with an Arduino MKR 1010 which takes information about weather from the website "api.openweathermap.org". On a ThingSpeak dashboard I displayed the main numbers (float) information like: temperature, wind speed, humidity, etc. Moreover, from the openweathermap I can also get string sentence (e.g. "light rain" or "broken clouds" etc.). I'm wondering if there is a way to display on the ThingSpeak dashboard string fields. Indeed, in the ThingSpeak Channel Settings I added an extra Field in order to store these string words but I don't know how to print them in the dashboard.
Someone can help me?
Thanks in advance,
Lorenzo
Hey guys, I am trying to get a certain value from this webpage (wave height in metres) and store it in a variable. whenever I test my API, I get this error. I have even tried existing examples that other people claim are working for them and they do not work for me.
Error parsing document, try a different parse string.
This is the webpage I am taking the information from.
This is the current Xpath that I am using for the swell height value I want.
/html/body/div[3]/div/main/div[3]/div[1]/mhl-datatables/div/div[1]/div/ngx-datatable/div/datatable-body/datatable-selection/datatable-scroller/datatable-row-wrapper/datatable-body-row/div[2]/datatable-body-cell[2]/div/span
IK
IK
Última actividad el 6 de Mayo de 2022

Hello,
I wanna make a figure that has one image and three plots.
So, I tried to put an image the first column next to three plots, but it didn't work.
what should I do?
and, I need to make 30 figures according to my images.
how should I make code with 'for' syntex?
figure(1);
subplot(3,2,[1,5]);
width = 1;
height = 1;
img = imread('MYIAMGES.png');
image(img)
set(gca, 'units','normalized','position',[0 0 width height]) %'XTick',zeros(1,0),'YTick',zeros(1,0));
subplot(3,2,2);
plot(date,A,'-');
subplot(3,2,4);
plot(date,B,'-');
hold on
plot(date,C,'-');
plot(date,D,'-');
subplot(3,2,6);
plot(date,E,'-');
hold on
plot(date,F,'-');
When discussing Q&As in MATLAB Answers, we oftentimes need to reference a function in MATLAB Documentation. The process is quite tedious. You need to search the function in Documentation and copy & paste it into Answers. Now, you can simply use the ‘@doc:’ in Answers’ editor to easily reference a function in Documentation.
How does it work?
1) Simply type ‘@’ and you will see the option to add a Doc link. You can also directly type ‘@doc:’.
2) Start typing the function name. You will see a list of choices on the menu.
3)Select the function and a hyperlink to that function's doc page will be automatically inserted.
Give it a try and we hope you like it! Leave a comment if you have any questions or suggestions.
Hello
I am trying to run the example code for "Calculate and display average humidity" using my channel data. I filled in the blanks:
  1. readChannelID
  2. humidityFieldID
  3. NumMinutes=720
The program returns display(avgHumidity,'Average Humidity') with "NAN" instead of the correct average. I have a free ThingSpeak account but have been following temperature & humidity every hour for the last 9 months. I would also like to store this average value on the same channel on a new field. Can anyone help me?
Thank You
I'd definitely attend/participate.
27%
I would probably attend.
23%
I might or might not attend.
21%
I would not be interested.
29%
1271 votos
Hello,
I need an endpoint to retrive my file with data from my channel. Do you think is this possible?
Notice that i do not want to press export data button, i want an endpoint to use in a personal project.
Thank you.
Chen Lin
Chen Lin
Última actividad el 28 de Abr. de 2022

Today, I'm spotlighting Bruno Luong, our newest MVP. Next, let's 'talk about Bruno'!
When we look at Bruno's stats chart below, we'll notice Bruno achieved this major milestone just in 3 years! This is amazing, right? Actually, we are still underestimating Bruno's contribution to the larger MATLAB/Simulink user community by just looking at his reputation points.
Before he started his active contribution to Answers in 2019, Bruno had been a top contributor to the newsgroup for MATLAB & Simulink products – comp.soft-sys-matlab. Sounds a bit old school? Leave a comment if you have participated or are still participating in the newsgroup. I remember back in 2016 when I first chatted with Bruno, he already had about 500 posts in the newsgroup!
Besides helping users with their questions, Bruno has also been contributing high-quality files to File Exchange. Check out the two prestigious badges below. They are showing the highest recognition from both the MathWorks team and millions of community users.
Congratulations, Bruno. We really appreciate your outstanding and long-time contributions to the MATLAB/Simulink user community!

Hello, I am currently working on a simple android app for a smart irrigation system. Basically the app lets the user enter the name of the plant and then lists all the plants of the garden. Then, I have divided plants into three categories depending on their watering needs and I have created three int values for the amount of plants per group. Essentially I want to send these three values to a thingspeak channel I created, to 3 separated fields. I am not familiar at all with server programming in Java so I would really appreciate any kind of help in how to do this.

Dirk Bräu
Dirk Bräu
Última actividad el 20 de Mayo de 2022

Can not pick just a single field for "No data check", just the whole channel. Is there any way to change?

I have a personal account which I use for my home projects, along with a paid license which I use for monitoring a set of sensors in a remote building.

All my sensors went offline at about the same time, but I am only just noticing this now, because I have been focused on why the remote location went offline, thinking that it was an issue with the internet or WiFi at that location, rather than a problem with posting the data!

All my monitoring setups are using electricImp devices to post data to ThinkSpeak and have been in some cases, running for several years without any issues. All the devices are now returning a 400 - invalid constant string error.

See logs below.

|2022-04-19T13:30:07.017 +00:00	[Agent]	https://api.thingspeak.com/update?api_key=XXXXXXX&status=OK&created_at=2022-04-19 13:30:01 UTC&field4=0.00&field3=0.00&field6=0.00&field5=0.00&field2=14.65&field1=2022-04-19%2013%3A30%3A01%20UTC&status=OK&field8=0.6129&field7=0.00&created_at=2022-04-19%2013%3A30%3A01%20UTC
    2022-04-19T13:30:07.086 +00:00	[Agent]	PUSH: 400 - invalid constant string

I modified a device to not send the date in field 1 on one device because I thought that might be causing the problem, but it is not clear to me what changed. I have been sending data like this for a long time.

Any ideas appreciated.

Thanks

Hi... I managed to work out both the pub & sub parts of MQTT with my esp8266. I did the example from over here ... and all works fine. The publishing happens every 15secs... and it received the published values back almost immediately. see Img1.png

Now using flutter from my mobile app I did the same thing... and I was able to pub & sub... and also checked the Field1 values in my Thingspeak account that i am writing to and reading as an MQTTclient. It all works correctly.

HOWEVER... heres the problem================ When I only publish from the mobile a value for Field1. And subscribing at the same time from my esp8266 to receive the updated value of Field1... something weird happens... My Field1 in the channel, in my Thingspeak account has been updated correctly... but my esp8266 doesnt receive the updated value. INSTEAD, at the same time I can see in the serial monitor logs, the esp8266 reconnects back to our MQTT server!! No update was received. It felt as if everytime I published a value from my mobile, it made my esp8266 disconnect and hence it needed to reconnect to the MQTT server. i checked this 10 times and it happened without a coincidence. I ran the same code on the esp8266, except that I never let it publish every 15secs. So all it did was stay subscribed and await an update from my mobile app. please see img2.png

and this is the flutters connection code

 client.logging(on: false);
    client.setProtocolV311();
    client.keepAlivePeriod = 10;
    client.onDisconnected = onDisconnected;  //....callbacks
    client.onConnected = onConnected;  //....callbacks
    client.pongCallback = pong;  //....callbacks
    final connMess = MqttConnectMessage()
        .withClientIdentifier('xxxxxxxxxxxxxxxx')
        .withWillTopic('willtopic') // If you set this you must set a will message
        .withWillMessage('My Will message')
        .startClean() // Non persistent session for testing
        .authenticateAs('xxxxxxxxxxxxxxxx', 'aaaaaaaaaaaa')
        .withWillQos(MqttQos.atMostOnce); // means = 0
    print('client connecting....');

Any help will be appreciated. Just wanted to iterate that individually they both work fine. Just that i need the updated value... and i dont receive it. Any ideas?? thanks, YOhan

Hi! As the title says, I want to group the data readings from multiple fields and channels into a single formatted tweet. Kinda of like a status report tweet for a few different sensors I have running. Is this possible? My current understanding of the MATLAB analysis/react is that it can only do 1 field at most. Any help would be greatly appreciated by this stresses out college senior :)

Arthur Monks
Arthur Monks
Última actividad el 18 de Abr. de 2022

I have a Thingtweet: "Measurements %%datetime%% Comment" The tweet will send the time as say: 5:23pm I want it in 24hr format = 17:23 I have scoured the site and I cant find any way of doing this in a tweet. Also that would be local time, is it possible to use UTC ?



20 minutes makes a difference

I struggled to learn MATLAB at first. A colleague at my university gave me about 20 minutes of his time to show me some basic features, how to reference the documentation, and how to debug code. That was enough for me to start using MATLAB independently. After a few semesters of developing analyses and visualizations, I started answering questions in the forum when I had time. I became addicted to volunteering and learning from the breadth of analytical problems the forum exposed me to.



Have you ever solved a problem using a MathWorks product?

If your answer is YES, you may be the right person to help someone looking for guidance to solve a similar problem. Some answers in the MATLAB Central community forum maintain 1000s of views per month and some files on the File Exchange have 1000s of downloads. Volunteering a moment of your time to answer a question or to share content to the File Exchange may benefit countless individuals in the near and distant future and you will likely learn a lot by contributing too!

  • 3616 questions were asked last month in the forum and in that time, 747 volunteers answered at least one question!
  • 62% of those volunteers were first-time contributors!
  • 335 volunteer contributors shared content in the File Exchange last month!
  • 1: the number of contributions it takes to make a difference.

This week is National Volunteer Week in the USA (April 17-23). Challenge yourself and your colleagues by committing to help a stranger break barriers in their path to learning MATLAB.



How to volunteer and contribute to the MATLAB Central Community

Here are two easy ways to accept the volunteer challenge.

Contribute to the MATLAB Answers Forum

  1. Go to the MATLAB Answers repository. This page shows all unanswered questions starting with the most recent question. Use the filters on the left to see answered questions or questions belonging to a specific category. Alternatively, search for questions using keywords in the search field or visit the landing page.
  2. Open a few questions that interest you based on the question titles and tags.
  3. Decide how you'd like to contribute. Sometimes a question needs refinement or requires a bit of work to address. Decide whether to leave a comment that guides the user in the right direction, answer the question, or skip to the next question. The decision tree below is how some experienced contributors approach these decisions.

Pro tips

  • Newer questions have more traffic and are often answered within an hour or minutes.
  • Multiple answers often add valuable alternative perspectives and solutions.
  • Sometimes answers aren't accepted or the asker disappears. Be not discouraged. Your answer holds much value.



Contribute to the File Exchange

  1. Choose a function, script, demo, or toolbox you created that may be helpful to the community.
  2. Go to the MathWorks File Exchange. Search for submissions that are similar to your idea and decide whether your idea adds value.
  3. Prepare your code for open-source sharing. The best submissions include brief documentation that explains the purpose of the code, inputs, expected outputs and limitations.
  4. Use the "Publish your code" button from the link above. This will guide you through the submission process.



Make a difference

No matter what level you are at as a MATLAB developer, you have skills that others around you could benefit from learning. Take the challenge and become a giant.

Let us know about your experience with MATLAB Central volunteers or your experience becoming a MATLAB Central volunteer in the comments below!