S&B Volcano vaporizer remote control with Pi Pico W
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # ----------------------------------------------------------------------------
  3. # Copyright (c) 2023 Thomas Buck (thomas@xythobuz.de)
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # See <http://www.gnu.org/licenses/>.
  16. # ----------------------------------------------------------------------------
  17. # https://github.com/beautify-web/js-beautify
  18. ROOT="https://app.storz-bickel.com"
  19. FILES=`curl -s $ROOT | grep "text/javascript" | grep -v "jquery" | grep -v "bootstrap" | sed 's/.*src="//g' | sed 's*"></script>**g'`
  20. for F in $FILES
  21. do
  22. N=`echo $F | sed 's*/*_*g'`
  23. O=`echo $N | sed 's/.js/.min.js/g'`
  24. curl -o $O $ROOT/$F
  25. js-beautify $O > $N
  26. done