I've played around with the Commands calls to access the GPIO Pins. Very cool stuff! I can control an LED and a servo with simple REST calls which is great! Is there also an endpoint to get access to the current status of a sensor? Can I make a call and get the Temp and Hum of the connected DHT22?
I read some place here that you can upload custom pages that can be called. I can't find the thread but that might also be an option. The request was to be able to make a call and get back information from a sensor which is basically what I want to do but again, can't find the post
REST call to get sensor status
Moderators: grovkillen, Stuntteam, TD-er
Re: REST call to get sensor status
The documentation for using a dashboard is mainly documented on the wiki: https://www.letscontrolit.com/wiki/inde ... _Dashboard
You can also make something yourself based on JSON.
See: https://espeasy.readthedocs.io/en/lates ... html?#json
You can also make something yourself based on JSON.
See: https://espeasy.readthedocs.io/en/lates ... html?#json
Re: REST call to get sensor status
Excellent, I think the JSON option will be perfect but I can also use the dashboard info to craft something of my own if needed. The dashboard info is exactly what I was looking for with regards to a custom page. So glad you linked it because it was driving me crazy I could not find this info again! Have a great day!
Who is online
Users browsing this forum: No registered users and 0 guests