# Zip library problem

**URL:** <https://forum.arduino.cc/t/zip-library-problem/1379757>\
**Category:** Programming\
**Created:** [May 7, 2025, 12:36pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757 "2025-05-07T12:36:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 12:36pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/1 "2025-05-07T12:36:17Z")

</div>

Hi I am trying to add zip library but have a problem, how to fix that ?

 ![zip problem](https://europe1.discourse-cdn.com/arduino/original/4X/2/3/3/23324441bc9508c2d8774ad273d346a384d02a6f.png)

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [May 7, 2025, 1:46pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/2 "2025-05-07T13:46:41Z")

</div>

I assume that you have downloaded a .zip file that contains a library but have you actually installed the library ?

In the IDE goto Sketch/Include Library in the menu and choose "Add ZIP Library". Navigate to the downloaded .zip file and select it

If you have not done that, or installed the library manually, then the library will not be available to be used in a sketch

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 2:04pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/3 "2025-05-07T14:04:19Z")

</div>

error adding zip

Specified folder/zip file does not contain a valid library

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [May 7, 2025, 2:06pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/4 "2025-05-07T14:06:36Z")

</div>

Please post a link to where you downloaded the zip file from

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 2:07pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/5 "2025-05-07T14:07:16Z")

</div>

> <https://github.com/Wiznet/W7500P/blob/master/W7500P_FW/ioLibrary/Internet/httpServer/webpage.h>

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 2:08pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/6 "2025-05-07T14:08:33Z")

</div>

> **[GitHub - Wiznet/W7500P](https://github.com/Wiznet/W7500P/tree/master)**
>
> master

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [May 7, 2025, 2:12pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/7 "2025-05-07T14:12:57Z")

</div>

Are you sure that is an Arduino library ?

Did you see this on the page that you linked to ?

> # This repository is no longer supported. Please refer to the following repository:[W7500x\_StdPeriph\_Lib](https://github.com/Wiznet/W7500x_StdPeriph_Lib)

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 2:16pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/8 "2025-05-07T14:16:39Z")

</div>

I was trying both of them, the same error

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [May 7, 2025, 2:20pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/9 "2025-05-07T14:20:01Z")

</div>

The library seems to have nothing to do with Arduino

What are you trying to achieve with the library ?

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 2:21pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/10 "2025-05-07T14:21:04Z")

</div>

this is the program

```arduino
#include <Arduino_JSON.h>

//=============================================
//ESP32 WebSocket Server: potentiometer voltage
//=============================================
#include <WiFi.h>
#include <WebServer.h>
#include <WebSocketsServer.h>
//-----------------------------------------------

//-----------------------------------------------
WebServer server(80);
WebSocketsServer webSocket = WebSocketsServer(81);
//-----------------------------------------------
String JSONtxt;
//-----------------------------------------------
#include <webpage.h>
//-----------------------------------------------
void handleRoot()
{
  server.send(200,"text/html", webpageCont);
}
//====================================================================
void setup()
{
  Serial.begin(9600);

  WiFi.begin(ssid, password);
  while(WiFi.status() != WL_CONNECTED)
  {
    Serial.print("."); delay(500);  
  }
  WiFi.mode(WIFI_STA);
  Serial.print(" Local IP: ");
  Serial.println(WiFi.localIP());
  
  server.on("/", handleRoot);
  server.begin(); webSocket.begin();
}
//====================================================================
void loop() 
{
  webSocket.loop(); server.handleClient();

  String POTvalString = String(float(analogRead(A0))/1170.0);
  JSONtxt = "{\"POT\":\""+POTvalString+"\"}";
  webSocket.broadcastTXT(JSONtxt);
}

Header file "webpage.h":

//=====================
//HTML code for webpage
//=====================
const char webpageCont[] PROGMEM = 
R"=====(
<!DOCTYPE HTML>
<html>
<title>ESP32 WebSocket Server</title>
<!---------------------------CSS-------------------------->
<style>
    #dynRectangle
    {
        width:0px;
        height:12px;
        top: 9px;
        background-color: red;
        z-index: -1;
        margin-top:8px;
    }
    body {background-color:rgba(128,128,128,0.322); font-family:calibri}
    h1 {font-size: 40px; color: black; text-align: center}
    h2 {font-size: 30px; color: blue}
    h3 {font-size: 17px; color:blue}
    div.h1 {background-color: whitesmoke;}
</style>
<!--------------------------HTML-------------------------->
<body>
    <h1><div class="h1">ESP32 WebSocket Server</div></h1>
    <h2>
        POT voltage: <span style="color:rgb(216, 3, 3)" id="POTvalue">0</span> V  
    </h2>
    <h3>
        0V &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp; 3.5V
        <div id="dynRectangle"></div>
    </h3>
</body>
<!----------------------JavaScript------------------------>
<script>
  InitWebSocket()
  function InitWebSocket()
  {
    websock = new WebSocket('ws://'+window.location.hostname+':81/');
    websock.onmessage=function(evt)
    {
       JSONobj = JSON.parse(evt.data);
       document.getElementById('POTvalue').innerHTML = JSONobj.POT;
       var pot = parseInt(JSONobj.POT * 135);
       document.getElementById("dynRectangle").style.width = pot+"px";
    }
  }
</script>
</html>
)=====";

```

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 2:21pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/11 "2025-05-07T14:21:42Z")

</div>

[![](https://europe1.discourse-cdn.com/arduino/original/4X/c/f/a/cfa0389d80e5b24f5a37ab3ac3e802273a4f2b8f.jpeg "ESP32 WebSocket Server - Sending Potentiometer Voltage") ](https://www.youtube.com/watch?v=scRpYLlg-10)

---

<div class="post-metadata">

**Author:** ![MicroBahner](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/microbahner/32/238923_2.png) [@MicroBahner](https://forum.arduino.cc/u/MicroBahner)\
**Post date:** [May 7, 2025, 2:27pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/12 "2025-05-07T14:27:58Z")

</div>

Your `webpage.h` file is not a library but simply a file containing html-code for a web page. Copy the file into your sketch folder and include it with

```arduino
#include "webpage.h"

```

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [May 7, 2025, 2:31pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/13 "2025-05-07T14:31:40Z")

</div>

I cannot even see a file named WebServer.h on either of the Github links posted

---

<div class="post-metadata">

**Author:** ![MicroBahner](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/microbahner/32/238923_2.png) [@MicroBahner](https://forum.arduino.cc/u/MicroBahner)\
**Post date:** [May 7, 2025, 2:38pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/14 "2025-05-07T14:38:35Z")

</div>

I don't see any significance for the Github links in the sketch. WebServer.h is a library of the ESP32 kernel. And webpage.h simply defines html code.  
I don't know about `WebSocketsServer.h`  
Maybe [this library](https://github.com/Links2004/arduinoWebSockets/tree/master) is needed`?

@tom321: How did you get to the Github links?

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 3:02pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/15 "2025-05-07T15:02:28Z")

</div>

I added it this way, error still there

 ![h2](https://europe1.discourse-cdn.com/arduino/original/4X/a/1/d/a1d819a20b4b5c42d293fb8c8c9a62f679f5d7fe.png)

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 3:04pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/16 "2025-05-07T15:04:55Z")

</div>

> <https://github.com/Wiznet/W7500P/blob/master/W7500P_FW/ioLibrary/Internet/httpServer/webpage.h>

 ![h3](https://europe1.discourse-cdn.com/arduino/original/4X/5/a/a/5aa5e06beac0905b3f82d0b141759b5f061aa3d9.png)

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 3:10pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/17 "2025-05-07T15:10:16Z")

</div>

![h4](https://europe1.discourse-cdn.com/arduino/original/4X/e/f/7/ef7c6d79475c929c03e864b28887d2b5caece1d1.png)

---

<div class="post-metadata">

**Author:** ![MicroBahner](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/microbahner/32/238923_2.png) [@MicroBahner](https://forum.arduino.cc/u/MicroBahner)\
**Post date:** [May 7, 2025, 3:24pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/18 "2025-05-07T15:24:54Z")

</div>

The webpage.h you showed in #10 is very different from the webpage.h in the link. Only the name is the same ...  
Which are you really using - and which do you really need?

> [@tom321](#):
>
> I added it this way, error still there

Did you also change the include line as I showed in #12? Changing the \<...\> to “...” is necessary.

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 5:38pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/19 "2025-05-07T17:38:15Z")

</div>

![h5](https://europe1.discourse-cdn.com/arduino/original/4X/4/9/9/499e5e1be1d2604b9a9bf59de847b556557c4ef2.png)

---

<div class="post-metadata">

**Author:** ![tom321](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tom321/32/1126662_2.png) [@tom321](https://forum.arduino.cc/u/tom321)\
**Post date:** [May 7, 2025, 6:20pm UTC](https://forum.arduino.cc/t/zip-library-problem/1379757/20 "2025-05-07T18:20:37Z")

</div>

> [@MicroBahner](#):
>
> The webpage.h you showed in #10 is very different from the webpage.h in the link.

post #10 it is a main program, link it is for file webpage.h

[Next page](https://forum.arduino.cc/t/zip-library-problem/1379757.md?page=2)
