Odianosen25 / Monitor-App

Appdaemon App for Andrew's Monitor Presence Detection System
74 stars 9 forks source link

Bash script failing #68

Open SweAdelpha opened 3 years ago

SweAdelpha commented 3 years ago

Hi,

Thank you for your work on the app!

I'm trying to get it to install over my current monitor setup(on a raspberry pi 3 model b) but I'm getting an error when running the first command:

bash -c "$(curl -sL https://raw.githubusercontent.com/Odianosen25/Monitor-App/master/installer/install_ad.sh)"

It says "bash: line 2: cd: $'~\r': No such file or directory", "bash: line 3: $'clear\r': command not found", "bash: line 14: cd: $'~\r': No such file or directory", "bash: line 17: $'\r': command not found" and "bash: -c: line 166: syntax error: unexpected end of file"

Am I missing something?

stokes776 commented 3 years ago

I am getting this same error, on a Raspberry Pi 4, running HomeAssistant 0.117.0

Odianosen25 commented 3 years ago

Hello @SweAdelpha and @stokes776,

Appologies for the late replay. On the script, I didn't build it so difficult for me to fix it.

If I may ask, are you using hass.io? As its not built for that but for a vallina Linux OS.

Regards

SweAdelpha commented 3 years ago

Hi, Thanks for your reply! I'm using rasbian lite as suggested in the monitor install instructions:

https://github.com/andrewjfreyer/monitor

korniza commented 3 years ago

you need to download first repo and run on shell dos2unix file_name

korniza commented 3 years ago

if is not working please open file with vim and type the following. :set ff=unix after save file :wq

mariwing commented 3 years ago

In my (not so) humble opinon either the script should work on Raspberry (as it even says it is tested on PI3/4 on this page) or it should not be promoted or included in the description at all. Even after pulling the repo and changing the files with vim it fails so there is not only the line endings that are wrong.