Publish
Publish your code as a ZIP file
Last updated
Was this helpful?
Publish your code as a ZIP file
Last updated
Was this helpful?
The last step, after the page code and the entity in Ubidots, is to upload the code to the Page, in ZIP format, so it is publicly available and it can be served from Ubidots.
Follow the below steps:
Compress the files from the , in ZIP format, from the root of the file structure, not the parent folder.
Make the below HTTP request. Be sure to replace <page_id>
, <YOUR_TOKEN>
and <path_to_zip>
as needed.
You should get this response:
The ZIP file is limited to a maximum of 5MB
Once the page is created and the code uploaded to it, it's only a matter to serving the Page from and Ubidots Dashboard. To do so:
Create a dashboard whose type is set to Custom
In the "Custom page URL" field, enter the following URL after replacing <page_id> with your respective Page id
https://industrial.ubidots.com/app/pages/public/<page_id>
This URL is Ubidots format to expose your custom code through an URL that can be loaded from a Dashboard.