{"id":17,"date":"2022-05-09T11:18:43","date_gmt":"2022-05-09T11:18:43","guid":{"rendered":"http:\/\/www.zerpy.it\/?p=17"},"modified":"2022-07-01T14:33:58","modified_gmt":"2022-07-01T14:33:58","slug":"contattaci-per-acquistare-il-software","status":"publish","type":"post","link":"https:\/\/www.zerpy.it\/gestionale-cloud\/?p=17","title":{"rendered":"Integrazione Ordini di Lavorazione per Industria 4.0"},"content":{"rendered":"<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">Zerpy \u00e8 adesso predisposto per controllare i dispositivi Industria 4.0 ed integrarsi con un ecosistema informativo aziendale diverso.<\/span><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">Di seguito un esempio degli endpoint per realizzare l&#8217;integrazione tra il software gestionale ed i dispositivi <span class=\"il\">Industria<\/span>\u00a0<span class=\"il\">4<\/span>.0.<\/span><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div class=\"gmail_default\"><b><span style=\"font-family: arial, sans-serif;\">Endpoint 1:<\/span><\/b><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">Inserimento ordine lavorazione:\u00a0<\/span><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">POST all&#8217;URL:<\/span><\/div>\n<div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\"><a href=\"http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione=true\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione%3Dtrue&amp;source=gmail&amp;ust=1656772178333000&amp;usg=AOvVaw3PfO4jpm7xlEC1A7uFmX7n\">http:\/\/<\/a>{url_zerpy}<a href=\"http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione=true\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione%3Dtrue&amp;source=gmail&amp;ust=1656772178333000&amp;usg=AOvVaw3PfO4jpm7xlEC1A7uFmX7n\">\/<wbr \/><span class=\"il\">industria<\/span>\/ws_import_data.php?<wbr \/>addOrdineLavorazione=true<\/a><\/span><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div class=\"gmail_default\"><span style=\"font-family: arial, sans-serif;\">Esempio di Payload (testo RAW in formato JSON):<\/span><\/div>\n<div class=\"gmail_default\">\n<div>\n<div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">{<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;id_ordine&#8221;:&#8221;30213&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;codice_prodotto&#8221;:&#8221;<wbr \/>00210162&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;quantita&#8221;:21,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;riferimento_ordine_<wbr \/>cliente&#8221;:&#8221;ordine\u00a0manuale\u00a0<wbr \/>11232&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;data_prevista_<wbr \/>conclusione&#8221;:&#8221;2021-12-24&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;dato_specifico_produzione_1&#8221;:179<wbr \/>,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;dato_specifico_produzione_2&#8221;:180,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;dato_specifico_produzione_3&#8221;:184<wbr \/>,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;dato_specifico_produzione_4&#8221;:195,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;dato_specifico_produzione_5&#8221;:200,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0<\/span>&#8220;dato_specifico_produzione_6&#8221;<span style=\"color: #000000;\">:<\/span><span style=\"color: #098658;\">206<\/span><span style=\"color: #000000;\">,<\/span><\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0\u00a0\u00a0\u00a0&#8220;dato_specifico_produzione_7&#8221;:30<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">}<\/span><\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<p><span style=\"font-family: arial, sans-serif;\"> Se il codice prodotto esiste e il sistema riesce ad inserire l&#8217;ordine di produzione la risposta sar\u00e0 del tipo (codice di stato HTTP 200):<\/span><\/div>\n<div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">{&#8220;status&#8221;:&#8221;success&#8221;,&#8221;zerpy_id&#8221;<wbr \/>:6713}<\/span><\/div>\n<\/div>\n<p><span style=\"font-family: arial, sans-serif;\">Se il prodotto non esiste, viene inserito un prodotto con le caratteristiche di base.<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">In caso contrario (con codice di stato HTTP 404):<\/span><\/div>\n<div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">{&#8220;status&#8221;:&#8221;error&#8221;}<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div><b><span style=\"font-family: arial, sans-serif;\">Endpoint 2: Interrogazione stato singola lavorazione<\/span><\/b><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> <a href=\"http:\/\/192.168.1.247\/industria\/ws_import_data.php?getStatoOrdine=\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/192.168.1.247\/industria\/ws_import_data.php?getStatoOrdine%3D&amp;source=gmail&amp;ust=1656772178333000&amp;usg=AOvVaw3Fq_a6jNbYcKtLnE2d01ia\">http:\/\/<\/a><a href=\"http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione=true\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione%3Dtrue&amp;source=gmail&amp;ust=1656772178333000&amp;usg=AOvVaw3PfO4jpm7xlEC1A7uFmX7n\">{url_zerpy}<\/a><a href=\"http:\/\/192.168.1.247\/industria\/ws_import_data.php?getStatoOrdine=\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/192.168.1.247\/industria\/ws_import_data.php?getStatoOrdine%3D&amp;source=gmail&amp;ust=1656772178333000&amp;usg=AOvVaw3Fq_a6jNbYcKtLnE2d01ia\">\/<wbr \/><span class=\"il\">industria<\/span>\/ws_import_data.php?<wbr \/>getStatoOrdine=<\/a><b>30213<\/b> <\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">dove 30213 \u00e8 il riferimento id_ordine del Vs gestionale, inserito in fase di creazione dell&#8217;ordine (Endpoint 1)<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">La risposta \u00e8 del tipo <\/span><\/div>\n<div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">[{<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;id&#8221;:&#8221;30213&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;zerpy_id&#8221;:&#8221;6713&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;stato&#8221;:&#8221;0&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;riferimento_ordine_cliente&#8221;:&#8221;<wbr \/>0&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;codice_prodotto&#8221;:&#8221;00210162&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;data_conclusione&#8221;:&#8221;0000-00-<wbr \/>00&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"> &#8220;quantita&#8221;:&#8221;21&#8243;<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">}]<\/span><\/div>\n<\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<p><span style=\"font-family: arial, sans-serif;\">dove le informazioni che potrete recuperare sono:<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">stato, che pu\u00f2 assumere i seguenti valori: 0 &#8211; Ordine di lavorazione non ancora avviato<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">1 &#8211; Lavorazione in corso<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">2 &#8211; Lavorazione completata<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">data_conclusione: indica la data di conclusione della lavorazione<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">quantita: indica la quantit\u00e0 di prodotto finito effettiva (potrebbe differire da quanto indicato in fase di immissione)<\/span><\/div>\n<div><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"><b>Endpoint 3:<\/b><b> Interrogazione stato singola lavorazione<\/b><\/span><\/div>\n<div><b><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/b><\/div>\n<\/div>\n<p><span style=\"font-family: arial, sans-serif;\">http:\/\/<a href=\"http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione=true\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/192.168.1.247\/industria\/ws_import_data.php?addOrdineLavorazione%3Dtrue&amp;source=gmail&amp;ust=1656772178333000&amp;usg=AOvVaw3PfO4jpm7xlEC1A7uFmX7n\">{url_zerpy}<\/a>\/<wbr \/><span class=\"il\">industria<\/span>\/ws_import_data.php?<wbr \/>getStatoOrdini=true<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\"><span style=\"color: #505050;\"><br \/>\n<\/span><\/span><\/div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">La risposta \u00e8 del tipo<\/span><\/div>\n<div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">[{<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;id&#8221;:&#8221;30213&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;zerpy_id&#8221;:&#8221;6713&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;stato&#8221;:&#8221;0&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;riferimento_ordine_cliente&#8221;:&#8221;<wbr \/>0&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;codice_prodotto&#8221;:&#8221;00210162&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;data_conclusione&#8221;:&#8221;0000-00-<wbr \/>00&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;quantita&#8221;:&#8221;21&#8243;<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">},<\/span><\/div>\n<div>\n<div>\n<div><span style=\"font-family: arial, sans-serif;\">{<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;id&#8221;:&#8221;RIF ORD\u00a012341 CONAD&#8221;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;zerpy_id&#8221;:&#8221;6703&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;stato&#8221;:&#8221;2&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;riferimento_ordine_cliente&#8221;:&#8221;<wbr \/>0&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;codice_prodotto&#8221;:&#8221;00210162&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;data_conclusione&#8221;:&#8221;2021-11-<wbr \/>05&#8243;,<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">&#8220;quantita&#8221;:&#8221;1245&#8243;<\/span><\/div>\n<div><span style=\"font-family: arial, sans-serif;\">}]<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><span style=\"font-family: arial, sans-serif;\">\u00a0<\/span><\/div>\n<\/div>\n<div><span style=\"font-family: arial, sans-serif;\">che contiene un vettore con pi\u00f9 righe con lo stato degli ultimi 100 ordini inseriti a sistema. Il campo quantit\u00e0 riporta la quantit\u00e0 effettivamente prodotta.<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Zerpy \u00e8 adesso predisposto per controllare i dispositivi Industria 4.0 ed integrarsi con un ecosistema informativo aziendale diverso. Di seguito un esempio degli endpoint per realizzare l&#8217;integrazione tra il software gestionale ed i dispositivi Industria\u00a04.0. \u00a0 Endpoint 1: Inserimento ordine lavorazione:\u00a0 \u00a0 POST all&#8217;URL: http:\/\/{url_zerpy}\/industria\/ws_import_data.php?addOrdineLavorazione=true \u00a0 Esempio di Payload (testo RAW in formato JSON): { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=\/wp\/v2\/posts\/17"}],"collection":[{"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":3,"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":2048,"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions\/2048"}],"wp:attachment":[{"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zerpy.it\/gestionale-cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}