open-lv / air-guard

Do-it-yourself electronics kit for building an air quality monitor for your school, work and home.
https://gaisasargs.lv
MIT License
7 stars 3 forks source link

ERROR: jq not found! See https://stedolan.github.io/jq/ #31

Closed austrisv closed 2 years ago

austrisv commented 2 years ago

sekoju https://github.com/open-lv/air-guard/blob/main/tools/flasher/README.md instrukcijai; palaidu requriements; laižu flash.sh, man saka

ESPTOOL_PORT=/dev/tty.usbserial-2110 ./flash.sh ERROR: jq not found! See https://stedolan.github.io/jq/

droši vien requirements.txt jāieliek jq=1.2.2

austrisv commented 2 years ago

hmmm, jeb arī nē, ar pip3 install jq vēl ir par īsu? Successfully installed jq-1.2.2 % ESPTOOL_PORT=/dev/tty.usbserial-2110 ./flash.sh ERROR: jq not found! See https://stedolan.github.io/jq/

kasparsd commented 2 years ago

Ar jq ir domāts šis https://stedolan.github.io/jq/, kas ir jāuzinstalē līdzīgi esptools pakotnei.

Te tiek skatīts, vai tāda programma sistēmā eksistē:

https://github.com/open-lv/air-guard/blob/d55d055b51f0e40992cd948609c789b28f72a6c5/tools/flasher/flash.sh#L23-L27

Reāli tā tiek izmantota šeit JSON atribūtu lasīšanai pie firmware lejuplādes:

https://github.com/open-lv/air-guard/blob/d55d055b51f0e40992cd948609c789b28f72a6c5/tools/flasher/flash.sh#L82-L83

austrisv commented 2 years ago

ou yee, brew install jq did the magic. nu rūc uz nebēdu

kasparsd commented 2 years ago

Forši! Varbūt vēlies papildināt to pirmo rindiņu "Run it on your local machine if you have both esptool.py and ampy installed or use the included Docker environment." ar jq atsauci un saiti blakus ampy? Citiem atvieglotu dzīvi :)

austrisv commented 2 years ago

pamēģināju ... ļaušu ievērtēt, pielabot un/vai akceptēt :) paldies par atbalstu!