What do you mean by no special characters? I have my email, I shouldn’t use @?
This is what I’m getting:
bash /home/homeassistant/.homeassistant/scripts/withings_firmware.sh: Permission denied/.homeassistant/scripts/withings_firmware.sh: line 3: /dev/null
: Permission denied/.homeassistant/scripts/withings_firmware.sh: line 5: /dev/null
/secrets.txt: No such file or directory
/secrets.txt: No such file or directory
/secrets.txt: No such file or directory
/secrets.txt: No such file or directory
: Permission denied/.homeassistant/scripts/withings_firmware.sh: line 11: /dev/null
/cookies.txt: No such file or directory
parse error: Invalid numeric literal at line 1, column 20
I’m having similar issues (hassbian, home-assistant 0.45.1 on a Raspberry Pi3):
pi@hassbian:/home/homeassistant/.homeassistant/scripts $ sudo bash withings_firmware.sh
/secrets.txt: No such file or directory/scripts
/secrets.txt: No such file or directory/scripts
/secrets.txt: No such file or directory/scripts
/secrets.txt: No such file or directory/scripts
/cookies.txt: No such file or directory/scripts
sed: -e expression #2, char 7: unknown option to `s’
parse error: Invalid numeric literal at line 1, column 20
My secrets.txt file is located in /home/homeassistant/.homeassistant/scripts and contains email,password,userid,deviceid:
pi@hassbian:/home/homeassistant/.homeassistant/scripts $ ls -l
total 20
-rw-r–r-- 1 homeassistant homeassistant 0 Jun 4 14:37 cookies.txt
-rw-r–r-- 1 homeassistant homeassistant 47 Jun 4 13:05 secrets.txt
-rwxr-xr-x 1 homeassistant homeassistant 1389 Jun 4 14:57 withings_battery.sh
-rwxr-xr-x 1 homeassistant homeassistant 1418 Jun 4 13:40 withings_co2.sh
-rwxr-xr-x 1 homeassistant homeassistant 1412 Jun 4 13:40 withings_firmware.sh
-rwxr-xr-x 1 homeassistant homeassistant 1426 Jun 4 13:44 withings_temp.sh
My jq is built and installed from code according to the instructions on this page:
pi@hassbian:/home/homeassistant/.homeassistant/scripts $ jq --version
jq-1.5
pi@hassbian:/home/homeassistant/.homeassistant/scripts $ which jq
/usr/local/bin/jq
To me, this seems to be an jq issue (all other scripts return similar results)? Can anyone shed some light on this?
I open again the topic, because I’ve got the same problem you had : [homeassistant.components.sensor.command_line] Command failed: bash /home/homeassistant/.homeassistant/withings/withings_battery_balance.sh
But I don’t understand when you write : “the withings-login shouldn’t have any special characters”
Are you telling about email, password ?
And in the case of email, what we should write ?
hello i am using the updated script for jscolp, but i am still getting the error, i am really new on HA so i might not have understand one of the steps.
I am using Home Assistane with hass.io and there date command did not allow -d ‘28 day ago’ so I subtructed number of seconds in 28 days from ENDDATE.
Also took pushd and popd away. Now it works
Hi @jukkamatila thank you very much for your answer, i am pretty new on this. can you give me the line for subtracted number of seconds in 28 days from ENDDATE ? thank you
UPDATE: is this good ? $(date -r $(( $(date +%s) - 2419200 )))
im actually still getting this error:
2017-10-21 16:42:32 ERROR (SyncWorker_0) [homeassistant.components.sensor.command_line] Command failed: bash /config/withings/withings_co2.sh
im just wondering if the issue comes from my secrets.txt file
if you think it’s related to accessing secrets file, just type in the username, password, curuser and deviceid directly into the script, enclosed in quotes:
Did you guys found a solution? When I run ‘bash /config/withings/withings_battery.sh’ with Putty, it is working fine, email,password,userid,deviceid are all fine, but I still got error in the log file: