Skip to content

Commit

Permalink
Merge pull request #3439 from TD-er/feature/bitwise_operations
Browse files Browse the repository at this point in the history
[Rules] Add operators to convert integer values
  • Loading branch information
TD-er authored Jan 14, 2021
2 parents 813fe9b + b61d52c commit 2b16cc3
Show file tree
Hide file tree
Showing 188 changed files with 4,838 additions and 2,958 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ env:
- ENV=test_ESP32-wrover-kit_4M316k_ETH
- ENV=test_ESP32_4M316k
- ENV=test_ESP32_4M316k_ETH
- ENV=test_ESP32_lolin-d32-pro
- ENV=test_ESP32_4M316k_lolin_d32_pro
- ENV=test_ESP8266_4M1M_VCC
#- ENV=test_ESP8266_4M1M_VCC_MDNS_SD
#- ENV=test_alt_wifi_ESP8266_4M1M_VCC
Expand Down
2 changes: 1 addition & 1 deletion docs/source/Plugin/_plugin_substitutions_p05x.repl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
.. |P053_type| replace:: :cyan:`Dust`
.. |P053_typename| replace:: :cyan:`Dust - PMSx003`
.. |P053_porttype| replace:: `Serial`
.. |P053_status| replace:: :yellow:`TESTING`
.. |P053_status| replace:: :green:`NORMAL`
.. |P053_github| replace:: P053_PMSx003.ino
.. _P053_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_P053_PMSx003.ino
.. |P053_usedby| replace:: `.`
Expand Down
44 changes: 44 additions & 0 deletions docs/source/Reference/ExternalHostedStaticFiles.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
External Hosted Static Files
****************************

Since build mega-20201227, most of the static files are no longer included in those builds that have been optimized to create smaller bin sizes.

Until this change for linking to external CSS/JS files, all these static files were included in the build.
Meaning the build size was larger due to files which your browser could also fetch from another site.

Builds relying on external hosted files, link to a CDN URL of GitHub, which hosts copies of our repository.
Meaning your browser will fetch them from the GitHub servers when needed.
However the "TTL" of those values (the time they can be safely cached by your browser) is set to 1 year.


So what does this al mean?
--------------------------

If you operate your units linking to an external hosted CSS or JS file, your browser must be able to reach the GitHub servers.
But this only has to be done once and after that the browser will cache those files for 1 year (or until you clear your cache).
This means you may need to have an internet connection on the device you use to access the ESPEasy node if those files are not in your browser cache.

There is a way to overcome this limitation, by saving the files using the same names onto your SPIFFS file system of the node.
If the files are present on the local file system, the ESP will serve them to you.

The files are located `here <https://github.com/letscontrolit/ESPEasy/tree/mega/static>`_

These are the file names used to check if the file exists on the local file system.
They are sorted with the most important files on top.

* ``espeasy_default.css`` Without this file the web UI does look rather unusable and horrible.
* ``rules_save.js`` JavaScript to actually perform saving the rules. Rules cannot be saved without this file.
* ``update_sensor_values_device_page.js`` JavaScript to perform value updates of tasks on the "Devices" tab.
* ``fetch_and_parse_log.js`` JavaScript to fetch new logs on the web based log viewer.
* ``reboot.js`` JavaScript to check whether it is best to perform a reboot of the ESP node.
* ``toasting.js`` Showing an acknowledgement toasting message when submitting settings.
* ``github_clipboard.js`` JavaScript to copy only the most interesting values on the sysinfo page to paste on GitHub.
* ``favicon.ico`` The icon shown on the tab of your browser


When storing a local copy of one of these files, make sure you're using the same name as presented here.

.. note::

When storing files on a node with 1M flash, be aware the small file system size may cause issues, so only store those files which are really needed.
You can also try to minify the CSS or JS files to make them even smaller.
Loading

0 comments on commit 2b16cc3

Please sign in to comment.