Results for
Hi all
Learning home automation and found your webpage via cookbook sample code, which I cannot get work, i.e. sending a tweet. Somehow API keys should be OK as I got another sample from your page (bulkdata upload with Raspi) working just fine
Code seem to run and response is OK 200, am I just missing how to check this from twitter or? if I change API key to xxx response is 400 so
import time, os
import requests
MAX_TEMP = 19.0
MIN_T_BETWEEN_WARNINGS = 1 # Minutes
BASE_URL = 'https://api.thingspeak.com/apps/thingtweet/1/statuses/update/'
KEY = 'xxx'
def send_notification(temp):
status = 'Thingtweet: Room getting hot. room temp=' + str(temp)
data = {'api_key' : KEY, 'status' : status}
response = requests.post(BASE_URL, json=data)
print(response)
print(data)
def room_temp():
f = open('/mnt/1wire/28.55CA95F0013C/temperature','r')
room_temp = f.read()
return float(room_temp)
while True:
temp = room_temp()
print("room Temp (C): " + str(temp))
if temp > MAX_TEMP:
print("room TOO HOT!")
send_notification(temp)
print("No more notifications for: " + str(MIN_T_BETWEEN_WARNINGS) + " mins")
time.sleep(MIN_T_BETWEEN_WARNINGS * 1)
time.sleep(10)
i have imported data from a chanel, edited it and re uploaded again,
it returns error message when i upload it.
it says "The uploaded file was not imported because it is empty"
Mathworks returns also a message to my email saying "Timestamp already in channel."
Hello,
Can someone please give me a hint how the settings at Tasmoto have to be made in order to send data via MQTT to ThingSpeak.
Halil Kemal has an open channel tag: tasmota where this seems to work.
Thank you in advance for your support.
TOM
How can I export data other than downloading it as a CSV file?
I want to embed the graphs in a website, how can I do that?
OR
How can I export data and display it on my own in the website?
Hello everyone! does anyone know how to use the simulink write block for mobile android? I am attaching a cell phone error message. Thank you!
Hello
I am Jos
i have made a program for upload data to mine channels in pytython 2.7, now I am forced to go to 3.9 and I cannot get the program running
code for 2.7
import httplib
import urllib
def WriteData():
while True:
params = urllib.urlencode({'key': 'xxxxxxxxxxxxxxxx', 'field1': '0.021'})
headers = {"Content-typZZe": "application/x-www-form-urlencoded","Accept": "text/plain"}
conn = httplib.HTTPConnection("api.thingspeak.com:80")
try:
conn.request("POST", "/update", params, headers)
response = conn.getresponse()
print (response.status, response.reason)
data = response.read()
conn.close()
except:
print ("connection failed")
break
can someone help me with this code?
Dear Community,
I'm new on ThingSpeak for nearly 4 weeks and I'm struggling to compute some MATLAB data. Mostly because I don't know the syntax.
I have a hourly graph of solar production in kW, I'm taking a sample every 20 seconds, and I would like to aggregate the data on a daily basis in kWh.
I guess I need to select the last 7 days of data using some thingsread function, add the data into an array and compute the daily data into an average/sum ... As you can see, I mostly got the mechanics but I'm struggling to create the car ;) Is there anyone kind enough to assist me ?
Thansk a lot !
Hallo, ich bin Anfänger und beschäftige mich gerade mit dem ELV-Modulsystem mit dem man über Steckmodule eine Sensor-Datenstation aufbauen kann, die Temp und Hum misst . Die Daten gehen dann vom Modul zu TTN und werden dort dann in einer decodierten Payload ausgegeben. Mittels Webhook Integration zu ThingSpeak will ich die Daten dann in zwei Felder-Widget für Temp und Hum ausgeben/auswerten.
Der erste Teil funktioniert und die Payload wird ausgegeben. Die Daten darin sind vernünftig.
Nun habe ich in TTN eine Integration mit Webhook "ThingSpeak" erstellt und den Decoder um zwei Zeilen entsprechend erweitert in denen Die Temperatur-Variable in "field1"-Variable geschrieben wird und die Humidity in eine "field2"-Variable.
Leider wird aber nicht wie erwartet die Datenausgabe in ThingSpeak erledigt. Die Field-Widgets bleiben leer.
Kann mir jemand helfen? Was mache ich falsch?
Hello, I'm a beginner and I'm currently working with the ELV module system with which you can set up a sensor data station using plug-in modules that measures temp and hum. The data then goes from the module to TTN, where it is then output in a decoded payload. Using webhook integration with ThingSpeak, I then want to output/evaluate the data in two field widgets for Temp and Hum.
The first part works and the payload is output. The data in it is reasonable.
Now I have created an integration with the "ThingSpeak" webhook in TTN and extended the decoder by two lines in which the temperature variable is written in a "field1" variable and the humidity in a "field2" variable.
Unfortunately, the data output in ThingSpeak is not done as expected. The field widgets remain empty.
Can someone help me? What am I doing wrong? Thanks
I am using the datastreamer addin in MS Excel for collecting sensor data. No I would like to write the data one by one to a thinkspeak channel. I need a VBA code example to learn more about this.
Thank you very much.
Hallo,
ich habe an meinem Raspi den DHT22 angeschlossen und die Werte werden mir auch korrekt ausgegeben,
jedoch wird mir bei Thingspeak keine Charts angezeigt, obwohl ich Read/Write API sowie Channel im Skript angegeben habe.
Nach folgender Referenz bin ich vorgegangen:
Hat noch jemand dieses Problem?
Hi every one. I am new to thingspeak. I want to share data between my siemens PLC and thingspeak channel without any use of PC. Cna anyone help me out with the ways of communication and harware needed for the application.
Note: I have created channel in thingspeak website. I need support for siemens PLC programming for data sharing.
Pls guide me.
Hi there!
There is a question, is it possible to send plot data from my channel to telegram bot as image file using ThingSpeak API or some other tools?
I have a Free subscription which I have upgraded (paid for) to Home with one unit. My subscription is still working on Free with 15 second writes. What do I have to do to be able to update at one second intervals. I have deleted three of the four Free channells.
Hi!
I'm currently doing my third-year studies in Electrical and Electronics Engineering at the South Eastern University of Sri Lanka, I tried to get MATLAB via my student mail id, but Unfortunately, I cannot get the installation software, Can anyone give me any ideas to register for this opportunity?
I receive and visualize data from my weather station. (This is my channel: https://thingspeak.com/channels/1700157).
I want to know and show the date of last time it rained.
How can i do it? The data are updated every 15 minutes.
How to send an audio signal to thingspeak to be accessed later via HTTP protocol? it's possible ? Do you have an example you can share?
Dear Community, I using the free/community edition and I would like to know how long my data will remain accessible/stored in ThingSpeak.
I'm planning to store data for many years. Before making this a reality, I would like to be sure I have selected the correct plaform.
Thanks a lot ;)
Hopefully you are aware that MATLAB is built into ThingSpeak. Right now, MathWorks is hosting two contentsthat can help you learn MATLAB and then improve your IoT project.
I just set a calendar reminder to do a Cody problem each day. I can't win a prize but I can still get a virtual badge if I get a streak going.
hello :
I'm success using http send/receive between 16 bits MCU and Thingspeak.com via wifi , lan (ESP32(wifi) and LAN module )
but recently I have a new device it's BC95-B8 NBIOT device from quectel which it can only use UDP mode.
I want to connect / send /receive data with Thingspeak.com . but can't find any knowledge explain how to
Please advise
Thanks
I am working on a LoRaWAN project. My setup consists of 100 or more end-devices talking to a network server through a single gateway (private). My problem now is this.
I want the end-devices to belong to one of four groups with each group having a fixed range of spreading factors that can be used. Eg group 1 can only use SF 12, group 2 can only use SF 7, and so on. When an end device sends a join request, the network server should know which group the end device belongs to so it can assign the correct transmission parameter.
How can I achieve this? How can I encode the group that each end device belongs to into the join request for the network server, using maybe the AppEui or DevEui or AppKey or something? Any ideas?