Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data logging temperature #5

Closed
per-ast opened this issue Oct 22, 2017 · 5 comments
Closed

Data logging temperature #5

per-ast opened this issue Oct 22, 2017 · 5 comments

Comments

@per-ast
Copy link

per-ast commented Oct 22, 2017

Hello

I like this A Beginner's Guide to the ESP8266.
Can not find description of how it works with the web page.
How is the website intended to work?
Should I run a local web server on my PC?
Should I upload the files to esp8266 (index.html)?

It looks like this

Connecting
.........

Connected to Eskilstorp
IP address: 192.168.15.48

OTA ready

SPIFFS started. Contents:
FS File: /temp.csv, size: 2.41KB

mDNS responder started: http://esp8266.local
HTTP server started.
Starting UDP
Local port: 123
Time server IP: 132.163.96.2
Sending NTP request
NTP response: 1508680734
Temperature requested
Appending temperature to file: 1508680789,26.50
Temperature requested
Appending temperature to file: 1508680849,26.50
Temperature requested

Sincerely
P-G Åström

@tttapa
Copy link
Owner

tttapa commented Oct 22, 2017

You have to upload the files to the ESP8266. It is explained in the Using the example paragraph of chapter 16:

Set the SPIFFS size to 64KB or larger if you plan to use it for prolonged periods of time. (You could also increase the logging interval on line 80 to save space.)
Enter your Wi-Fi credentials on lines 138-140, and hit upload. Then upload the webpages and scripts to SPIFFS using Tools > ESP8266 Sketch Data Upload.
Make sure you have the temperature sensor connected, as described at the top of this page. Open a terminal to see if it works. [...]
Let it run for a couple of minutes, to gather some temperature data. Then open a web browser, and go to http://esp8266.local/.
You should get a graph showing the temperature curve. You can use the arrow buttons to travel through time, and the + and - buttons to zoom in or out. The reset button resets the zoom, and jumps back to the present. Refresh requests the latest temperature data.
If you want, you can still go to http://esp8266.local/edit.html to upload new files.

@tttapa tttapa closed this as completed Oct 22, 2017
@per-ast
Copy link
Author

per-ast commented Oct 22, 2017 via email

@per-ast
Copy link
Author

per-ast commented Oct 22, 2017

Hi

It’s working.

How can I download the temp.csv file to my pc?

Sincerely
P-G Åström

@tttapa
Copy link
Owner

tttapa commented Oct 24, 2017

Just use a browser, wget or cURL etc. to download http://esp8266.local/temp.csv.

@per-ast
Copy link
Author

per-ast commented Oct 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants