Overview
This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:
- SingleTubeClock.bin - this is the executable code
- spiffs.bin - this is the web GUI
New in v1.5
- Re-wrote the WiFi captive portal. WiFi connections are much more reliable, for example it will now re-connect if the router is re-booted.
- The Web GUI will attempt to reconnect to the clock if it loses a connection (for example as you are switching between apps on a phone.
- This changes how memory is allocated, so please see the new upload commands below.
Installing this release will reset all of your settings.
Installation (Abbreviated version)
OK, so this isn't the first time you've done this. These are the commands you need to remember:
esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xc3000 -cf spiffs.bin
Installation (Full Version)
This is the step-by-step guide:
- Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
- Download these bin files and put the in the same folder (for convenience).
- Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
- Figure out what the serial port is called - you will need to know this to upload the files. On windows you can open a command shell and type mode to find out.
- In the shell you just opened, change directory to where esptool is.
- Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
You should see some text saying it is uploading, and a bunch of dots. - Upload the spiffs, again replace COM10 with whatever your serial port is called:
esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xc3000 -cf spiffs.bin