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

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
Add google guage to ESP-12e webserver
No permission to create posts
October 3, 2016
4:02 am
Avatar
Aususer5
New Member
Members
Forum Posts: 1
Member Since:
October 3, 2016
sp_UserOfflineSmall Offline

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.

October 4, 2016
1:09 am
Avatar
rw950431

Top
Members
Forum Posts: 261
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

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:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

harriettlf60, ShaToow, Aleftinfenny, DiaBentee, hugo11dom@gmail.com, Pisaruk530

Administrators: Hans: 387, lee: 457