Understanding Custom Functions

Understanding Custom Functions

Custom functions in Zoho IOT allow you to extend the platform's capabilities. These functions are written using various programming languages and are easy to construct.

With custom functions, users can move beyond a rigid platform to a highly flexible one, offering true control over the environment. This flexibility helps optimise workflows and make operations more efficient.
Custom functions in Zoho IoT are particularly useful in the following areas:
  • Alarm Notifications: Write custom functions that raise specific alarms for a device, asset, or location. These alarm notifications can be triggered automatically based on data received in the application.
  • Data Operations: Perform operations like Add, Update, or Delete on your data whenever a specific event occurs.
  • Message Handling Use custom functions to transform incoming data before it is processed or displayed.

  • Integration with External APIs: Write custom functions to connect Zoho IoT with external APIs, allowing your IoT solution to interact with other platforms and services, enhancing its capabilities.

Example of a custom function

Here is an example of a custom function written in Deluge scripting language.It is used to call a weather API and store the weather data of a particular city. This data can be accessed and displayed in a Zoho IOT application.

response = Map();

// token = arguments.get('key').get('token');

res = invokeurl

[

 url :"https://api.weatherapi.com/v1/current.json?key=364bab7e13751a01121d55 r41306&q=palladam&aqi=yes"

 type :GET

 detailed:true

];

res_1 = invokeurl

[

 url :"https://api.weatherapi.com/v1/current.json?key=364bab67e13471a0112de3 d241306&q=chennai&aqi=yes"

 type :GET

 detailed:true

];

if(res.get("responseCode") == 200 && res_1.get("responseCode") == 200)

{

 resText = res.get("responseText");

 resText1 = res_1.get("responseText");

 response.put("palladam",resText);

Using Custom Functions 

A custom function can be associated to, or triggered based on, one of the features/functions in the Zoho IOT application. The currently supported function/features are: Alarm Rules, Workflows, Schedule, Notification Profiles, Uplink Message Formatter, and Message Handler.
 
Learn how to add and manage custom functions in the Zoho IOT application.

See Also
  1. Understanding devices


    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION









                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Understanding Custom Modules

                                                                                                                Custom modules in Zoho IOT allow you to store and manage additional information specific to your business needs. You can configure these modules with various fields to capture both manual and automated information from users and the application. For ...
                                                                                                              • Understanding Actions

                                                                                                                In an IoT setup, you may have to trigger various actions, such as sending notification emails to relevant personnel, connecting to a third-party URL via. webhook, or executing custom business logic on certain conditions. These actions are generally ...
                                                                                                              • Understanding Alarms

                                                                                                                Identifying faults in devices and assets within an IoT network is the most vital part of any monitoring application. It provides insight into the health of devices and assets, and consequently, the overall health of the network. This capability ...
                                                                                                              • Adding and managing custom functions

                                                                                                                This guide will help you add, edit, delete, and manage custom functions in the Zoho IOT application. Adding a Custom Function You can add a custom function in the developer application as well as in the end application. Adding a custom function in ...
                                                                                                              • Understanding Notification Profiles

                                                                                                                Notification profiles are created to trigger actions for all or specific alarms generated for selected managed entities. Actions such as sending emails, executing custom functions, or executing a webhook can be triggered when these conditions are ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources