A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Jacob Major
#94292
Inq720 wrote:I'm going to try and work through these two elephants in bite size pieces. Your images are not coming through on the forum, but I was able to find the links. You might want to try adding them via the "Upload Attachment" tab just below the forum's editor instead of https://imgur.com. The forum software doesn't seem to like it.

Jacob Major wrote:Kinda- You're able to browse to the Admin on your ESP8266... using something like http://Soil_Moisture/Admin.html
I was using http://10.10.10.10/admin.html and opening my index.html from the files tab to see my graph. Then the link just becomes http://10.10.10.10/index.htmlImage
I was not able to get http://Soil_Moisture/Admin.html to work.


You have connected your laptop's WiFi directly to the built-in Access Point by connecting to the SSID of Soil Moisture.

Do you have a personal router you connect to or just the University's? If you don't have your own, the University's won't let you communicate with the ESP8266 server. Public routers block that because of security reasons. You're only avenue is the direct connect as you have done. That was sharp that you noticed the other option in the Serial Monitor.
I use a personal router that acts like a normal network, I am lucky enough that my university managed to emulate it as if it is its own network like a normal router despite being connected via the schools network. For this project, you can assume I am working with a normal standard network and a personal router. I will check if I can connect to the network when I can get back into the school building. Likely Friday.

If you do have a personal router like most people have at home, you can connect to it and browse across your local LAN. In depth instructions can be found https://inqonthat.com/inqportal-bare-essentials/ or https://inqonthat.com/inqportal-help-ts/. Unfortunately, you can't get to those since you're connected to the ESP8266 server.

I will check these out and let you know if I have more difficulty.
User avatar
By Jacob Major
#94293
Inq720 wrote:I whipped some documentation out.
See if this helps...
https://inqonthat.com/inqhisto-javascript-histogram/
... if it doesn't, I take constructive criticism well. ;)

I was able to get an idea of how to make my own histogram using your default, I did not realize that generating a starter page also took into account the additional variables added to the history tab, that was a nice feature to find out. Unfortunately, I do not think the InqHist object will fit my needs very well but that is fine. Knowing the js library you used I should be able to whip up my own complicated version that fits my needs. I am a CS student at least, I should put in some work too haha.

Additionally as a follow up I found a 30 minute period to go test if connecting to my router worked and while it did it was very slow and I had trouble actually viewing files in the files tabs. The other tabs also loaded very slowly. Not sure if that is my fault since I have the router in a room to my left and the sensor/esp8266 in a room to my right and I am connecting to the router that needs to connect to the board.

It did spark another question I had though. Where is the server information stored? When I edited the Arduino code and updated the board code, the server still had my previously uploaded gauge.min.js and index.html files. Is it storing somewhere on my router or was that a glitch that I can't rely on happening again?
User avatar
By Inq720
#94294
Jacob Major wrote:Additionally as a follow up I found a 30 minute period to go test if connecting to my router worked and while it did it was very slow and I had trouble actually viewing files in the files tabs. The other tabs also loaded very slowly. Not sure if that is my fault since I have the router in a room to my left and the sensor/esp8266 in a room to my right and I am connecting to the router that needs to connect to the board.



The only reasons I can think of slow downs is either network congestion or distance/interference. If you use the scanning option https://inqonthat.com/inqportal-help-ts/#lLAP, in the Admin menu (if you can get to it) it will search for your available WiFi and give you strengths. Here are a few representative readings:

-9 : Right next to each other
-33 : 3 feet apart
-61 : 30 feet and one internal sheet-rock type wall.

It did spark another question I had though. Where is the server information stored? When I edited the Arduino code and updated the board code, the server still had my previously uploaded gauge.min.js and index.html files. Is it storing somewhere on my router or was that a glitch that I can't rely on happening again?


The flash memory is laid out like

| E | OTA program 0 | OTA program 1 | File System | Data Logger | Persisted Data | E |

Where E = Espressif reserved sector(s).

There is an option in the Arduino IDE Tools/Erase Flash:
* All Flash Contents wipes all user sectors programs, file...
* Only Sketch wipes the program space, but not (File System - Persisted Data) so any persisted data like network connections configured in the Admin, any past log entries and any files are left untouched.

Here is some more details about other settings of use : https://inqonthat.com/inqportal-project-settings/
User avatar
By Inq720
#94299
Jacob Major wrote:Additionally as a follow up I found a 30 minute period to go test if connecting to my router worked and while it did it was very slow and I had trouble actually viewing files in the files tabs. The other tabs also loaded very slowly. Not sure if that is my fault since I have the router in a room to my left and the sensor/esp8266 in a room to my right and I am connecting to the router that needs to connect to the board.


I just re-read this and this jumped out at me this time. Is this on the RaspPi/Chromium machine? I'm thinking it is more related to the computer being overloaded / busy doing background tasks. You see... All the tabs are loaded at start-up. There is no partial loading from the ESP8266 server. Switching from one tab to another does not cause any network traffic to/from the server. It is merely hiding one tab and showing another tab.