@t1m0 pretty self explaining…
2018-05-23T15:32:42.409Z INFO Could not find file /home/pi/pimatic-app/node-sonos-http-api/settings.json
Play specific title on sonos ?
@t1m0 pretty self explaining…
2018-05-23T15:32:42.409Z INFO Could not find file /home/pi/pimatic-app/node-sonos-http-api/settings.json
@gleno0h
that is strange, putty shows me the file but … do you have to adjust something?
pi@raspberrypi:~/pimatic-app/node-sonos-http-api $ ls
cache ISSUE_TEMPLATE.md lib LICENSE.md node_modules package.json package-lock.json presets README.md server.js settings.js static test_endpoint.js
pi@raspberrypi:~/pimatic-app/node-sonos-http-api $
@t1m0 well, i still dont see a settings.JSON file there… I only see settings.js
ahhhh you right!
funny … why not? I installed it after the instructions from you … do not I have to add them manually?
@t1m0 well, it doesnt have to be an error but more of a headsup notification that it doesnt load a custom settings file. But to be honest, i am not using this so i am not a big help. Try to reinstall it, see what happens… Were you able to reach the html page after starting the server? Cause it said it was running.
@gleno0h yes, i am able to view the page…
@t1m0 i guess it is working then?
No, unfortunately not. if I execute the command in the Pimatic below nothing happens / except the error is coming
@t1m0 could be that it failed while installing a dependency… Could you try a reinstall?
How can i check if the sonoff.service is running? i get no errors but it seems not working.
thanks for the reply
@countjuh well… Just go to the page?
Http://yourip:yourportofsonosapi
Get a page? It is running. No page? Not running.
The page is working. But only with a putty session open. Thats my problem
Its working. I changed the sonoff.service to
[Unit]
Description=Simple sonoffs Server
#Requires=After=mysql.service # Requires the mysql service to run first
[Service]
ExecStart=/usr/local/bin/node /home/pi/pimatic-app/node-sonos-http-api/server.js
# Required on some systems
#WorkingDirectory=/opt/nodeserver
Restart=always
# Restart service after 10 seconds if node service crashes
RestartSec=10
# Output to syslog
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodejs-example
#User=<alternate user>
#Group=<alternate group>
Environment=NODE_ENV=production PORT=1337
[Install]
WantedBy=multi-user.target