Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
programming_weatherduino_devices [2018/05/26 18:44] – werk_ag | programming_weatherduino_devices [2019/03/18 02:12] (current) – [LOLIN (WeMos) D1 R2 & mini. How to upload files to the SPIFFS memory?] werk_ag | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Where do I find the WeatherDuino Software? ===== | ===== Where do I find the WeatherDuino Software? ===== | ||
- | All system builders can download the WeatherDuino software from the [[http:// | + | All system builders can download the WeatherDuino software from the [[http:// |
- | Weatherduino | + | The WeatherDuino |
- | ===== What I need to program the Receiver, Transmitter or any other WeatherDuino device? ===== | + | ===== What do I need in order to program the Receiver, Transmitter or any other WeatherDuino device? ===== |
- | The Arduino IDE is used to compile and upload the WeatherDuino software to the microcontroller used in each unit. | + | The Arduino |
===== Do I need to have Arduino programming skills? ===== | ===== Do I need to have Arduino programming skills? ===== | ||
- | No, there is no need to have programming skills. However its assumed the user have a minimal knowledge of the Arduino IDE environment. Knowing | + | No, there is no need to have programming skills. However its assumed |
- | Edition of the code is required | + | Editing |
\\ | \\ | ||
- | Bellow | + | Below is an example of the code editing |
- | Basically its only changing the value of pre-defined variables. | + | |
< | < | ||
Line 31: | Line 30: | ||
===== Install Arduino libraries ===== | ===== Install Arduino libraries ===== | ||
- | The WeatherDuino software, makes use of several Arduino libraries, which always | + | The WeatherDuino software makes use of several Arduino libraries, which are always included in every software package.\\ |
- | Those libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: | + | These libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: |
< | < | ||
Line 41: | Line 40: | ||
Most compile errors are due to not following this recommendation. </ | Most compile errors are due to not following this recommendation. </ | ||
- | From time to time we may change or upgrade the libraries used by the software. When this happen, always | + | From time to time we may change or upgrade the libraries used by the software. When this happens, there is always |
- | + | ||
- | ===== What I need to program the Receiver, Transmitter or any other WeatherDuino device? ===== | + | |
- | + | ||
- | The Arduino IDE is used to compile and upload the WeatherDuino software to the microcontroller used in each unit. | + | |
- | + | ||
- | ===== Do I need to have Arduino programming skills? ===== | + | |
- | + | ||
- | No, there is no need to have programming skills. However its assumed the user have a minimal knowledge of the Arduino IDE environment. Knowing how to install libraries, as also being able to do minimal code edition, its necessary .\\ | + | |
- | Edition of the code is required only to change the value of some pre-defined settings, to make that the software will correctly work with the set of weather instruments you intend to use, and to define some user preferences, | + | |
- | \\ | + | |
- | Bellow is an example of the type of code edition the user must do.\\ | + | |
- | Basically its only changing the value of pre-defined variables. | + | |
- | + | ||
- | < | + | |
- | // -------------------------------------------------------------------------------------- | + | |
- | // | + | |
- | // -------------------------------------------------------------------------------------- | + | |
- | #define DATE_TIME_FORMAT | + | |
- | #define TEMP_DISPLAY_UNIT 0 // 0 for ºC, 1 for ºF | + | |
- | #define ATM_DISPLAY_UNIT | + | |
- | #define RAIN_DISPLAY_UNIT 0 // 0 for mm, 1 for inches | + | |
- | #define WIND_DISPLAY_UNIT 0 // 0 for Km/h, 1 for mph, 2 for m/s, 3 for Knots | + | |
- | </ | + | |
- | + | ||
- | ===== Install Arduino libraries ===== | + | |
- | + | ||
- | The WeatherDuino software, makes use of several Arduino libraries, which always are included in every software package.\\ | + | |
- | Those libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: | + | |
- | + | ||
- | < | + | |
- | C: | + | |
- | </ | + | |
- | + | ||
- | <WRAP round important> | + | |
- | Most compile errors are due to not following this recommendation. </ | + | |
- | + | ||
- | From time to time we may change or upgrade the libraries used by the software. When this happen, always there is a notice | + | |
===== Configuring the Software - User Configurable Options ===== | ===== Configuring the Software - User Configurable Options ===== | ||
- | On WeatherDuino software, all user configurable options are just in one place.\\ | + | On WeatherDuino software, all user configurable options are stored |
- | After loading the Weatherduino | + | After loading the WeatherDuino |
- | Before compiling and upload | + | Before compiling and uploading |
- | The software for some units, | + | The software for some devices |
{{: | {{: | ||
- | ===== WeMos D1 R2 & mini isn't listed in my list of available boards. How to add it? ===== | + | ===== LOLIN (WeMos) D1 R2 & mini isn't listed in my list of available boards. How do I add it? ===== |
In your Arduino IDE: | In your Arduino IDE: | ||
* Open Preferences window. | * Open Preferences window. | ||
- | * Into Additional Board Manager URLs field, copy and past this URL: | + | * Paste this URL into the Additional Board Manager URLs field: |
< | < | ||
Line 100: | Line 62: | ||
</ | </ | ||
- | * After installation, | + | * After installation, |
+ | |||
+ | |||
+ | ===== LOLIN (WeMos) D1 R2 & mini. How to upload files to the SPIFFS memory? ===== | ||
+ | |||
+ | To upload the fonts and icons to SPIFFS use the " | ||
+ | If you don't see this option, to add it follow instructions here: https:// | ||
+ | or (the easy way) just copy to your Sketchbook location (on Windows, usually C: | ||
+ | the " | ||
+ | \\ | ||
+ | Close the IDE and open again to see the new menu option.\\ | ||
+ | ===== OTA programming ===== | ||
- | For OTA software upgrades also need to install | + | Some WeatherDuino devices can be upgraded / programmed by Over The Air (OTA), using your WiFi network. \\ For this to work you need to have Python 2.7 installed in your computer. If it isn't already installed, download |
- | During | + | Do not install |
+ | During installation | ||
{{: | {{: | ||