Open bigrizzo opened 1 year ago
Hi Zach. I decided to start all over again to see if I can make more progress. Steps missing for me were I needed to install npm using 'sudo apt-get install npm' and also installed forever using 'sudo npm install -g forever' before installing the service. That got me further along but at the end, I don't see 'Connected to RNET!' when I run 'npm start'. I get the following:
pi@raspberrypi:~/rnet-pi $ npm start
rnet-proxy@1.0.2 start forever start src/app.js
warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms info: Forever processing file: src/app.js
Any further suggestions?
Hi again. Well after much mucking around, I finally got it to work! It seemed the config.json changes I made weren't persistent. I definitely went in and made the change. Does a new config.json get created and overwrite the previous every time you run 'npm start'? In any case, I went back in and changed the USB port and whammo! It worked. The other oddity was that I rebooted my pi to make sure it would auto start and although it did, the zones I had set up in the app disappeared after it reconnected. Where is the zone information stored? On my phone or on the pi? I thought I saw a couple of .json files on the pi with zones and sources. Is there something I need to do to make the phone app config persist?
Any changes made within the app should be written to the PI's disk immediately. Zones are saved in zones.json in app's working directory.
``Dear Zach , first of all huge thanks for the project you have created - thanks to you I have pushed myself into RPi purchase and start of my home automation !
I have had similar issues as the previus comments, but I managed to force update reps and after anothe -npm install it managed to create config.json file (which originally is not created)
the issue I am having is server not starting and showing dependencies issues:
`> rnet-proxy@1.0.2 start
forever start src/app.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: src/app.js
(node:2913) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
(node:2913) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
`
I am a total newbie with no real linux experience, but if you could just point me where to look for an answer, I would really appreciete it
huge thanks in advance!
K
Hi Zach. Firstly thank you for your work on this. I've followed your steps multiple times and I never seem to get a config.json file created when I reach that step. I get lots of errors along the way too, so that may have something to do with it. Any suggestions on how to get the config.json to be created?