Custom dashboard widget to send data to device

Hi,

I’m using ubidots for education. I’ve created a device that controls a water pump for my small irrigation system that I use in the garden. It connects to ubidots using mqtt and sends events every time it turns the pump on or off so I can see the current status and when it was on the last time. I would like to be able to set a schedule from the dashboard to the device. A schedule includes many parameters as, weekdays, start times, end times and other parameters.Is it possible to create such widget in ubidots?

Thanks
Niclas

Hi @niclask,

I hope all is well.

Although at the moment we do not have a specific widget for this purpose, you can create your own using the HTML Canvas widget, based on the following example.

Also, in our future developments, we will include a scheduler feature in the events engine, I will keep you posted on the updates.

All the best,
-Isabel

Thanks for the link. I tried to follow it. But when I’ve entered the HTML, CSS, JS and I try to save, I get a red rectangle and I’m still on the create a new widget page. It seems it want to highlight an error, but it is not possible to understand what the error is.

Hi @niclask,

Thank you for letting us know about this situation.

Can you please advise your username? Additionally, please keep in mind that if you are a STEM user, there is a limit of 10 widgets per Dashboard. If you exceed this limit, it is not possible to create an additional one and an error message will appear. For more information, you can refer here.

All the best,
-Isabel

The username is the same as I have here.

When I press finish I get the red rectangle you can see in the screenshot.

Hi @niclask,

Thank you for your response. I noticed you are on Ubidots For Educational Platform, which is scheduled to shut down in the coming months. Having that in mind, I recommend you to create an account in the new academic/hobbyist platform Ubidots STEM which offers improved performance and an experience closer to our core paid platform. I will be attentive to the results in Ubidots STEM to keep troubleshooting.

All the best,
-Isabel