Add google guage to ESP-12e webserver | ESP8266 Wi-Fi Module | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Add google guage to ESP-12e webserver
Avatar
Aususer5
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
October 3, 2016 - 4:02 am
sp_Permalink sp_Print

Hi there, this is my first post. I recently got my esp-12e sending data to thingspeak thanks to the blog post https://eryk.io/2016/04/temperature-logging-to-thingspeak-using-esp8266-and-dht22/

My channel is up and I've configured the google gauge plugins to show temp and humidity.

I'd like to know if can now modify the sketch to have my esp host a home page with the html/java for two gauges, so that I can use a browser from my local wifi network to view the two dials.

Thanks in advance.

Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
2
October 4, 2016 - 1:09 am
sp_Permalink sp_Print

You can re-assemble the complete web-page by copying the contents of the HTML window (in edit mode) to wherever you want then replacing the line %%PLUGIN_CSS%% with the contents of the CSS window, then replacing the line %%PLUGIN_JAVASCRIPT%% with the contents of the javascript window

However this web page will still need to download javascript code from https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js and https://www.google.com/jsapi as well as data from https://api.thingspeak.com/channels/ in order to work so I'm not sure what you will achieve by hosting the HTML code locally.

If you want to completely remove all dependency on the internet you will have to include copies of the javascript files in your sketch (not sure if they will fit in the memory of your ESP-12E) as well as work out a way to serve the data directly rather than via thingspeak.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: jacktheripper125
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

Nsneilotof

angieus2

goldiepw11

BinanceoSt

gnarender123@gmail.com

edenderest

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee